Advertisement
iSach

Untitled

Aug 11th, 2015
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @EventHandler
  2. public void onOpenMenuKit(PlayerInteractEvent e){
  3. Player p = e.getPlayer();
  4. if(e.getItem() != null
  5. && e.getItem().getType() == Material.CHEST
  6. && GameState.isState(GameState.IN_LOBBY)
  7. && (e.getAction() == Action.RIGHT_CLICK_AIR || e.getAction() == Action.RIGHT_CLICK_BLOCK))
  8. openKitInv(p);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement