Fixed ForTheKing achievement.
This commit is contained in:
parent
733ba067fe
commit
7d33e76055
@ -211,7 +211,6 @@ public class CastleSiege extends TeamGame
|
||||
}
|
||||
|
||||
registerStatTrackers(
|
||||
new WinAsTeamStatTracker(this, notRedTeam, "ForTheKing"),
|
||||
new KingSlayerStatTracker(this),
|
||||
new BloodThirstyStatTracker(this),
|
||||
new KingDamageStatTracker(this),
|
||||
@ -260,6 +259,30 @@ public class CastleSiege extends TeamGame
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGH)
|
||||
public void registerTeamTracker(GameStateChangeEvent event)
|
||||
{
|
||||
if (event.GetState() == GameState.Recruit)
|
||||
{
|
||||
GameTeam notRed = null;
|
||||
|
||||
for (GameTeam team : GetTeamList())
|
||||
{
|
||||
if (team.GetColor() == ChatColor.RED)
|
||||
continue;
|
||||
|
||||
notRed = team;
|
||||
break;
|
||||
}
|
||||
|
||||
if (notRed != null)
|
||||
{
|
||||
registerStatTrackers(new WinAsTeamStatTracker(this, notRed, "ForTheKing"));
|
||||
System.out.println("Successfully registered For the King StatTrak");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void MoveKits(GameStateChangeEvent event)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user