Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CustomGuiCommand implements CommandListener{
- @Command(aliases = { "gui" }, description = "gui",permissions = { }, toolTip = "/gui", min = 1)
- public void GuiCommand(MessageReceiver caller, String[] parameters) {
- caller.message("§cPackage preparing sent");
- if (caller instanceof Player){
- Player player = (Player)caller;
- player.sendMessage("§cPackage almost sent");
- byte[] command = "OpenGui".getBytes();
- Canary.channels().sendCustomPayloadToPlayer("CustomGui", command, player);
- player.sendMessage("§cPackage sent");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment