added priv for fixlight command

This commit is contained in:
kaadmy 2015-10-20 12:44:42 -07:00
parent 7f5d3304dd
commit 23b706f401
1 changed files with 3 additions and 1 deletions

View File

@ -40,12 +40,14 @@ function util.fixlight(pos1, pos2)
return #nodes
end
if minetest.setting_getbool("fixlight_command_enable") then
minetest.register_privilege("fixlight", "Can use /fixlight command")
minetest.register_chatcommand(
"fixlight",
{
params = "[radius 1-20]",
description = "Fix light in a radius around you",
privs = {interact = true},
privs = {fixlight = true},
func = function(name, param)
local rad = tonumber(param)