1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-18 17:53:00 +01:00

Renaming the plugin from vminecraftPlugin to vMinecraft

This commit is contained in:
cerevisiae
2010-11-30 22:47:24 -06:00
parent 6638fb5dba
commit 39d48a3bb7
5 changed files with 909 additions and 0 deletions

32
vMinecraft.java Normal file
View File

@@ -0,0 +1,32 @@
import java.util.logging.Logger;
//=====================================================================
//Class: vMinecraftPlugin
//Use: Starts the plugin
//Author: nossr50, TrapAlice, cerevisiae
//=====================================================================
public class vMinecraft 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);
}
}
}