Require server priv to use tools
This commit is contained in:
parent
a9e6ebb2d7
commit
47097b48ba
5
init.lua
5
init.lua
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user