Skip to content

Instantly share code, notes, and snippets.

@EricZeiberg
Created November 18, 2013 02:40
Show Gist options
  • Save EricZeiberg/7521571 to your computer and use it in GitHub Desktop.
Save EricZeiberg/7521571 to your computer and use it in GitHub Desktop.
Start
@Override
public void onEnd() {
Bukkit.broadcastMessage(ChatColor.DARK_PURPLE + "############");
Bukkit.broadcastMessage(ChatColor.GREEN + "The match has started!");
Bukkit.broadcastMessage(ChatColor.DARK_PURPLE + "############");
TeamModule teamModule = (TeamModule) MatchHandler.getCurrentMatch().getModule("TeamModule");
List<MapTeam> teams = teamModule.getAllTeams();
for (MapTeam t : teams){
for (Player p : t.getPlayers()){
Location loc = SpawnUtils.handleSpawn(p);
p.teleport(loc);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment