Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onPlayerClicks(PlayerInteractEvent event) {
- Player player = event.getPlayer();
- Action action = event.getAction();
- ItemStack chest = new ItemStack(Material.CHEST, 1);
- if (action.equals(Action.RIGHT_CLICK_AIR) || action.equals(Action.RIGHT_CLICK_BLOCK)) {
- if (player.getItemInHand().getType() == Material.CHEST) {
- Bukkit.broadcastMessage("§6§lLUCKYBLOCK§8 >§f O jogador §e" + player.getName() + " §fabriu uma luckyblock");
- player.getInventory().removeItem(chest);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement