public class AnnoyingPlugin
extends org.bukkit.plugin.java.JavaPlugin
| Modifier and Type | Field and Description |
|---|---|
static @Nullable AnnoyingCommandRegister |
commandRegister
Instance of
AnnoyingCommandRegister to register commands |
@NotNull java.util.Map<java.util.UUID,java.util.Map<AnnoyingCooldown.CooldownType,java.lang.Long>> |
cooldowns
Stores the cooldowns for each player/type
|
@Nullable AnnoyingResource |
messages
The
AnnoyingResource that contains the plugin's messages |
@NotNull AnnoyingOptions |
options
The API options for the plugin
|
| Constructor and Description |
|---|
AnnoyingPlugin()
Create your own constructor, call
super(), and set your options (options) |
| Modifier and Type | Method and Description |
|---|---|
void |
disable()
Called when the plugin is disabled
|
void |
enable()
Called after dependency checks, start-up messages, and command/listener registration.
|
void |
log(@Nullable java.util.logging.Level level,
@NotNull java.lang.String message)
Logs a message to the console
|
void |
onDisable()
Called when the plugin is disabled
|
void |
onEnable()
Called when the plugin is enabled.
|
getClassLoader, getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, installDDL, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, removeDDL, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString@Nullable public static @Nullable AnnoyingCommandRegister commandRegister
AnnoyingCommandRegister to register commands@NotNull public final @NotNull AnnoyingOptions options
@Nullable public @Nullable AnnoyingResource messages
AnnoyingResource that contains the plugin's messages@NotNull public final @NotNull java.util.Map<java.util.UUID,java.util.Map<AnnoyingCooldown.CooldownType,java.lang.Long>> cooldowns
public AnnoyingPlugin()
super(), and set your options (options)public final void onEnable()
Do not override this method! Override enable() instead
onEnable in interface org.bukkit.plugin.PluginonEnable in class org.bukkit.plugin.java.JavaPluginenable()public final void onDisable()
Do not override this method! Override disable() instead
onDisable in interface org.bukkit.plugin.PluginonDisable in class org.bukkit.plugin.java.JavaPlugindisable()public void enable()
public void disable()
public void log(@Nullable
@Nullable java.util.logging.Level level,
@NotNull
@NotNull java.lang.String message)
level - the level of the messagemessage - the message to log