mirror of
https://github.com/taoneill/war.git
synced 2024-11-24 03:05:54 +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,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
|
||||
|
Loading…
Reference in New Issue
Block a user