Package com.github.mafelp.minecraft
Class Main
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
com.github.mafelp.minecraft.Main
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
public final class Main
extends org.bukkit.plugin.java.JavaPlugin
The main class which includes enable and
disable methods called by the server on startup
and shutdown or on reload.
-
Constructor Summary
Constructors Constructor Description Main() -
Method Summary
Modifier and Type Method Description private voidcommandRegistration()Here are all commands registeredprivate voidlistenerRegistration()Here are all listener registeredvoidonDisable()Method called by the server when the plugin is being disabled.voidonEnable()Method called by the server when plugin is being enabled.Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, 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, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
onEnable
public void onEnable()Method called by the server when plugin is being enabled.- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()Method called by the server when the plugin is being disabled.- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-
listenerRegistration
private void listenerRegistration()Here are all listener registered -
commandRegistration
private void commandRegistration()Here are all commands registered
-