Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1.     public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
  2.         Player player = (Player) sender;
  3.         if (cmd.getName().equalsIgnoreCase("adminmenu")) {
  4.             if (!player.hasPermission("lore.adminGUI")) {
  5.                 if (args.length == 0) {
  6.                     openMainGUI(player);   
  7.                 }
  8.             }
  9.         }
  10.    
  11.         if(cmd.getName().equalsIgnoreCase("loreinfo")) {
  12.             if (args.length == 0) {
  13.                 openLoreMenu(player);
  14.             }
  15.         }
  16.         return false;
  17.    
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement