Advertisement
Guest User

Main Class

a guest
Nov 25th, 2017
83
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package mainInfo;
  2.  
  3. import org.bukkit.ChatColor;
  4. import org.bukkit.event.Listener;
  5. import org.bukkit.plugin.java.JavaPlugin;
  6.  
  7. import Classes.selectclass;
  8. import commands.commands;
  9. import onJoin.JoinTeam;
  10. import skills.HunterSkills;
  11.  
  12. public class MainClass extends JavaPlugin implements Listener{ //ERROR
  13.  
  14. public void onEnable() {
  15. commands commands = new commands();
  16.  
  17. getCommand(commands.cmd1).setExecutor(commands);
  18. getCommand(commands.cmd2).setExecutor(commands);
  19.  
  20. getServer().getConsoleSender().sendMessage(ChatColor.GREEN + "Vegito's Skills has been Enabled.");
  21. getServer().getPluginManager().registerEvents(new selectclass(), this);
  22. getServer().getPluginManager().registerEvents(new HunterSkills(), this);
  23. getServer().getPluginManager().registerEvents(new JoinTeam(), this);
  24.  
  25.  
  26.  
  27. }
  28.  
  29. public void onDisable() {
  30. getServer().getConsoleSender().sendMessage(ChatColor.RED + "Vegito's Skills has been Disabled.");
  31. }
  32.  
  33.  
  34.  
  35.  
  36. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement