people with bypass permission can build in wilderness regardless of wilderness settings

This commit is contained in:
Brettflan 2011-06-01 23:01:51 -05:00
parent 85d055739d
commit 6f0dcf4b29
3 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ public class FactionsBlockListener extends BlockListener {
FPlayer me = FPlayer.get(player);
if (otherFaction.isNone()) {
if (!Conf.wildernessDenyBuild) {
if (!Conf.wildernessDenyBuild || Factions.hasPermAdminBypass(player)) {
return true; // This is not faction territory. Use whatever you like here.
}
me.sendMessage("You can't "+action+" in the wilderness.");

View File

@ -272,7 +272,7 @@ public class FactionsEntityListener extends EntityListener {
FPlayer me = FPlayer.get(player);
if (otherFaction.isNone()) {
if (!Conf.wildernessDenyBuild) {
if (!Conf.wildernessDenyBuild || Factions.hasPermAdminBypass(player)) {
return true; // This is not faction territory. Use whatever you like here.
}
me.sendMessage("You can't "+action+" paintings in the wilderness.");

View File

@ -190,7 +190,7 @@ public class FactionsPlayerListener extends PlayerListener{
FPlayer me = FPlayer.get(player);
if (otherFaction.isNone()) {
if (!Conf.wildernessDenyUseage) {
if (!Conf.wildernessDenyUseage || Factions.hasPermAdminBypass(player)) {
return true; // This is not faction territory. Use whatever you like here.
}
me.sendMessage("You can't use "+TextUtil.getMaterialName(material)+" in the wilderness.");