mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-09-26 05:42:37 +02:00
Ignore NPCs for island lock
https://github.com/BentoBoxWorld/BentoBox/issues/1518
This commit is contained in:
parent
78876926ba
commit
b6c30fc466
@ -104,8 +104,8 @@ public class LockAndBanListener extends FlagListener {
|
||||
* @return CheckResult LOCKED, BANNED or OPEN. If an island is locked, that will take priority over banned
|
||||
*/
|
||||
private CheckResult check(Player player, Location loc) {
|
||||
// Ops are allowed everywhere
|
||||
if (player.isOp()) {
|
||||
// Ops or NPC's are allowed everywhere
|
||||
if (player.isOp() || player.hasMetadata("NPC")) {
|
||||
return CheckResult.OPEN;
|
||||
}
|
||||
// See if the island is locked to non-members or player is banned
|
||||
|
Loading…
Reference in New Issue
Block a user