New conf.json setting "territoryDenyEndermanBlocksWhenOffline" (default true). As might be expected, this will prevent Enderman from removing or placing blocks in the territory of a faction which has no members online. "territoryDenyEndermanBlocks" of course now only applies when a faction has members online.
This commit is contained in:
		@@ -130,6 +130,7 @@ public class Conf {
 | 
				
			|||||||
	public static boolean territoryBlockTNT = false;
 | 
						public static boolean territoryBlockTNT = false;
 | 
				
			||||||
	public static boolean territoryBlockTNTWhenOffline = false;
 | 
						public static boolean territoryBlockTNTWhenOffline = false;
 | 
				
			||||||
	public static boolean territoryDenyEndermanBlocks = true;
 | 
						public static boolean territoryDenyEndermanBlocks = true;
 | 
				
			||||||
 | 
						public static boolean territoryDenyEndermanBlocksWhenOffline = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	public static boolean safeZoneDenyBuild = true;
 | 
						public static boolean safeZoneDenyBuild = true;
 | 
				
			||||||
	public static boolean safeZoneDenyUseage = true;
 | 
						public static boolean safeZoneDenyUseage = true;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -421,6 +421,7 @@ public class FactionsEntityListener extends EntityListener {
 | 
				
			|||||||
		// quick check to see if all Enderman deny options are enabled; if so, no need to check location
 | 
							// quick check to see if all Enderman deny options are enabled; if so, no need to check location
 | 
				
			||||||
		if (   Conf.wildernessDenyEndermanBlocks
 | 
							if (   Conf.wildernessDenyEndermanBlocks
 | 
				
			||||||
			&& Conf.territoryDenyEndermanBlocks
 | 
								&& Conf.territoryDenyEndermanBlocks
 | 
				
			||||||
 | 
								&& Conf.territoryDenyEndermanBlocksWhenOffline
 | 
				
			||||||
			&& Conf.safeZoneDenyEndermanBlocks
 | 
								&& Conf.safeZoneDenyEndermanBlocks
 | 
				
			||||||
			&& Conf.warZoneDenyEndermanBlocks
 | 
								&& Conf.warZoneDenyEndermanBlocks
 | 
				
			||||||
			) {
 | 
								) {
 | 
				
			||||||
@@ -434,7 +435,7 @@ public class FactionsEntityListener extends EntityListener {
 | 
				
			|||||||
			return Conf.wildernessDenyEndermanBlocks;
 | 
								return Conf.wildernessDenyEndermanBlocks;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else if (claimFaction.isNormal()) {
 | 
							else if (claimFaction.isNormal()) {
 | 
				
			||||||
			return Conf.territoryDenyEndermanBlocks;
 | 
								return claimFaction.hasPlayersOnline() ? Conf.territoryDenyEndermanBlocks : Conf.territoryDenyEndermanBlocksWhenOffline;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else if (claimFaction.isSafeZone()) {
 | 
							else if (claimFaction.isSafeZone()) {
 | 
				
			||||||
			return Conf.safeZoneDenyEndermanBlocks;
 | 
								return Conf.safeZoneDenyEndermanBlocks;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user