forked from mtcontrib/name_restrictions
Exempt server owner from checks
This commit is contained in:
parent
325aed0072
commit
edecfee654
4
init.lua
4
init.lua
@ -13,7 +13,9 @@ for _, allowed_name in pairs(temp) do
|
|||||||
exemptions[allowed_name] = true
|
exemptions[allowed_name] = true
|
||||||
end
|
end
|
||||||
temp = nil
|
temp = nil
|
||||||
|
-- Exempt server owner
|
||||||
|
exemptions[minetest.setting_get("name")] = true
|
||||||
|
exemptions["singleplayer"] = true
|
||||||
|
|
||||||
---------------------
|
---------------------
|
||||||
-- Simple matching --
|
-- Simple matching --
|
||||||
|
Loading…
Reference in New Issue
Block a user