1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-07-03 16:40:38 +02:00

Disable node inspection on use if it was enabled before the worldedit privilege was removed from a player to prevent spamming.

This commit is contained in:
khonkhortisan
2014-04-18 13:06:55 -07:00
parent 7083a26e72
commit 4475909a97
2 changed files with 7 additions and 5 deletions

View File

@ -107,6 +107,7 @@ minetest.register_on_punchnode(function(pos, node, puncher)
node.name, minetest.pos_to_string(pos), node.param1, node.param2, name, axis .. (sign > 0 and "+" or "-"))
else
message = "inspector: worldedit privileges required"
worldedit.inspect[name] = nil
end
worldedit.player_notify(name, message)
end