Merge branch 'main' of github.com:AtlasMediaGroup/TotalFreedomMod into merge/main/development

This commit is contained in:
Allink
2023-07-24 23:39:09 +01:00
4 changed files with 13 additions and 5 deletions

View File

@ -172,7 +172,7 @@ public class EventBlocker extends FreedomService
@EventHandler(priority = EventPriority.NORMAL)
public void onPlayerDropItem(PlayerDropItemEvent event)
{
if (!plugin.al.isAdmin(event.getPlayer()))
if (!plugin.al.isAdmin(event.getPlayer()) && !ConfigEntry.ALLOW_ITEM_DROPS.getBoolean())
{
event.setCancelled(true);
}