summaryrefslogtreecommitdiff
path: root/worldedit_commands/init.lua
diff options
context:
space:
mode:
authorAnthony Zhang <azhang9@gmail.com>2013-01-14 16:14:54 -0500
committerAnthony Zhang <azhang9@gmail.com>2013-01-14 16:14:54 -0500
commitcfaed1781a79fce286c7e1daad480673a8f0787e (patch)
tree0e275a4d56741f316fcdb6465cacd45415c282fd /worldedit_commands/init.lua
parent7cf84045d4dea9727f9db5e5de9a6524fc4ef1af (diff)
Require `server` priv for Lua commands.
Diffstat (limited to 'worldedit_commands/init.lua')
-rw-r--r--worldedit_commands/init.lua4
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