spenk

Untitled

Apr 15th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. public class CustomGuiCommand implements CommandListener{
  2. @Command(aliases = { "gui" }, description = "gui",permissions = { }, toolTip = "/gui", min = 1)
  3. public void GuiCommand(MessageReceiver caller, String[] parameters) {
  4. caller.message("§cPackage preparing sent");
  5. if (caller instanceof Player){
  6. Player player = (Player)caller;
  7. player.sendMessage("§cPackage almost sent");
  8. byte[] command = "OpenGui".getBytes();
  9. Canary.channels().sendCustomPayloadToPlayer("CustomGui", command, player);
  10. player.sendMessage("§cPackage sent");
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment