diff options
| author | Anthony Zhang <azhang9@gmail.com> | 2013-01-14 16:14:54 -0500 | 
|---|---|---|
| committer | Anthony Zhang <azhang9@gmail.com> | 2013-01-14 16:14:54 -0500 | 
| commit | cfaed1781a79fce286c7e1daad480673a8f0787e (patch) | |
| tree | 0e275a4d56741f316fcdb6465cacd45415c282fd | |
| parent | 7cf84045d4dea9727f9db5e5de9a6524fc4ef1af (diff) | |
Require `server` priv for Lua commands.
| -rw-r--r-- | worldedit_commands/init.lua | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua index b568da3..c30a75e 100644 --- a/worldedit_commands/init.lua +++ b/worldedit_commands/init.lua @@ -851,7 +851,7 @@ minetest.register_chatcommand("/metaload", {  minetest.register_chatcommand("/lua", {
  	params = "<code>",
  	description = "Executes <code> as a Lua chunk in the global namespace",
 -	privs = {worldedit=true},
 +	privs = {worldedit=true, server=true},
  	func = function(name, param)
  		local err = worldedit.lua(param)
  		if err then
 @@ -865,7 +865,7 @@ minetest.register_chatcommand("/lua", {  minetest.register_chatcommand("/luatransform", {
  	params = "<code>",
  	description = "Executes <code> as a Lua chunk in the global namespace with the variable pos available, for each node in the current WorldEdit region",
 -	privs = {worldedit=true},
 +	privs = {worldedit=true, server=true},
  	func = function(name, param)
  		local pos1, pos2 = worldedit.pos1[name], worldedit.pos2[name]
  		if pos1 == nil or pos2 == nil then
 | 
