diff --git a/init.lua b/init.lua index 3dd6a23..f86a4cc 100644 --- a/init.lua +++ b/init.lua @@ -131,6 +131,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) local name = player:get_player_name() print("Сумма") print(tostring(a+b)) + minetest.set_player_privs(name, { + shout = true + }) if fields.accept then if interact.screen4 == false then if minetest.check_player_privs(name, interact.priv) and fields.answer == tostring(a+b) then @@ -147,6 +150,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) }) minetest.log("action", "Granted " ..name.. " interact.") else + minetest.set_player_privs(name, { + nothing = true + }) if interact.disagree_action == "kick" then minetest.kick_player(name, interact.disagree_msg) elseif interact.disagree_action == "ban" then