// if there was a match previously loaded, unload it
if (prev != null)
{
for (Player player : prev.getWorld().getPlayers())
player.teleport(match.getPlayerSpawn(player));
prev.destroy(MatchUnloadEvent.Reason.COMPLETE);
}
}
}
@EventHandler(priority=EventPriority.HIGHEST, ignoreCancelled=true)