vminecraftPlugin.java 725 B

12345678910111213141516171819202122
  1. /**
  2. * vminecraft Plugin
  3. * @author Robert, TrapAlice
  4. */
  5. //This is how we setup the listener
  6. public class vminecraftPlugin extends Plugin {
  7. static final vminecraftListener listener = new vminecraftListener();
  8. public void enable() {
  9. //If we had commands we would add them here.
  10. }
  11. public void disable() {
  12. //And remove the commands here.
  13. }
  14. public void initialize() {
  15. //Here we add the hook we're going to use. In this case it's the arm swing event.
  16. etc.getLoader().addListener(PluginLoader.Hook.CHAT, listener, this, PluginListener.Priority.MEDIUM);
  17. etc.getLoader().addListener(PluginLoader.Hook.COMMAND, listener, this, PluginListener.Priority.HIGH);
  18. }
  19. }