Register creative priv in case MTG is not installed
This commit is contained in:
parent
4736b551a8
commit
cf5f18e1c1
|
@ -9,6 +9,14 @@ local fmt, find, match, gmatch, sub, split, lower, upper =
|
||||||
string.format, string.find, string.match, string.gmatch,
|
string.format, string.find, string.match, string.gmatch,
|
||||||
string.sub, string.split, string.lower, string.upper
|
string.sub, string.split, string.lower, string.upper
|
||||||
|
|
||||||
|
if not core.registered_privileges.creative then
|
||||||
|
core.register_privilege("creative", {
|
||||||
|
description = "Allow player to use creative inventory",
|
||||||
|
give_to_singleplayer = false,
|
||||||
|
give_to_admin = false,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
local old_is_creative_enabled = core.is_creative_enabled
|
local old_is_creative_enabled = core.is_creative_enabled
|
||||||
|
|
||||||
function core.is_creative_enabled(name)
|
function core.is_creative_enabled(name)
|
||||||
|
|
Ŝarĝante…
Reference in New Issue