Created
November 18, 2013 02:40
-
-
Save EricZeiberg/7521571 to your computer and use it in GitHub Desktop.
Start
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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