From 47097b48bacbf2134c92f857674ec9cebfa99aa7 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 10 Apr 2022 01:46:30 +0200 Subject: [PATCH] Require server priv to use tools --- init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.lua b/init.lua index a2417c4..6ccd8e6 100644 --- a/init.lua +++ b/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