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 void
commandRegistration()
Here are all commands registeredprivate void
listenerRegistration()
Here are all listener registeredvoid
onDisable()
Method called by the server when the plugin is being disabled.void
onEnable()
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, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
Methods 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:
onEnable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onEnable
in classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()Method called by the server when the plugin is being disabled.- Specified by:
onDisable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onDisable
in classorg.bukkit.plugin.java.JavaPlugin
-
listenerRegistration
private void listenerRegistration()Here are all listener registered -
commandRegistration
private void commandRegistration()Here are all commands registered
-