This commit is contained in:
Coder12a
2018-10-16 21:58:15 -05:00
parent f73505fe87
commit bec629beb7
10 changed files with 228 additions and 131 deletions

4
ip.lua
View File

@ -5,7 +5,7 @@ factions_ip.player_ips = {}
local factions_worldid = minetest.get_worldpath()
function factions_ip.save()
local file,error = io.open(factions_worldid .. "/" .. "factions_iplist.conf","w")
local file,error = io.open(factions_worldid .. "/" .. "factions_iplist.txt","w")
if file ~= nil then
file:write(minetest.serialize(factions_ip.player_ips))
@ -16,7 +16,7 @@ function factions_ip.save()
end
function factions_ip.load()
local file,error = io.open(factions_worldid .. "/" .. "factions_iplist.conf","r")
local file,error = io.open(factions_worldid .. "/" .. "factions_iplist.txt","r")
if file ~= nil then
local raw_data = file:read("*a")