Where are registered the /grant commands?
Posted: Fri Jul 15, 2016 12:58
Where are registered the /grant commands?
FOSS gamedev and creative worlds
https://forums.minetest.org/
if creative_mode then
local privs = minetest.get_player_privs(name)
fly = true
noclip = true
fast = true
minetest.set_player_privs(name, privs)
if creative_mode then
local privs = minetest.get_player_privs(name)
privs.fly = true
privs.noclip = true
privs.fast = true
minetest.set_player_privs(name, privs)
end
local creative_mode = minetest.setting_getbool("creative_mode")
if creative_mode then
local privs = minetest.get_player_privs(name)
privs.fly = true
privs.noclip = true
privs.fast = true
minetest.set_player_privs(name, privs)
end