Commit 72e0196c authored by tchncs's avatar tchncs

decrease default_value and max_size

increase delay
update privilege message
parent 174ebfdc
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment