mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-10 18:37:39 +01:00
Don't check bypass for offline players.
This is someone else's problem now (╯°□°)╯︵ ┻━┻
This commit is contained in:
parent
98bef4e0ab
commit
46251f5ffa
@ -83,8 +83,12 @@ public void run() {
|
||||
public boolean hasBypass(LocalPlayer player, World world) {
|
||||
if (player instanceof BukkitPlayer) {
|
||||
if (((BukkitPlayer) player).getPlayer().hasMetadata("NPC")
|
||||
&& WorldGuard.getInstance().getPlatform().getGlobalStateManager().get(world).fakePlayerBuildOverride)
|
||||
&& WorldGuard.getInstance().getPlatform().getGlobalStateManager().get(world).fakePlayerBuildOverride) {
|
||||
return true;
|
||||
}
|
||||
if (!((BukkitPlayer) player).getPlayer().isOnline()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return super.hasBypass(player, world);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user