diff --git a/src/main/java/com/nexia/core/listeners/nexus/PlayerDropItemListener.java b/src/main/java/com/nexia/core/listeners/nexus/PlayerDropItemListener.java index 84f01687..19ae0e4c 100644 --- a/src/main/java/com/nexia/core/listeners/nexus/PlayerDropItemListener.java +++ b/src/main/java/com/nexia/core/listeners/nexus/PlayerDropItemListener.java @@ -1,5 +1,6 @@ package com.nexia.core.listeners.nexus; +import com.nexia.core.games.util.PlayerGameMode; import com.nexia.nexus.api.event.player.PlayerHotbarDropItemEvent; import com.nexia.core.utilities.misc.EventUtil; import com.nexia.base.player.NexiaPlayer; @@ -14,6 +15,10 @@ public void registerListener(){ playerDropItemEvent.setCancelled(true); player.refreshInventory(); } + if (player.isInGameMode(PlayerGameMode.LOBBY)) { + playerDropItemEvent.setCancelled(true); + player.refreshInventory(); + } }); } }