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.
This commit is contained in:
Robbie Ferguson 2016-05-20 15:54:15 -04:00
parent 7d7deaddfc
commit 54c62edc47

@ -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
})