initial commit

subgame + mods
This commit is contained in:
Ombridride
2014-10-28 18:01:32 +01:00
parent baab1b3f7c
commit 232b274c55
6451 changed files with 226156 additions and 0 deletions

26
mods/xban/conf.lua Executable file
View File

@@ -0,0 +1,26 @@
-- Extended Ban Mod for Minetest
-- (C) 2013 Diego Martínez <kaeza>
-- See `LICENSE.txt' for details.
-- conf.lua: Config routines.
xban.conf = { }
local conf = Settings(minetest.get_worldpath().."/xban.conf")
function xban.conf.get(k)
local v
v = conf:get(k)
if v and (v ~= "") then return v end
v = minetest.setting_get("xban."..k)
if v and (v ~= "") then return v end
end
function xban.conf.get_bool(k)
local v
v = conf:get(k)
if v and (v ~= "") then return conf:get_bool(k) end
v = minetest.setting_get("xban."..k)
if v and (v ~= "") then return minetest.setting_getbool("xban."..k) end
end