Allow NPCs to bypass region protections. (#393)

This commit is contained in:
Wizjany 2019-02-04 03:50:09 -05:00 committed by Matthew Miller
parent d5dddba8bc
commit d24157e693

View File

@ -70,6 +70,10 @@ public static boolean isFakePlayer(Player player) {
UUID uuid = player.getUniqueId();
String name = player.getName();
if (player.hasMetadata("NPC")) {
return true;
}
if (uuid.equals(forgeFakePlayerUuid)) {
return true;
}