local file = io.open(minetest.get_worldpath().."/spawn", "r") if not file then print("ERROR! NO SPAWN SET! NO WHERE TO SPAWN NEW PLAYER!") return end local line = file:read("*line") file:close() local pos = minetest.string_to_pos(string.sub(line, 1, string.find(line, ")"))) if not pos or type(pos) ~= "table" then return end