Skip to content

Commit

Permalink
Allow NPCs to bypass region protections. (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
wizjany authored and me4502 committed Feb 4, 2019
1 parent d5dddba commit d24157e
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -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;
}
Expand Down

0 comments on commit d24157e

Please sign in to comment.