Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. package rexiton.bedwars;
  2.  
  3. import org.bukkit.plugin.java.JavaPlugin;
  4.  
  5. import rexiton.commands.BedWars_CMD;
  6. import rexiton.listener.Block;
  7. import rexiton.listener.EntityDamageEvent;
  8. import rexiton.listener.Food;
  9. import rexiton.listener.JoinListener;
  10. import rexiton.listener.WeatherChange;
  11. import rexiton.utils.GameState;
  12. import rexiton.utils.ScoreboardUtil;
  13.  
  14. public class Main extends JavaPlugin{
  15.  
  16. public static String pr = "§8[§3Bedwars§8] ";
  17. public static Main instance;
  18.  
  19. public void onEnable() {
  20. instance = this;
  21. GameState.setGameState(GameState.LOBBY);
  22. initCommands();
  23. initListener();
  24.  
  25. new ScoreboardUtil(this);
  26.  
  27. }
  28.  
  29. public void onDisable() {
  30.  
  31. }
  32.  
  33. public void initCommands() {
  34. new BedWars_CMD(this);
  35. }
  36.  
  37. public void initListener() {
  38. new Food(this);
  39. new WeatherChange(this);
  40. new EntityDamageEvent(this);
  41. new JoinListener(this);
  42. new Block(this);
  43. }
  44.  
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement