Make areas optional

Not every server owner would like to install "areas" only to make this mod to work.
It will check for "areas" mod, and it's function should work correctly.
This commit is contained in:
Panquesito7 2019-07-11 20:38:32 -05:00 committed by GitHub
parent beed2ea017
commit e636503cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -53,10 +53,12 @@ Players can also teleport to coordinates, however, if the area is protected, the
``` /tpn ```
- **Description:** Deny a user's request to teleport to your teleport you to them (does not apply to those who have "tp_admin" privilege).
## Please Note:
## Notes:
Players with the 'tp_admin' privilege override all the required privileges above, except 'interact'.
## Dependencies
There are no dependencies.
However, optional dependencies are:
- [areas](https://github.com/minetest-mods/areas)
## License
@ -88,7 +90,7 @@ https://wiki.minetest.net/Installing_Mods
- 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).
- Create a better sound effect for teleport and apply it to all teleport methods (not just /tpc)
- Add a handful of coordinates which can be set in config and teleported to by anyone regardless of their protection status (eg., Spawn).
- Create a new function for the actual setpos() to remove all the redundant code each time the player is moved and the sound played.
- Create a new function for the actual set_pos() to remove all the redundant code each time the player is moved and the sound played.
- Rewrite to place all chat commands into one single command much like how /teleport works.
- Add a [different] sound effect at the source coords when a TP takes place (so other players hear it when to teleport away).
- Make evade respect land: no teleporting inside land, but instead make sure player is standing on surface or in water.