you need server priv to add new places

This commit is contained in:
cale 2016-01-17 19:17:25 +01:00
parent 46bcce8a6f
commit a7de78b9fa
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ end
minetest.register_chatcommand("setplace", {
params = "<name>",
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

View File

@ -35,7 +35,7 @@ end
minetest.register_chatcommand("setplace", {
params = "<name>",
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