return false;
} else if (!this.isSenderAuthorOfZone(zone)) {
return true;
}
TeamKind teamKind = TeamKind.teamKindFromString(this.args[0]);
if (teamKind == null) {
return false;
} else {
Team existingTeam = zone.getTeamByKind(teamKind);
if (existingTeam != null) {
// add additional spawn
existingTeam.addTeamSpawn(player.getLocation());
this.msg("Additional spawn added for team " + existingTeam.getName() + ". Use /deleteteam " + existingTeam.getName() + " to remove all spawns.");
War.war.log(this.getSender().getName() + " moved team " + existingTeam.getName() + " in warzone " + zone.getName(), Level.INFO);
} else {
// new team (use default TeamKind name for now)
Team newTeam = new Team(teamKind.toString(), teamKind, Collections.<Location>emptyList(), zone);
newTeam.setRemainingLives(newTeam.getTeamConfig().resolveInt(TeamConfig.LIFEPOOL));
zone.getTeams().add(newTeam);
if (zone.getLobby() != null) {
zone.getLobby().setLocation(zone.getTeleport());
zone.getLobby().initialize();