Fix Bugs and add getOnlinePlayers()