mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-09 17:40:32 +01:00
Require debug priv to import schematic
This commit is contained in:
parent
d7363f470d
commit
476f62c286
6
init.lua
6
init.lua
@ -371,6 +371,12 @@ schemedit.add_form("main", {
|
|||||||
|
|
||||||
-- Import schematic
|
-- Import schematic
|
||||||
if fields.import and meta.schem_name and meta.schem_name ~= "" then
|
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
|
if not minetest.read_schematic then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -63,3 +63,4 @@ Main=Grundeinstellungen
|
|||||||
X size:=X-Größe:
|
X size:=X-Größe:
|
||||||
Y size:=Y-Größe:
|
Y size:=Y-Größe:
|
||||||
Z size:=Z-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.
|
||||||
|
@ -62,3 +62,4 @@ Main=
|
|||||||
X size:=
|
X size:=
|
||||||
Y size:=
|
Y size:=
|
||||||
Z size:=
|
Z size:=
|
||||||
|
Insufficient privileges! You need the “debug” privilege to do this.=
|
||||||
|
Loading…
Reference in New Issue
Block a user