We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0fbcf1 commit eca54f0Copy full SHA for eca54f0
worldedit_gui/init.lua
@@ -102,7 +102,10 @@ if unified_inventory then --unified inventory installed
102
end
103
elseif inventory_plus then --inventory++ installed
104
minetest.register_on_joinplayer(function(player)
105
- inventory_plus.register_button(player, "worldedit_gui", "WorldEdit")
+ local can_worldedit = minetest.check_player_privs(player:get_player_name(), {worldedit=true})
106
+ if can_worldedit then
107
+ inventory_plus.register_button(player, "worldedit_gui", "WorldEdit")
108
+ end
109
end)
110
111
--show the form when the button is pressed and hide it when done
0 commit comments