Last tests for v0.4.

This commit is contained in:
taoneill 2011-01-22 15:37:31 -05:00
parent 81495be56b
commit 41f7bc881b
2 changed files with 8 additions and 10 deletions

View File

@ -1211,7 +1211,7 @@ public class War extends JavaPlugin {
if(test != null) {
this.Permissions = (Permissions)test;
} else {
info(str("Permission system not enabled. Defaulting to regular War config."));
info("Permissions system not enabled. Defaulting to regular War config.");
}
}
}

View File

@ -73,17 +73,15 @@ public class WarPlayerListener extends PlayerListener {
boolean isMaker = war.isZoneMaker(player);
// Zone walls
if(!isMaker) { // zone makers don't get bothered with guard walls
Warzone nearbyZone = war.zoneOfZoneWallAtProximity(playerLoc);
if(nearbyZone != null) {
if(nearbyZone != null && !isMaker) { // zone makers don't get bothered with guard walls
nearbyZone.protectZoneWallAgainstPlayer(player);
} else {
} else { // zone makers still need to delete their walls
// make sure to delete any wall guards as you leave
for(Warzone zone : war.getWarzones()) {
zone.dropZoneWallGuardIfAny(player);
}
}
}
Warzone playerWarzone = war.getPlayerTeamWarzone(player.getName());
// this uses the teams, so it asks: get the player's team's warzone, to be clearer