PlayerDropItemEvent ui bug

A new update is now available, introducing seasons and more!
Latest hotfix: 0.8.0.1 (2024-12-20)
  • 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!