bshayhoe

Startup script

Oct 20th, 2015
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. //You may not reproduce this code or modify it without the consent of the Author: Behn Hayhoe.
  2. //Permission can be obtained by emailing: [email protected] with details of what you wish to do with it.
  3. package com.gmail.contactbshayhoe;
  4.  
  5. import org.bukkit.plugin.java.JavaPlugin;
  6.  
  7. import com.gmail.contactbshayhoe.commands.nationad;
  8. import com.gmail.contactbshayhoe.commands.nationplease;
  9. import com.gmail.contactbshayhoe.commands.townad;
  10. import com.gmail.contactbshayhoe.commands.townplease;
  11.  
  12. public class NeedTown2 extends JavaPlugin implements CommandExecutor {
  13.  
  14. @Override
  15. public void onEnable() {
  16. getLogger().info("NeedTown2 is now active");
  17.  
  18. getCommand("townplease").setExecutor(new townplease());
  19. getCommand("nationplease").setExecutor(new nationplease());
  20. getCommand("townad").setExecutor(new townad());
  21. getCommand("nationad").setExecutor(new nationad());
  22. }
  23.  
  24. @Override
  25. public void onDisable() {
  26. getLogger().info("NeedTown2 has now shutdown");
  27.  
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment