mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2026-02-20 18:53:11 +01:00
Vminecraft.java renamed to vminecraftPlugin.java, settings tweaked.
Compatible with 116 Signed-off-by: nossr50 <nossr50@gmail.com>
This commit is contained in:
22
vminecraftPlugin.java
Normal file
22
vminecraftPlugin.java
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* vminecraft Plugin
|
||||
* @author Robert, TrapAlice
|
||||
*/
|
||||
//This is how we setup the listener
|
||||
public class vminecraftPlugin extends Plugin {
|
||||
static final vminecraftListener listener = new vminecraftListener();
|
||||
|
||||
public void enable() {
|
||||
//If we had commands we would add them here.
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user