gmoehra

(rmcStaff) - Bungeecord / main

Jan 14th, 2022
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. package redeminecraft.staff.proxy.main;
  2.  
  3. import net.md_5.bungee.BungeeCord;
  4. import net.md_5.bungee.api.plugin.Plugin;
  5. import redeminecraft.staff.proxy.commands.Demote;
  6. import redeminecraft.staff.proxy.commands.Promote;
  7.  
  8. public class Main extends Plugin {
  9.  
  10. public static Main plugin;
  11. public static API api;
  12.  
  13. @Override
  14. public void onEnable() {
  15. plugin = this;
  16. api = new API();
  17.  
  18. BungeeCord.getInstance().registerChannel("Staff");
  19.  
  20. // commands
  21. BungeeCord.getInstance().getPluginManager().registerCommand(this, new Demote());
  22. BungeeCord.getInstance().getPluginManager().registerCommand(this, new Promote());
  23.  
  24. System.out.println("§c" + plugin.getDescription().getName() + " - Modo BungeeCord habilitado.");
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment