Merge pull request #6 from Cat5TV/master

Merging Cat5TV branch
This commit is contained in:
ChaosWormz 2016-05-27 19:45:36 +03:00
commit c875d7ed0b
2 changed files with 13 additions and 1 deletions

@ -13,28 +13,38 @@ Players may also teleport to coordinates, however if the area is protected, the
##Usage: ##Usage:
``` /tpr [playername] ``` ``` /tpr [playername] ```
- **Name:** Teleport Request
- **Description:** Requests permission to teleport to another player, where [playername] is their exact name. - **Description:** Requests permission to teleport to another player, where [playername] is their exact name.
- **Required Privilege:** interact - **Required Privilege:** interact
- **Example Usage:** */tpr RobbieF* - requests permission from RobbieF to teleport to them. - **Example Usage:** */tpr RobbieF* - requests permission from RobbieF to teleport to them.
- **Notes:** Usernames are case-sensitive. - **Notes:** Usernames are case-sensitive.
``` /tphr [playername] ``` ``` /tphr [playername] ```
- **Name:** Teleport Here Request
- **Description:** Request permission to teleport another player to you. - **Description:** Request permission to teleport another player to you.
- **Required Privilege:** interact - **Required Privilege:** interact
- **Example Usage:** /tphr RobbieF - requests RobbieF to teleport to you. - **Example Usage:** /tphr RobbieF - requests RobbieF to teleport to you.
- **Notes:** Usernames are case-sensitive. - **Notes:** Usernames are case-sensitive.
``` /tpc [x,y,z] ``` ``` /tpc [x,y,z] ```
- **Name:** Teleport to Coordinates
- **Description:** Teleport to coordinates. - **Description:** Teleport to coordinates.
- **Required Privilege:** interact, tp_tpc - **Required Privilege:** interact, tp_tpc
- **Notes:** Honors area protection: if the area is protected, it must be owned by you in order to teleport to it. - **Notes:** Honors area protection: if the area is protected, it must be owned by you in order to teleport to it.
``` /tpj [axis] [distance] ``` ``` /tpj [axis] [distance] ```
- **Description:** Teleport a specified distance along a single specified axis. Useful for fast evading. - **Name:** Teleport Jump
- **Description:** Teleport a specified distance along a single specified axis.
- **Required Privilege:** interact - **Required Privilege:** interact
- **Available Options for *axis*:** x, y, z - **Available Options for *axis*:** x, y, z
- **Example Usage:** '/tpj y 10' - teleport 10 nodes into the air. - **Example Usage:** '/tpj y 10' - teleport 10 nodes into the air.
``` /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.
- **Required Privilege:** interact
- **Example Usage:** '/tpe' - teleports you to a random number of random coordinates in an evasive pattern.
``` /tpy ``` ``` /tpy ```
- **Description:** Accept a user's request to teleport to you or teleport you to them. - **Description:** Accept a user's request to teleport to you or teleport you to them.

@ -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
}) })