{
String username = player.getGameProfile().getName();
if (!this.spaceRaceData.getPlayerNames().contains(username))
{
playerNames.add(new ListElement(username, this.recentlyInvited.containsKey(username) ? GCCoreUtil.to32BitColor(255, 250, 120, 0) : GCCoreUtil.to32BitColor(255, 190, 190, 190)));
}
}
}
this.gradientListAddPlayers.updateListContents(playerNames);
if (this.buttonList.size() >= 2)
{
((GuiElementGradientButton) this.buttonList.get(1)).enabled = this.gradientListAddPlayers.getSelectedElement() != null;
}
}
if (this.currentState == EnumSpaceRaceGui.REMOVE_PLAYER && this.gradientListRemovePlayers != null && this.ticksPassed % 20 == 0)
{
List<ListElement> playerNames = new ArrayList<ListElement>();
for (int i = 1; i < this.spaceRaceData.getPlayerNames().size(); i++)
{
String playerName = this.spaceRaceData.getPlayerNames().get(i);
playerNames.add(new ListElement(playerName, GCCoreUtil.to32BitColor(255, 190, 190, 190)));
}
this.gradientListRemovePlayers.updateListContents(playerNames);
if (this.buttonList.size() >= 2)