else tplocation = match.getLastTeleportLocation();
tplocation = TeleportationUtil.locationTeleport(tplocation);
}
else if (options.hasOption('s'))
{
AutoRefTeam team = match.getTeam(options.getOptionValue('s'));
if (team != null) tplocation = team.getSpawnLocation();
else tplocation = match.getWorld().getSpawnLocation();
tplocation = TeleportationUtil.locationTeleport(tplocation);
}
else if (options.hasOption('o'))
{
AutoRefTeam team = match.getTeam(options.getOptionValue('o'));
if (team != null) tplocation = team.getLastObjectiveLocation();
else tplocation = match.getLastObjectiveLocation();
tplocation = TeleportationUtil.locationTeleport(tplocation);
}
else if (options.hasOption('v'))
{
AutoRefTeam team = match.getTeam(options.getOptionValue('v'));
if (team != null) tplocation = team.getVictoryMonumentLocation();
tplocation = TeleportationUtil.locationTeleport(tplocation);
}
else if (options.hasOption('r'))
{
tplocation = match.getSpectator(player).prevLocation();