From a7de78b9fa5489adcc197306b09ca4d9fef4effb Mon Sep 17 00:00:00 2001 From: cale Date: Sun, 17 Jan 2016 19:17:25 +0100 Subject: [PATCH] you need server priv to add new places --- mods/places/init.lua | 2 +- mods/places/init.lua~ | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/places/init.lua b/mods/places/init.lua index f174867..d3d6858 100644 --- a/mods/places/init.lua +++ b/mods/places/init.lua @@ -35,7 +35,7 @@ end minetest.register_chatcommand("setplace", { params = "", description = "Set a place", - privs = {}, + privs = {server=true}, func = function(name, text) if places.pos[text] then return true, "There already is a place named " .. text diff --git a/mods/places/init.lua~ b/mods/places/init.lua~ index f174867..d3d6858 100644 --- a/mods/places/init.lua~ +++ b/mods/places/init.lua~ @@ -35,7 +35,7 @@ end minetest.register_chatcommand("setplace", { params = "", description = "Set a place", - privs = {}, + privs = {server=true}, func = function(name, text) if places.pos[text] then return true, "There already is a place named " .. text