1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-30 00:10:33 +02:00

Updated mapfix

This commit is contained in:
Gael-de-Sailly 2015-10-04 15:29:24 +02:00
parent 262de90f14
commit bd352beaf3
3 changed files with 2 additions and 2 deletions

0
mods/mapfix/LICENSE Executable file → Normal file
View File

0
mods/mapfix/README.md Executable file → Normal file
View File

4
mods/mapfix/init.lua Executable file → Normal file
View File

@ -18,12 +18,12 @@ minetest.register_chatcommand("mapfix", {
local pos = minetest.get_player_by_name(name):getpos()
local size = tonumber(param) or 40
local privs = minetest.check_player_privs(name, {server=true})
local time = os.clock()
local time = os.time()
if not privs then
if size > 50 and not privs then
return false, "You need the server privilege to exceed the radius of " .. max_size .. " blocks"
elseif time - previous < 15 then
elseif time - previous < delay then
return false, "Wait at least " .. delay .. " seconds from the previous \"/mapfix\"."
end
previous = time