Hi, I've a problem with the PlayerInteractEvent..... here's the code: Code (Text): @EventHandler(priority = EventPriority.NORMAL) public void onPlayerClickedBlock(PlayerInteractEvent event) { if(event.getAction() == Action.RIGHT_CLICK_BLOCK) event.getPlayer().sendMessage(event.getClickedBlock().getType().toString()); } If I click any block with any item in my hand I'll get ONE message with the block I've clicked. That's fine..... but if I click any block WITHOUT an item in my hand I'll get TWO messages with the same Block. So if I click a stone-block without an item in my hand I'll get two times "STONE". Why does this happen? Is there a way to get only one message?
Code (Text): if(event.getAction() == Action.RIGHT_CLICK_BLOCK && event.getHand() == EquipmentSlot.HAND) Yeah! Works! Awesome! Thanks! : >