2018-05-08 15:28:01 +02:00
|
|
|
local has_xp_redo_mod = minetest.get_modpath("xp_redo")
|
2018-05-07 13:35:14 +02:00
|
|
|
|
2018-05-07 16:07:51 +02:00
|
|
|
|
2018-05-07 13:35:14 +02:00
|
|
|
missions.save_missions = function()
|
|
|
|
-- TODO
|
|
|
|
end
|
|
|
|
|
|
|
|
missions.load_missions = function()
|
|
|
|
-- TODO
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2018-05-28 09:04:34 +02:00
|
|
|
-- timeout check
|
2018-05-07 13:35:14 +02:00
|
|
|
local timer = 0
|
|
|
|
minetest.register_globalstep(function(dtime)
|
|
|
|
timer = timer + dtime;
|
|
|
|
if timer >= 1 then
|
|
|
|
local now = os.time(os.date("!*t"))
|
|
|
|
local players = minetest.get_connected_players()
|
|
|
|
for i,player in pairs(players) do
|
|
|
|
local playername = player:get_player_name()
|
2018-07-20 22:25:18 +02:00
|
|
|
-- TODO
|
2018-05-07 13:35:14 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
timer = 0
|
|
|
|
end
|
2018-05-07 14:59:11 +02:00
|
|
|
end)
|
|
|
|
|
2018-06-29 16:00:00 +02:00
|
|
|
missions.only_owner_can_dig = function(pos, player)
|
|
|
|
if not player then
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
local playername = player:get_player_name() or ""
|
|
|
|
return meta:get_string("owner") == playername
|
|
|
|
end
|
|
|
|
|
2018-05-28 09:04:34 +02:00
|
|
|
|
|
|
|
|