Require debug priv to import schematic

This commit is contained in:
Wuzzy 2020-05-14 22:43:45 +02:00
parent d7363f470d
commit 476f62c286
3 changed files with 8 additions and 0 deletions

View File

@ -371,6 +371,12 @@ schemedit.add_form("main", {
-- Import schematic
if fields.import and meta.schem_name and meta.schem_name ~= "" then
if not minetest.get_player_privs(name).debug then
minetest.chat_send_player(name, minetest.colorize("red",
S("Insufficient privileges! You need the “debug” privilege to do this.")))
return
end
if not minetest.read_schematic then
return
end

View File

@ -63,3 +63,4 @@ Main=Grundeinstellungen
X size:=X-Größe:
Y size:=Y-Größe:
Z size:=Z-Größe:
Insufficient privileges! You need the “debug” privilege to do this.=Unzureichende Privilegien! Sie benötigen das „debug“-Privileg, um dies tun zu können.

View File

@ -62,3 +62,4 @@ Main=
X size:=
Y size:=
Z size:=
Insufficient privileges! You need the “debug” privilege to do this.=