Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onGuiInteract(PlayerInteractEvent e){
- Player p = e.getPlayer();
- if(p.getItemInHand().equals(Material.REDSTONE)) {
- if(e.getAction() == Action.RIGHT_CLICK_AIR || e.getAction() == Action.LEFT_CLICK_AIR
- || e.getAction() == Action.RIGHT_CLICK_BLOCK || e.getAction() == Action.LEFT_CLICK_BLOCK) {
- Bukkit.dispatchCommand(p, ("kit"));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement