Skip to content

Instantly share code, notes, and snippets.

@pxpc2
Created August 3, 2012 18:10
Show Gist options
  • Save pxpc2/3250100 to your computer and use it in GitHub Desktop.
Save pxpc2/3250100 to your computer and use it in GitHub Desktop.
for (Player currentPlayer : Players.getLoaded())
{
if (currentPlayer != null && currentPlayer.getName() != Players.getLocal().getName())
{
for (String listName : closedPlayers)
{
if (currentPlayer.getName().toLowerCase().equals(listName))
{
return;
}
else
{
closedPlayers.add(currentPlayer.getName().toLowerCase());
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment