parent
174ebfdc83
commit
72e0196c04
8
init.lua
8
init.lua
|
@ -7,9 +7,9 @@ end
|
|||
|
||||
local previous = os.time()
|
||||
|
||||
local default_size = tonumber(minetest.setting_get("mapfix_default_size")) or 40
|
||||
local max_size = tonumber(minetest.setting_get("mapfix_max_size")) or 50
|
||||
local delay = tonumber(minetest.setting_get("mapfix_delay")) or 15
|
||||
local default_size = tonumber(minetest.setting_get("mapfix_default_size")) or 32
|
||||
local max_size = tonumber(minetest.setting_get("mapfix_max_size")) or 40
|
||||
local delay = tonumber(minetest.setting_get("mapfix_delay")) or 30
|
||||
|
||||
minetest.register_chatcommand("mapfix", {
|
||||
params = "<size>",
|
||||
|
@ -22,7 +22,7 @@ minetest.register_chatcommand("mapfix", {
|
|||
|
||||
if not privs then
|
||||
if size > max_size then
|
||||
return false, "You need the server privilege to exceed the radius of " .. max_size .. " blocks"
|
||||
return false, "You need the trusted_player privilege to exceed the radius of " .. max_size .. " blocks"
|
||||
elseif time - previous < delay then
|
||||
return false, "Wait at least " .. delay .. " seconds from the previous \"/mapfix\"."
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue