public boolean protectZoneWallAgainstPlayer(Player player) {
List<BlockFace> nearestWalls = this.getNearestWalls(player.getLocation());
boolean protecting = false;
for (BlockFace wall : nearestWalls) {
ZoneWallGuard guard = this.getPlayerZoneWallGuard(player.getName(), wall);
if (guard != null) {
// already protected, need to move the guard
guard.updatePlayerPosition(player.getLocation());
} else {
// new guard
guard = new ZoneWallGuard(player, War.war, this, wall);
this.zoneWallGuards.add(guard);
}
protecting = true;
}
return protecting;