changed getPlayers() to getOnlinePlayers()