mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-15 15:16:06 +01:00
Allow NPCs to bypass region protections. (#393)
This commit is contained in:
parent
d5dddba8bc
commit
d24157e693
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user