Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package redeminecraft.staff.proxy.main;
- import net.md_5.bungee.BungeeCord;
- import net.md_5.bungee.api.plugin.Plugin;
- import redeminecraft.staff.proxy.commands.Demote;
- import redeminecraft.staff.proxy.commands.Promote;
- public class Main extends Plugin {
- public static Main plugin;
- public static API api;
- @Override
- public void onEnable() {
- plugin = this;
- api = new API();
- BungeeCord.getInstance().registerChannel("Staff");
- // commands
- BungeeCord.getInstance().getPluginManager().registerCommand(this, new Demote());
- BungeeCord.getInstance().getPluginManager().registerCommand(this, new Promote());
- System.out.println("§c" + plugin.getDescription().getName() + " - Modo BungeeCord habilitado.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment