mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2025-01-22 21:01:25 +01:00
parent
e652b37170
commit
e57cd76367
@ -106,7 +106,7 @@ tp_enable_tpp_command = false
|
||||
```
|
||||
Those values are the default values of the mod.
|
||||
You can also go to your Minetest, Settings tab, All settings, Mods, and you'll find `tpr` there.
|
||||
Or another way to do it, is changing the values in `settingstypes.txt`.
|
||||
Or another way to do it, is changing the values in `settingtypes.txt`.
|
||||
|
||||
## Installation
|
||||
- Unzip the archive, rename the folder to tpr and
|
||||
|
4
init.lua
4
init.lua
@ -194,7 +194,7 @@ function tp.tpr_send(sender, receiver)
|
||||
chat2.send_message(minetest.get_player_by_name(sender), S("Teleport request sent! It will timeout in @1 seconds", tp.timeout_delay), 0xFFFFFF)
|
||||
end
|
||||
minetest.chat_send_player(receiver, S("@1 is requesting to teleport to you. /tpy to accept", sender))
|
||||
minetest.chat_send_player(sender, S("Teleport request sent! It will timeout in @1 seconds", timeout_delay))
|
||||
minetest.chat_send_player(sender, S("Teleport request sent! It will timeout in @1 seconds", tp.timeout_delay))
|
||||
-- Write name values to list and clear old values.
|
||||
tp.tpr_list[receiver] = sender
|
||||
-- Teleport timeout delay
|
||||
@ -266,7 +266,7 @@ function tp.tphr_send(sender, receiver)
|
||||
chat2.send_message(minetest.get_player_by_name(sender), S("Teleport request sent! It will timeout in @1 seconds", tp.timeout_delay), 0xFFFFFF)
|
||||
end
|
||||
minetest.chat_send_player(receiver, S("@1 is requesting that you teleport to them. /tpy to accept; /tpn to deny", sender))
|
||||
minetest.chat_send_player(sender, S("Teleport request sent! It will timeout in @1 seconds", timeout_delay))
|
||||
minetest.chat_send_player(sender, S("Teleport request sent! It will timeout in @1 seconds", tp.timeout_delay))
|
||||
-- Write name values to list and clear old values.
|
||||
tp.tphr_list[receiver] = sender
|
||||
-- Teleport timeout delay
|
||||
|
Loading…
Reference in New Issue
Block a user