mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2024-08-20 21:34:06 +02:00
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:
parent
7d7deaddfc
commit
54c62edc47
2
init.lua
2
init.lua
@ -316,11 +316,13 @@ minetest.register_chatcommand("tpe", {
|
|||||||
|
|
||||||
minetest.register_chatcommand("tpy", {
|
minetest.register_chatcommand("tpy", {
|
||||||
description = "Accept teleport requests from another player",
|
description = "Accept teleport requests from another player",
|
||||||
|
privs = {interact=true},
|
||||||
func = tpr_accept
|
func = tpr_accept
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_chatcommand("tpn", {
|
minetest.register_chatcommand("tpn", {
|
||||||
description = "Deny teleport requests from another player",
|
description = "Deny teleport requests from another player",
|
||||||
|
privs = {interact=true},
|
||||||
func = tpr_deny
|
func = tpr_deny
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user