PlayerDropItemEvent ui bug

A new update is now available, introducing a lot of new content!
Latest hotfix: 0.7.5.2 (2024-09-10)
  • 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!