Updated for new getOnlinePlayers() return type