mirror of
https://github.com/taoneill/war.git
synced 2024-11-23 18:55:28 +01:00
Last tests for v0.4.
This commit is contained in:
parent
81495be56b
commit
41f7bc881b
@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -73,15 +73,13 @@ 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) {
|
||||
nearbyZone.protectZoneWallAgainstPlayer(player);
|
||||
} else {
|
||||
// make sure to delete any wall guards as you leave
|
||||
for(Warzone zone : war.getWarzones()) {
|
||||
zone.dropZoneWallGuardIfAny(player);
|
||||
}
|
||||
Warzone nearbyZone = war.zoneOfZoneWallAtProximity(playerLoc);
|
||||
if(nearbyZone != null && !isMaker) { // zone makers don't get bothered with guard walls
|
||||
nearbyZone.protectZoneWallAgainstPlayer(player);
|
||||
} 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user