PlayerDropItemEvent ui bug

  • I just noticed that if you cancel the PlayerDropItemEvent the item the item vanishes until you drop another item on it. if the item was in the hotbar the player can still use the item but it doesnt show in the hotbar.



    Java
    @EventMethod
    public void onItemDrop(PlayerDropItemEvent event){
    Player player = event.getPlayer();
    Item item = event.getItem();
    event.setCancelled(true);
    }

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!