mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-08 19:40:21 +01:00
11 lines
385 B
Lua
Executable File
11 lines
385 B
Lua
Executable File
-- SETTINGS
|
|
function mesecon.setting(setting, default)
|
|
if type(default) == "bool" then
|
|
return minetest.setting_getbool("mesecon."..setting) or default
|
|
elseif type(default) == "string" then
|
|
return minetest.setting_get("mesecon."..setting) or default
|
|
elseif type(default) == "number" then
|
|
return tonumber(minetest.setting_get("mesecon."..setting) or default)
|
|
end
|
|
end
|