Update getOnlinePlayers() to provide backwards compatibility