mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06:45 +01:00
28 lines
1.1 KiB
Java
28 lines
1.1 KiB
Java
/**
|
|
* 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.
|
|
etc.getInstance().addCommand("/masstp", "Teleports those with lower permissions to you");
|
|
etc.getInstance().addCommand("/rules", "Displays the rules");
|
|
etc.getInstance().addCommand("/fabulous", "makes text SUUUPER");
|
|
etc.getInstance().addCommand("/whois", "/whois [user]");
|
|
settings.getInstance().loadSettings(); //Hopefully this will make the plugin load right away
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|