From 54c62edc47195cbd9a4f689775e324c01aad56e6 Mon Sep 17 00:00:00 2001 From: Robbie Ferguson Date: Fri, 20 May 2016 15:54:15 -0400 Subject: [PATCH] Require interact for approve/deny Could be used to circumvent prison or a bad player could annoy n00bs by teleporting them out of spawn, etc. So restrict until they have interact. --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index 721939d..a586769 100644 --- a/init.lua +++ b/init.lua @@ -316,11 +316,13 @@ minetest.register_chatcommand("tpe", { minetest.register_chatcommand("tpy", { description = "Accept teleport requests from another player", + privs = {interact=true}, func = tpr_accept }) minetest.register_chatcommand("tpn", { description = "Deny teleport requests from another player", + privs = {interact=true}, func = tpr_deny })