SHOW:
|
|
- or go back to the newest paste.
| 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) {
|
| 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 | } |