Guest User

Untitled

a guest
Jul 27th, 2016
20
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.mink.se;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5.  
  6.  
  7.  
  8. import org.bukkit.Bukkit;
  9. import org.bukkit.plugin.PluginManager;
  10. import org.bukkit.plugin.java.JavaPlugin;
  11.  
  12. import me.mink.se.clearchat.clearchatCommand;
  13. import me.mink.se.gamemode.flyCommand;
  14. import me.mink.se.gamemode.gamemodeCommand;
  15. import me.mink.se.gamemode.vanishCommand;
  16. import me.mink.se.help.helpCommand;
  17. import me.mink.se.help.pemsCommand;
  18. import me.mink.se.medic.feedCommand;
  19. import me.mink.se.medic.healCommand;
  20.  
  21. public class Main extends JavaPlugin {
  22.  
  23. public static Main instance;
  24. Logger log = Logger.getLogger("Minecraft");
  25.  
  26. public void registerListeners() {
  27. @SuppressWarnings("unused")
  28. PluginManager pm = Bukkit.getServer().getPluginManager();
  29. getCommand("se").setExecutor(new helpCommand());
  30. getCommand("clearchat").setExecutor(new clearchatCommand());
  31. getCommand("cc").setExecutor(new clearchatCommand());
  32. getCommand("feed").setExecutor(new feedCommand());
  33. getCommand("heal").setExecutor(new healCommand());
  34. getCommand("seperms").setExecutor(new pemsCommand());
  35. getCommand("fly").setExecutor(new flyCommand());
  36. getCommand("gm").setExecutor(new gamemodeCommand());
  37. getCommand("vanish").setExecutor(new vanishCommand());
  38.  
  39. }
  40.  
  41. public static Main getInstance() {
  42. return instance;
  43.  
  44. }
  45.  
  46. @Override
  47. public void onEnable() {
  48. this.log.info("Plugin has successfully enabled! Good job!");
  49. getConfig().options().copyDefaults(true);
  50. saveConfig();
  51.  
  52. registerListeners();
  53. }
  54.  
  55. }
RAW Paste Data