diff --git a/WG/src/main/java/net/goldtreeservers/worldguardextraflags/wg/WorldGuardUtils.java b/WG/src/main/java/net/goldtreeservers/worldguardextraflags/wg/WorldGuardUtils.java index bec2aa1..ee51951 100644 --- a/WG/src/main/java/net/goldtreeservers/worldguardextraflags/wg/WorldGuardUtils.java +++ b/WG/src/main/java/net/goldtreeservers/worldguardextraflags/wg/WorldGuardUtils.java @@ -38,6 +38,11 @@ public class WorldGuardUtils public static boolean hasBypass(Player player, World world, ProtectedRegion region, Flag flag) { + if (player.hasMetadata("NPC")) + { + return true; + } + //Permission system that supports wildcars is really helpful here :) if (player.hasPermission("worldguard.region.bypass." + world.getName() + "." + region.getId() + "." + flag.getName())) {