Updated Lua to support World objects with getPlayers function.