mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2025-01-21 12:21:25 +01: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", {
|
||||
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
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user