Check bypass perms for item-drop flag.

This commit is contained in:
Wizjany 2013-08-20 17:03:00 -04:00
parent d1e7796f81
commit d47c255168

View File

@ -1232,7 +1232,8 @@ public void onPlayerDropItem(PlayerDropItemEvent event) {
Player player = event.getPlayer();
if (wcfg.useRegions) {
if (!plugin.getGlobalRegionManager().allows(DefaultFlag.ITEM_DROP, player.getLocation())) {
if (!plugin.getGlobalRegionManager().hasBypass(player, player.getWorld())
&& !plugin.getGlobalRegionManager().allows(DefaultFlag.ITEM_DROP, player.getLocation())) {
event.setCancelled(true);
player.sendMessage(ChatColor.RED + "You don't have permission to do that in this area.");
}