Add fawe.worldguard.member

This commit is contained in:
Jesse Boyd 2017-03-11 14:07:01 +11:00
parent 5bbc381dd0
commit 36f973e36c
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -69,6 +69,13 @@ public class Worldguard extends BukkitMaskManager implements Listener {
} else if (region.isOwner("*")) {
return true;
}
if (localplayer.hasPermission("fawe.worldguard.member")) {
if (region.isMember(localplayer) || region.isMember(localplayer.getName())) {
return true;
} else if (region.isMember("*")) {
return true;
}
}
return false;
}