Class ServerPackCreatorPlugin
-
- All Implemented Interfaces:
-
de.griefed.serverpackcreator.api.plugins.BaseInformation
public abstract class ServerPackCreatorPlugin extends Plugin implements BaseInformation
A ServerPackCreator plugin provides additional functionality to ServerPackCreator via any of
de.griefed.serverpackcreator.api.plugins.configurationhandler.ConfigCheckExtension
de.griefed.serverpackcreator.api.plugins.serverpackhandler.PostGenExtension
de.griefed.serverpackcreator.api.plugins.serverpackhandler.PreGenExtension
de.griefed.serverpackcreator.api.plugins.serverpackhandler.PreZipExtension
de.griefed.serverpackcreator.api.plugins.swinggui.ConfigPanelExtension
de.griefed.serverpackcreator.api.plugins.swinggui.TabExtension
and
de.griefed.serverpackcreator.api.plugins.swinggui.ExtensionConfigPanel
de.griefed.serverpackcreator.api.plugins.swinggui.ExtensionTab
For details on
pf4j, the library used to realize the plugin-functionality in ServerPackCreator, visit pf4j.orgGriefed
-
-
Field Summary
Fields Modifier and Type Field Description private final PluginContextcontextprivate final Stringnameprivate final Stringdescriptionprivate final Stringauthorprivate final Stringversionprivate final Stringidprivate final KotlinLoggerpluginsLogprivate final PluginWrapperwrapperprotected final Loggerlog
-
Constructor Summary
Constructors Constructor Description ServerPackCreatorPlugin(PluginContext context)
-
Method Summary
Modifier and Type Method Description final PluginContextgetContext()final StringgetName()final StringgetDescription()final StringgetAuthor()final StringgetVersion()final StringgetId()final KotlinLoggergetPluginsLog()Unitstart()This method is called by the application when the plugin is started. Unitstop()This method is called by the application when the plugin is stopped. -
-
Constructor Detail
-
ServerPackCreatorPlugin
ServerPackCreatorPlugin(PluginContext context)
- Parameters:
context- PluginWrapper provided by ServerPackCreator.
-
-
Method Detail
-
getContext
final PluginContext getContext()
-
getDescription
final String getDescription()
-
getVersion
final String getVersion()
-
getPluginsLog
final KotlinLogger getPluginsLog()
-
start
Unit start()
This method is called by the application when the plugin is started. See PluginManager.startPlugin.
If you intend on overwriting this method, make sure to call
super.start()first.
-
stop
Unit stop()
This method is called by the application when the plugin is stopped. See PluginManager.stopPlugin.
If you intend on overwriting this method, make sure to call
super.start()first.
-
-
-
-