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
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
Here are all commands registeredprivate void
Here are all listener registeredvoid
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
-
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
-