Package studio.magemonkey.genesis.api
Class GenesisAddon
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
studio.magemonkey.genesis.api.GenesisAddon
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
- Direct Known Subclasses:
GenesisAddonConfigurable
public abstract class GenesisAddon
extends org.bukkit.plugin.java.JavaPlugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateStorage(org.bukkit.plugin.Plugin plugin, String name) Creates store for an addonprotected voiddisable()Called to disable the addonabstract voidDisables the addonprotected voidenable()Called to enable the addonabstract voidEnables the addonabstract voidabstract voidgenesisReloaded(org.bukkit.command.CommandSender sender) abstract StringGet the name of the addonfinal GenesisGet an instance of the Genesis classabstract StringGet the version required for the addon to workprotected doublevoidvoidonEnable()voidPrints information in the info loggervoidprintSevere(String msg) Prints a serve statement in the loggervoidprintWarning(String msg) Prints a warning in the warning loggervoidreload(org.bukkit.command.CommandSender sender) Called to reload the addonMethods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Constructor Details
-
GenesisAddon
public GenesisAddon()
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-
enable
protected void enable()Called to enable the addon -
disable
protected void disable()Called to disable the addon -
reload
public void reload(org.bukkit.command.CommandSender sender) Called to reload the addon- Parameters:
sender- the sender of the command
-
printSevere
Prints a serve statement in the logger- Parameters:
msg- the message to log
-
printWarning
Prints a warning in the warning logger- Parameters:
msg- the message to log
-
printInfo
Prints information in the info logger- Parameters:
msg- message to log
-
getGenesis
Get an instance of the Genesis class- Returns:
- instance of class
-
getWorth
-
createStorage
Creates store for an addon- Parameters:
plugin- the plugin addonname- the name of the addon- Returns:
- new storage for an addon
-
getAddonName
Get the name of the addon- Returns:
- name of addon
-
getRequiredGenesisVersion
Get the version required for the addon to work- Returns:
- version required
-
enableAddon
public abstract void enableAddon()Enables the addon -
genesisFinishedLoading
public abstract void genesisFinishedLoading() -
disableAddon
public abstract void disableAddon()Disables the addon -
genesisReloaded
public abstract void genesisReloaded(org.bukkit.command.CommandSender sender)
-