Advertisement
ZP4RKER

Untitled

Sep 18th, 2015
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @EventHandler
  2. public void onGuiInteract(PlayerInteractEvent e){
  3. Player p = e.getPlayer();
  4. if(p.getItemInHand().equals(Material.REDSTONE)) {
  5. if(e.getAction() == Action.RIGHT_CLICK_AIR || e.getAction() == Action.LEFT_CLICK_AIR
  6. || e.getAction() == Action.RIGHT_CLICK_BLOCK || e.getAction() == Action.LEFT_CLICK_BLOCK) {
  7. Bukkit.dispatchCommand(p, ("kit"));
  8. }
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement