1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

Sethome working in the nether, factions too.

- Sethome depends on nether
- There is a home in the nether and another in the real world
- Factions no longer use mobf missing API
- Players' skin refreshed after only 2min
This commit is contained in:
LeMagnesium
2014-11-01 13:00:59 +01:00
parent e8443c87f6
commit 699d4f96c5
5 changed files with 49 additions and 12 deletions

View File

@ -343,7 +343,7 @@ end
--! @return true/false (succesfully changed privileges)
-------------------------------------------------------------------------------
function factions.set_admin(name,playername,value)
mobf_assert_backtrace(type(playername) == "string")
--mobf_assert_backtrace(type(playername) == "string")
if factions.data.factions[name] ~= nil then
if value then
factions.data.factions[name].adminlist[playername] = true
@ -772,4 +772,4 @@ function factions.load()
end
end
)
end
end

View File

@ -16,7 +16,7 @@ table.icontains = table.icontains or function(t, v)
return false
end
local players_in_nether = {}
players_in_nether = {}
local file = io.open(minetest.get_worldpath()..'/nether_players', "r")
if file then
local contents = file:read('*all')

View File

@ -13,7 +13,7 @@ u_skins.load_players()
local ttime = 0
minetest.register_globalstep(function(t)
ttime = ttime + t
if ttime < 360 then --every 6min'
if ttime < 120 then --every 6min'
return
end
ttime = 0