2019-07-08 20:47:14 -05:00
# Teleport Request
2020-01-16 14:10:15 -06:00
2020-09-22 13:18:43 -05:00
[![Build status ](https://github.com/ChaosWormz/teleport-request/workflows/build/badge.svg )](https://github.com/ChaosWormz/teleport-request/actions)
2020-01-16 14:10:15 -06:00
[![License ](https://img.shields.io/badge/license-LGPLv2.1%2B-blue.svg )](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html)
2019-11-30 22:15:49 -06:00
Allows players to request from another player to be teleported to them.
2016-05-11 10:31:45 -04:00
2019-11-22 12:56:08 -06:00
## Privileges
2020-09-22 13:18:43 -05:00
2019-07-08 20:47:14 -05:00
Each command needs a privilege. These are the following privileges:
2020-09-22 13:18:43 -05:00
2019-11-30 22:15:49 -06:00
- `tp` is required in order to use all commands.
- `tp_tpc` is required in order to use `/tpc` .
- `tp_tpc` is required in order to use `/tpe` .
- `tp_tpc` is required in order to use `/tpj` .
- `interact` is required to use all commands.
2020-09-22 13:18:43 -05:00
- `tp_admin` gives more control to admins:
- Admins can teleport to players even when they haven't decided to accept, or not.
- Admins can teleport players to him/her, if the `enable_immediate_teleport` setting is enabled.
- Admins can teleport to protected coordinates.
2019-11-30 22:15:49 -06:00
2019-07-08 20:47:14 -05:00
Players can also teleport to coordinates, however, if the area is protected, the teleport will be denied.
2016-05-13 08:38:19 -04:00
2019-11-22 12:56:08 -06:00
## How to use
2020-09-22 13:18:43 -05:00
Each command does a function. "**Example usage**" is an example of how to use the command.\
2019-11-30 22:15:49 -06:00
Note there must be 2 players in order to make the commands to work: a player must send a request to another player.
2020-09-22 13:18:43 -05:00
There are two ways of sending a request:
1. A request which teleports you to the specified player (command `/tpr <player>` ).\
2. A request which teleports the specified player to you (command `/tphr <player>` ).
2019-08-07 22:56:30 -05:00
2020-09-22 13:18:43 -05:00
To accept a request some sent you, you must use `/tpy` .\
2019-07-12 13:28:32 -05:00
These are the following commands available in-game:
2016-05-10 09:53:18 -04:00
2016-05-10 09:58:13 -04:00
``` /tpr [playername] ` ``
2020-09-22 13:18:43 -05:00
2016-05-19 08:28:17 -04:00
- **Name:** Teleport Request
2016-05-18 11:51:16 -04:00
- **Description:** Requests permission to teleport to another player, where [playername] is their exact name.
2020-01-01 21:23:26 -06:00
- **Required privileges:** `interact, tp`
- **Example usage:** `/tpr RobbieF` requests permission from RobbieF to teleport to them.
2019-11-22 12:56:08 -06:00
- **Notes:** Usernames are case-sensitive. If you have the `tp_admin` privilege, you will immediately teleport to the specificed player (does not apply if `enable_immediate_teleport` setting is disabled, enabled by default).
2016-05-10 09:53:18 -04:00
2016-05-10 09:58:13 -04:00
``` /tphr [playername] ` ``
2020-09-22 13:18:43 -05:00
2016-05-19 08:28:17 -04:00
- **Name:** Teleport Here Request
2016-05-18 11:51:16 -04:00
- **Description:** Request permission to teleport another player to you.
2020-01-01 21:23:26 -06:00
- **Required privileges:** `interact, tp`
- **Example usage:** `/tphr RobbieF` requests RobbieF to teleport to you.
2019-11-22 12:56:08 -06:00
- **Notes:** Usernames are case-sensitive. If you have the `tp_admin` privilege, RobbieF will teleport to you immediately (does not apply if `enable_immediate_teleport` setting is disabled, enabled by default).
2016-05-10 09:53:18 -04:00
2016-05-11 08:53:56 -04:00
``` /tpc [x,y,z] ` ``
2020-09-22 13:18:43 -05:00
2016-05-19 08:28:17 -04:00
- **Name:** Teleport to Coordinates
2016-05-18 11:51:16 -04:00
- **Description:** Teleport to coordinates.
2020-01-01 21:23:26 -06:00
- **Required privileges:** `interact, tp_tpc, tp`
2019-11-22 12:56:08 -06:00
- **Notes:** Honors area protection. If the area is protected, it must be owned by you in order to teleport to it, or you must have the `areas` privilege in order to teleport to those coordinates.
2016-05-18 11:42:47 -04:00
``` /tpj [axis] [distance] ` ``
2020-09-22 13:18:43 -05:00
2016-05-19 08:28:17 -04:00
- **Name:** Teleport Jump
- **Description:** Teleport a specified distance along a single specified axis.
2020-01-01 21:23:26 -06:00
- **Required privilege:** `interact", tp, tp_tpc`
- **Available options for *axis* :** x, y, z
- **Example usage:** `/tpj y 10` teleport 10 nodes into the air.
2016-05-11 08:53:56 -04:00
2016-05-19 08:28:17 -04:00
``` /tpe ` ``
2020-09-22 13:18:43 -05:00
2016-05-19 08:28:17 -04:00
- **Name:** Teleport Evade
- **Description:** In a sticky situation? Evade your enemy by teleporting to several nearby coordinates in random pattern. There's no knowing where you'll end up.
2020-01-01 21:23:26 -06:00
- **Required privileges:** `interact, tp_tpc, tp`
- **Example usage:** `/tpe` teleports you to a random number of random coordinates in an evasive pattern.
2016-05-19 08:28:17 -04:00
2016-05-10 09:58:13 -04:00
``` /tpy ` ``
2020-09-22 13:18:43 -05:00
2019-07-12 13:28:32 -05:00
- **Description:** Accept a user's request to teleport to you or teleport you to them.
2020-01-01 21:23:26 -06:00
- **Required privileges:** `interact, tp`
2016-05-10 09:53:18 -04:00
2016-05-10 09:58:13 -04:00
``` /tpn ` ``
2020-09-22 13:18:43 -05:00
2019-07-12 11:09:08 -05:00
- **Description:** Deny a user's request to teleport to you or teleport you to them.
2020-01-01 21:23:26 -06:00
- **Required privileges:** `interact, tp`
2016-05-18 11:42:47 -04:00
2019-11-30 22:15:49 -06:00
## Optional dependencies
2020-09-22 13:18:43 -05:00
2019-07-08 20:47:14 -05:00
- [areas ](https://github.com/minetest-mods/areas )
2020-01-01 21:23:26 -06:00
- [beerchat ](https://github.com/minetest-beerchat/beerchat )
2019-08-06 22:19:30 -05:00
- [chat2 ](https://github.com/minetest-mods/chat2 )
2019-11-22 13:50:10 -06:00
- [gamehub ](https://github.com/shivajiva101/minetest-gamehub )
2019-07-08 20:47:14 -05:00
2019-07-21 23:29:17 -05:00
## Requirements
2020-09-22 13:18:43 -05:00
This mod requires MT 5.0.0+ to run.\
2019-07-21 23:29:17 -05:00
Older versions not supported.
2019-11-30 22:15:49 -06:00
## Issues, suggestions, features & bugfixes
2020-09-22 13:18:43 -05:00
Report bugs or suggest ideas by [creating an issue ](https://github.com/ChaosWormz/teleport-request/issues/new ).\
2019-07-21 23:29:17 -05:00
If you know how to fix an issue, or want something to be added, consider opening a [pull request ](https://github.com/ChaosWormz/teleport-request/compare ).
2019-07-08 20:47:14 -05:00
## License
2020-09-22 13:18:43 -05:00
2021-01-12 14:24:17 -06:00
Copyright (C) 2014-2021 ChaosWormz and contributors.
2020-01-21 15:31:11 -06:00
2020-09-22 13:18:43 -05:00
Teleport Request code is licensed under LGPLv2.1+, see [`LICENSE.md` ](LICENSE.md ).\
2020-01-21 15:31:11 -06:00
[`tpr_warp.ogg` ](sounds/tpr_warp.ogg ) is licensed under [CC BY-SA 4.0 International ](https://creativecommons.org/licenses/by-sa/4.0/ ).
2019-11-22 12:56:08 -06:00
## Contributors
2020-09-22 13:18:43 -05:00
2019-11-22 12:56:08 -06:00
List of contributors (in no particular order):
2019-07-08 20:47:14 -05:00
2016-05-17 10:49:11 -04:00
- [RobbieF ](https://minetest.tv ) | [GitHub ](https://github.com/Cat5TV )
2016-05-13 08:50:21 -04:00
- [DonBatman ](https://github.com/donbatman )
2019-07-25 18:32:13 -05:00
- [NathanS21 ](http://nathansalapat.com/ ) | [GitHub ](https://github.com/NathanSalapat )
2016-05-17 14:01:19 -04:00
- [ChaosWormz ](https://github.com/ChaosWormz )
2019-07-21 23:29:17 -05:00
- [Panquesito7 ](https://github.com/Panquesito7 )
2019-07-25 13:25:26 -05:00
- [coil0 ](https://github.com/coil0 )
2019-08-07 22:56:30 -05:00
- [Zeno- ](https://github.com/Zeno- )
- [indriApollo ](https://github.com/indriApollo )
- [Billy-S ](https://github.com/Billy-S )
2019-07-08 20:47:14 -05:00
- Traxie21, the original creator of this mod (however, he/she does not have a GitHub account anymore).
2019-07-21 23:29:17 -05:00
2019-08-07 19:51:36 -05:00
## Configuring the mod
2020-09-22 13:18:43 -05:00
Open your `minetest.conf` located in your Minetest directory.\
2019-08-07 19:51:36 -05:00
Set the values of the settings you'd like to.
Available options are:
2020-09-22 13:18:43 -05:00
```conf
2019-08-07 19:51:36 -05:00
tp.timeout_delay = 60
tp.enable_immediate_teleport = true
tp_enable_tpp_command = false
```
2020-09-22 13:18:43 -05:00
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.\
2019-08-17 01:48:02 -05:00
Or another way to do it, is changing the values in `settingtypes.txt` .
2019-08-07 19:51:36 -05:00
2019-07-08 20:47:14 -05:00
## Installation
2020-09-22 13:18:43 -05:00
2019-11-22 12:56:08 -06:00
- Unzip the archive, rename the folder to `tpr` and
2019-11-30 22:15:49 -06:00
place it in .. minetest/mods/
2019-07-08 20:47:14 -05:00
- GNU/Linux: If you use a system-wide installation place
it in ~/.minetest/mods/.
- If you only want this to be used in a single world, place
2019-11-30 22:15:49 -06:00
the folder in .. worldmods/ in your world directory.
2019-07-08 20:47:14 -05:00
2020-09-22 13:18:43 -05:00
For further information or help, see:\
< https: / / wiki . minetest . net / Installing_Mods >
2016-05-13 08:50:21 -04:00
2019-11-22 12:56:08 -06:00
## TODO
2020-09-22 13:18:43 -05:00
2019-07-16 18:12:14 -05:00
- Add limitations to /tpc which only allow a user to teleport X number of blocks. Prevents users from teleporting to the edge of the world.
2016-05-13 08:46:44 -04:00
- Assess value in changing all tpr-based chat commands to one global command such as /tp to reduce the chance of confusion between tps_admin and the original mod (and also make it so people don't have to remember so many commands).
2016-05-18 07:28:24 -04:00
- Rewrite to place all chat commands into one single command much like how /teleport works.
2016-05-18 18:55:05 -04:00
- Make evade respect land: no teleporting inside land, but instead make sure player is standing on surface or in water.
2019-08-07 17:42:50 -05:00
2020-09-22 13:18:43 -05:00
If you think something else should be added to this list, [submit an issue ](https://github.com/ChaosWormz/teleport-request/issues/new ).