Package net.lucypoulton.squirtgun.plugin
Class SquirtgunPlugin<P extends Platform>
java.lang.Object
net.lucypoulton.squirtgun.plugin.SquirtgunPlugin<P>
- Type Parameters:
P- a Platform. If not required, use the default platform implementation.
A plugin written using the Squirtgun API.
- Since:
- 2.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract @NotNull String[]Gets a list of the authors' names.Gets the platform-specific object provided in the constructor.abstract @NotNull StringGets the plugin's name.abstract @NotNull StringGets the plugin's version.voidLogs a prefixed text message to the console.voidCalled when the plugin is disabled.voidonEnable()Called when the plugin is enabled.
-
Constructor Details
-
SquirtgunPlugin
-
-
Method Details
-
log
Logs a prefixed text message to the console. TODO - do we really need this?- Parameters:
text- the text to log
-
getPlatform
Gets the platform-specific object provided in the constructor. -
getPluginName
Gets the plugin's name. -
getPluginVersion
Gets the plugin's version. -
getAuthors
Gets a list of the authors' names. -
onEnable
public void onEnable()Called when the plugin is enabled. By default, does nothing. -
onDisable
public void onDisable()Called when the plugin is disabled. By default, does nothing.
-