mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2026-02-19 10:22:58 +01:00
vMinecraft hMod files moved into their own directory to make room for bukkit files.
This commit is contained in:
37
hMod/vMinecraft.java
Normal file
37
hMod/vMinecraft.java
Normal file
@@ -0,0 +1,37 @@
|
||||
import java.util.logging.Logger;
|
||||
|
||||
//=====================================================================
|
||||
//Class: vMinecraftPlugin
|
||||
//Use: Starts the plugin
|
||||
//Author: nossr50, TrapAlice, cerevisiae
|
||||
//=====================================================================
|
||||
public class vMinecraft extends Plugin {
|
||||
static final vListener listener = new vListener();
|
||||
protected static final Logger log = Logger.getLogger("Minecraft");
|
||||
|
||||
public void enable() {
|
||||
vConfig.getInstance().loadSettings();
|
||||
vUsers.getInstance().loadUsers();
|
||||
vCom.loadCommands();
|
||||
vUpdatr.getInstance().createUpdatrFile();
|
||||
}
|
||||
|
||||
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.SERVERCOMMAND, listener, this, PluginListener.Priority.CRITICAL);
|
||||
etc.getLoader().addListener(PluginLoader.Hook.CHAT, listener, this, PluginListener.Priority.MEDIUM);
|
||||
etc.getLoader().addListener(PluginLoader.Hook.LOGIN, 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);
|
||||
etc.getLoader().addListener(PluginLoader.Hook.LIQUID_DESTROY, listener, this, PluginListener.Priority.MEDIUM);
|
||||
etc.getLoader().addListener(PluginLoader.Hook.HEALTH_CHANGE, listener, this, PluginListener.Priority.MEDIUM);
|
||||
etc.getLoader().addListener(PluginLoader.Hook.PLAYER_MOVE, listener, this, PluginListener.Priority.MEDIUM);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user