teleport-request/README.md

125 lines
6.6 KiB
Markdown
Raw Normal View History

2019-07-09 03:47:14 +02:00
# Teleport Request
2019-08-08 00:42:50 +02:00
A mod that allows players to send a teleport request.
**(See "How to use" below for more information.)**
2019-07-09 03:47:14 +02:00
## Privileges:
Each command needs a privilege. These are the following privileges:
- **tp** is requiered in order to use all commands.
2019-08-01 04:51:53 +02:00
- **tp_tpc** is requiered in order to use `/tpc`
- **tp_tpc** is requiered in order to use `/tpe`
- **tp_tpc** is requiered in order to use `/tpj`
2019-07-12 20:28:32 +02:00
- **interact** is also requiered to use all commands.
2019-08-01 04:51:53 +02:00
**tp_admin** overrides everything: e.g. you can teleport to players even when they haven't decided to accept, or not. You can also teleport him/her to you (this happens only when `enable_immediate_teleport` is enabled on `config.lua`).
2019-07-09 03:47:14 +02:00
Players can also teleport to coordinates, however, if the area is protected, the teleport will be denied.
2016-05-13 14:38:19 +02:00
2019-07-12 20:28:32 +02:00
## How to use:
Each command does a function. "**Example Usage**" is an example of how to use the command.
Note there must be 2 players in order to make the commands to work: a player must send a request to another player (**see https://wiki.minetest.net/Server or see https://wiki.minetest.net/Setting_up_a_server for more information**).
These are the following commands available in-game:
2016-05-10 15:53:18 +02:00
2016-05-10 15:58:13 +02:00
``` /tpr [playername] ```
2016-05-19 14:28:17 +02:00
- **Name:** Teleport Request
2016-05-18 17:51:16 +02:00
- **Description:** Requests permission to teleport to another player, where [playername] is their exact name.
2019-08-01 04:51:53 +02:00
- **Required Privileges:** `interact, tp`
2016-05-18 17:51:16 +02:00
- **Example Usage:** */tpr RobbieF* - requests permission from RobbieF to teleport to them.
2019-08-08 00:42:50 +02:00
- **Notes:** Usernames are case-sensitive. If you have "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 15:53:18 +02:00
2016-05-10 15:58:13 +02:00
``` /tphr [playername] ```
2016-05-19 14:28:17 +02:00
- **Name:** Teleport Here Request
2016-05-18 17:51:16 +02:00
- **Description:** Request permission to teleport another player to you.
2019-08-01 04:51:53 +02:00
- **Required Privileges:** `interact, tp`
2016-05-18 17:51:16 +02:00
- **Example Usage:** /tphr RobbieF - requests RobbieF to teleport to you.
2019-08-08 00:42:50 +02:00
- **Notes:** Usernames are case-sensitive. If you have "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 15:53:18 +02:00
``` /tpc [x,y,z] ```
2016-05-19 14:28:17 +02:00
- **Name:** Teleport to Coordinates
2016-05-18 17:51:16 +02:00
- **Description:** Teleport to coordinates.
2019-08-01 04:51:53 +02:00
- **Required Privileges:** `interact, tp_tpc, tp`
2019-08-08 00:42:50 +02: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 "areas" privilege in order to teleport to those coordinates (this works only when [areas](https://github.com/minetest-mods/areas) is installed).
2016-05-18 17:42:47 +02:00
``` /tpj [axis] [distance] ```
2016-05-19 14:28:17 +02:00
- **Name:** Teleport Jump
- **Description:** Teleport a specified distance along a single specified axis.
2019-08-01 04:51:53 +02:00
- **Required Privilege:** `interact", tp, tp_tpc`
2016-05-18 17:51:16 +02:00
- **Available Options for *axis*:** x, y, z
- **Example Usage:** '/tpj y 10' - teleport 10 nodes into the air.
2016-05-19 14:28:17 +02:00
``` /tpe ```
- **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.
2019-08-01 04:51:53 +02:00
- **Required Privileges:** `interact, tp_tpc, tp`
2016-05-19 14:28:17 +02:00
- **Example Usage:** '/tpe' - teleports you to a random number of random coordinates in an evasive pattern.
2016-05-10 15:58:13 +02:00
``` /tpy ```
2019-07-12 20:28:32 +02:00
- **Description:** Accept a user's request to teleport to you or teleport you to them.
2016-05-10 15:53:18 +02:00
2016-05-10 15:58:13 +02:00
``` /tpn ```
2019-07-12 18:09:08 +02:00
- **Description:** Deny a user's request to teleport to you or teleport you to them.
2016-05-18 17:42:47 +02:00
2019-07-09 03:47:14 +02:00
## Dependencies
There are no dependencies.
However, optional dependencies are:
2019-07-09 03:47:14 +02:00
- [areas](https://github.com/minetest-mods/areas)
- [intllib](https://github.com/minetest-mods/intllib)
- [beerchat](https://github.com/pandorabox-io/beerchat)
- [chat2](https://github.com/minetest-mods/chat2)
2019-07-09 03:47:14 +02:00
2019-07-22 06:29:17 +02:00
## Requirements
This mod requieres MT/MTG 5.0.0+ to run.
Older versions not supported.
## Bugfixes & suggestions
Report bugs or suggest ideas by [creating an issue](https://github.com/ChaosWormz/teleport-request/issues/new).
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-09 03:47:14 +02:00
## License
2019-08-01 04:51:53 +02:00
[LGPL-2.1](https://github.com/ChaosWormz/teleport-request/blob/master/LICENSE.md) for everything.
2019-07-09 03:47:14 +02:00
## Contributors:
2016-05-17 16:49:11 +02:00
- [RobbieF](https://minetest.tv) | [GitHub](https://github.com/Cat5TV)
- [DonBatman](https://github.com/donbatman)
2019-07-26 01:32:13 +02:00
- [NathanS21](http://nathansalapat.com/) | [GitHub](https://github.com/NathanSalapat)
2016-05-17 20:01:19 +02:00
- [ChaosWormz](https://github.com/ChaosWormz)
2019-07-22 06:29:17 +02:00
- [Panquesito7](https://github.com/Panquesito7)
- [coil0](https://github.com/coil0)
2019-07-09 03:47:14 +02:00
- Traxie21, the original creator of this mod (however, he/she does not have a GitHub account anymore).
2019-07-22 06:29:17 +02:00
All those who contributed to the original mod (please see `init.lua`).
2019-07-09 03:47:14 +02:00
2019-08-08 02:51:36 +02:00
## Configuring the mod
Open your `minetest.conf` located in your Minetest directory.
Set the values of the settings you'd like to.
Available options are:
```
tp.timeout_delay = 60
tp.enable_immediate_teleport = true
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`.
2019-07-09 03:47:14 +02:00
## Installation
2019-07-25 23:11:28 +02:00
- Unzip the archive, rename the folder to tpr and
2019-07-09 03:47:14 +02:00
place it in ..minetest/mods/
- 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
the folder in ..worldmods/ in your world directory.
For further information or help, see:
https://wiki.minetest.net/Installing_Mods
2019-07-09 03:47:14 +02:00
## TODO:
- Make it so if a player attempts to teleport to coordinates within a protected area owned by another player, and that player is online, the owner receives a request to allow or deny the user from teleporting to their area.
- 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 14:46:44 +02: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-13 16:04:16 +02:00
- Create a better sound effect for teleport and apply it to all teleport methods (not just /tpc)
2016-05-18 13:28:24 +02:00
- Rewrite to place all chat commands into one single command much like how /teleport works.
2016-05-19 00:55:05 +02:00
- Make evade respect land: no teleporting inside land, but instead make sure player is standing on surface or in water.
2019-08-08 00:42:50 +02:00
If you think something else should be added to this list, [submit an issue](https://github.com/ChaosWormz/teleport-request/issues/new).