Require server priv to use tools

This commit is contained in:
Wuzzy 2022-04-10 01:46:30 +02:00
parent a9e6ebb2d7
commit 47097b48ba

View File

@ -387,6 +387,11 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
if formname ~= "perlin_explorer:creator" then
return
end
-- Require 'server' priv
local privs = minetest.get_player_privs(player:get_player_name())
if not privs.server then
return
end
local do_apply = fields.apply ~= nil
local do_create = fields.create ~= nil or fields.key_enter_field ~= nil
if (do_create or do_apply) then