public abstract class ServerPackCreatorAddon extends org.pf4j.Plugin implements BaseInformation
ConfigCheckExtensionPostGenExtensionPreGenExtensionPreZipExtensionConfigPanelExtensionTabExtensionFor details on pf4j, the library used to realize the addon-functionality in ServerPackCreator, visit pf4j.org
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.logging.log4j.Logger |
LOG_ADDONS |
| Constructor and Description |
|---|
ServerPackCreatorAddon(@NotNull org.pf4j.PluginWrapper wrapper)
Using the pre-made ServerPackCreatorAddon-class and extending it, you can save yourself the
hassle of writing the code which provides ServerPackCreator with information about your addon.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
getAuthor()
Get the author of this addon.
|
@NotNull java.lang.String |
getDescription()
Get the description of this addon.
|
@NotNull java.lang.String |
getId() |
@NotNull java.lang.String |
getName()
Get the name of this addon.
|
@NotNull java.lang.String |
getVersion()
Get the version of this addon.
|
void |
start()
This method is called by the application when the plugin is started.
|
void |
stop()
This method is called by the application when the plugin is stopped.
|
public ServerPackCreatorAddon(@NotNull
@NotNull org.pf4j.PluginWrapper wrapper)
throws java.io.IOException
The only thing you need to take care of is your build.gradle and the
Name,Description,Author and Version fields.
wrapper - PluginWrapper provided by ServerPackCreator. Do not touch unless you know what
you are doing.java.io.IOException - if the addon could not be initialized.public void start()
throws org.pf4j.PluginRuntimeException
PluginManager.startPlugin(String).super.start() first.start in class org.pf4j.Pluginorg.pf4j.PluginRuntimeException - if something goes wrong.public void stop()
throws org.pf4j.PluginRuntimeException
PluginManager.stopPlugin(String).super.start() first.stop in class org.pf4j.Pluginorg.pf4j.PluginRuntimeException - if something goes wrong.@NotNull public @NotNull java.lang.String getId()
@NotNull public @NotNull java.lang.String getName()
BaseInformationgetName in interface BaseInformation@NotNull public @NotNull java.lang.String getDescription()
BaseInformationgetDescription in interface BaseInformation@NotNull public @NotNull java.lang.String getAuthor()
BaseInformationgetAuthor in interface BaseInformation@NotNull public @NotNull java.lang.String getVersion()
BaseInformationgetVersion in interface BaseInformation