Add configuration value for player item drops

This commit is contained in:
Allink
2023-07-23 00:04:46 +01:00
parent 41cf62c8c0
commit ee594e7c63
4 changed files with 12 additions and 4 deletions

View File

@ -161,7 +161,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);
}