lwccb

idk

Dec 7th, 2020
112
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. import org.bukkit.plugin.java.JavaPlugin;
  3.  
  4. public class Main extends JavaPlugin implements Listener {
  5.  
  6. public Bar bar;
  7.  
  8. @Override
  9. public void onEnable() {
  10. getServer().getPluginManager().registerEvents(new godboots(), this);
  11. getServer().getPluginManager().registerEvents(new ChangeTeam(), this);
  12. this.getCommand("hello").setExecutor(new hello());
  13. this.getCommand("launch").setExecutor(new launch());
  14. this.getCommand("Doctor").setExecutor(new Doctor());
  15. this.getCommand("godboots").setExecutor(new godboots());
  16. this.getCommand("changeteam").setExecutor(new ChangeTeam());
  17. ChangeTeam.CreateInv();
  18. this.getCommand("mystats").setExecutor(new Stats());
  19. this.getCommand("mystats").setTabCompleter(new stattab());
  20. this.getServer().getPluginManager().registerEvents(new scoreboard(), this);
  21. if (!Bukkit.getOnlinePlayers().isEmpty())
  22. for (Player online: Bukkit.getOnlinePlayers())
  23. scoreboard.createBoard(online);
  24. this.getServer().getPluginManager().registerEvents(this, this);
  25. bar = new Bar(this);
  26. bar.createBar();
  27.  
  28.  
  29. if (Bukkit.getOnlinePlayers().size() > 0)
  30. for (Player on : Bukkit.getOnlinePlayers())
  31. bar.addPlayer(on);
  32. this.getCommand("PlayerInfo").setExecutor(new PlayerInfo());
  33. PlayerInfo.CreateInv();
  34. // startup
  35. // reloads
  36. // plugin reloads
  37. }
  38.  
  39. @Override
  40. public void onDisable() {
  41.  
  42. // shutdown
  43. // reloads
  44. // plugin reloads
  45. }
  46.  
  47. }
RAW Paste Data