people with bypass permission can build in wilderness regardless of wilderness settings
This commit is contained in:
		@@ -63,7 +63,7 @@ public class FactionsBlockListener extends BlockListener {
 | 
				
			|||||||
		FPlayer me = FPlayer.get(player);
 | 
							FPlayer me = FPlayer.get(player);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		if (otherFaction.isNone()) {
 | 
							if (otherFaction.isNone()) {
 | 
				
			||||||
			if (!Conf.wildernessDenyBuild) {
 | 
								if (!Conf.wildernessDenyBuild || Factions.hasPermAdminBypass(player)) {
 | 
				
			||||||
				return true; // This is not faction territory. Use whatever you like here.
 | 
									return true; // This is not faction territory. Use whatever you like here.
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			me.sendMessage("You can't "+action+" in the wilderness.");
 | 
								me.sendMessage("You can't "+action+" in the wilderness.");
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -272,7 +272,7 @@ public class FactionsEntityListener extends EntityListener {
 | 
				
			|||||||
		FPlayer me = FPlayer.get(player);
 | 
							FPlayer me = FPlayer.get(player);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (otherFaction.isNone()) {
 | 
							if (otherFaction.isNone()) {
 | 
				
			||||||
			if (!Conf.wildernessDenyBuild) {
 | 
								if (!Conf.wildernessDenyBuild || Factions.hasPermAdminBypass(player)) {
 | 
				
			||||||
				return true; // This is not faction territory. Use whatever you like here.
 | 
									return true; // This is not faction territory. Use whatever you like here.
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			me.sendMessage("You can't "+action+" paintings in the wilderness.");
 | 
								me.sendMessage("You can't "+action+" paintings in the wilderness.");
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -190,7 +190,7 @@ public class FactionsPlayerListener extends PlayerListener{
 | 
				
			|||||||
		FPlayer me = FPlayer.get(player);
 | 
							FPlayer me = FPlayer.get(player);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (otherFaction.isNone()) {
 | 
							if (otherFaction.isNone()) {
 | 
				
			||||||
			if (!Conf.wildernessDenyUseage) {
 | 
								if (!Conf.wildernessDenyUseage || Factions.hasPermAdminBypass(player)) {
 | 
				
			||||||
				return true; // This is not faction territory. Use whatever you like here.
 | 
									return true; // This is not faction territory. Use whatever you like here.
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			me.sendMessage("You can't use "+TextUtil.getMaterialName(material)+" in the wilderness.");
 | 
								me.sendMessage("You can't use "+TextUtil.getMaterialName(material)+" in the wilderness.");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user