mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 06:36:45 +01:00
Renaming the plugin from vminecraftPlugin to vMinecraft
This commit is contained in:
parent
6f973cb9b4
commit
dcf31b638b
@ -1,32 +0,0 @@
|
|||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
//=====================================================================
|
|
||||||
//Class: vMinecraftPlugin
|
|
||||||
//Use: Starts the plugin
|
|
||||||
//Author: nossr50, TrapAlice, cerevisiae
|
|
||||||
//=====================================================================
|
|
||||||
public class vminecraftPlugin extends Plugin {
|
|
||||||
static final vminecraftListener listener = new vminecraftListener();
|
|
||||||
protected static final Logger log = Logger.getLogger("Minecraft");
|
|
||||||
|
|
||||||
public void enable() {
|
|
||||||
vminecraftSettings.getInstance().loadSettings();
|
|
||||||
vminecraftCommands.loadCommands();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void disable() {
|
|
||||||
//And remove the commands here.
|
|
||||||
}
|
|
||||||
|
|
||||||
public void initialize() {
|
|
||||||
//Here we add the hook we're going to use. In this case it's the arm swing event.
|
|
||||||
etc.getLoader().addListener(PluginLoader.Hook.CHAT, listener, this, PluginListener.Priority.MEDIUM);
|
|
||||||
etc.getLoader().addListener(PluginLoader.Hook.COMMAND, listener, this, PluginListener.Priority.HIGH);
|
|
||||||
etc.getLoader().addListener(PluginLoader.Hook.IGNITE, listener, this, PluginListener.Priority.HIGH);
|
|
||||||
etc.getLoader().addListener(PluginLoader.Hook.DAMAGE, listener, this, PluginListener.Priority.MEDIUM);
|
|
||||||
etc.getLoader().addListener(PluginLoader.Hook.EXPLODE, listener, this, PluginListener.Priority.HIGH);
|
|
||||||
if(etc.getInstance().isHealthEnabled()){
|
|
||||||
etc.getLoader().addListener(PluginLoader.Hook.HEALTH_CHANGE, listener, this, PluginListener.Priority.MEDIUM);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user