[Mod] Teleport Request [git rolling release][tpr]
This mod is a response to the need I have seen on several Minetest servers.
It clones the popular tpa feature in the MineCraft Bukkit mod, Essentials.
Usage:
Type /tpr [playername] to request permission to teleport to a player.
The other player may now type /tpy to allow you to teleport to them, or /tpn to deny.
Type /tphr [playername] to request permission to teleport another player to you.
The other player may now type /tpy to allow you to teleport them to you, or /tpn to deny.
Download:
From CWz's repository: https://github.com/ChaosWormz/teleport-request/archive/master.zip
...or browse the code: https://github.com/ChaosWormz/teleport-request
Install: after downloading and/or extracting, rename the top-level directory to "tpr". Then either place it in your worldmods directory, or put it in your global mods directory and enable it like usual.
Changelog:
Versions beyond 1.0:
Just bugfixes and internal code improvements.
1.0:
Pretty sure this is bug free.
Added /tphr (only visible difference)
Cleaned up code again, variables are still confusing, but it works fine.
Last release unless bugs are found, or good suggestions are added.
0.2:
Fixed major bug
Changed accept command to /tpy
Added deny command /tpn
Added configurable timeout, default 30 seconds.
0.1a:
Base release.
License:
WTFPL
Upcoming:
Change accept/deny commands to /tpy and /tpn. Thanks jojoa -DONE
Fix assumed bug. - DONE
System to /tphr - DONE
Configurable teleport canceling after time - DONE
Credits:
PlitzAdam: for helping me with file.io and showing me an excellent lua tutorial
celeron55: I copied the find_free_place_near function until I write my own :3
jojoa1997: For making my code a bit more logical and helping me get past a syntax error.
It clones the popular tpa feature in the MineCraft Bukkit mod, Essentials.
Usage:
Type /tpr [playername] to request permission to teleport to a player.
The other player may now type /tpy to allow you to teleport to them, or /tpn to deny.
Type /tphr [playername] to request permission to teleport another player to you.
The other player may now type /tpy to allow you to teleport them to you, or /tpn to deny.
Download:
From CWz's repository: https://github.com/ChaosWormz/teleport-request/archive/master.zip
...or browse the code: https://github.com/ChaosWormz/teleport-request
Install: after downloading and/or extracting, rename the top-level directory to "tpr". Then either place it in your worldmods directory, or put it in your global mods directory and enable it like usual.
Changelog:
Versions beyond 1.0:
Just bugfixes and internal code improvements.
1.0:
Pretty sure this is bug free.
Added /tphr (only visible difference)
Cleaned up code again, variables are still confusing, but it works fine.
Last release unless bugs are found, or good suggestions are added.
0.2:
Fixed major bug
Changed accept command to /tpy
Added deny command /tpn
Added configurable timeout, default 30 seconds.
0.1a:
Base release.
License:
WTFPL
Upcoming:
Change accept/deny commands to /tpy and /tpn. Thanks jojoa -DONE
Fix assumed bug. - DONE
System to /tphr - DONE
Configurable teleport canceling after time - DONE
Credits:
PlitzAdam: for helping me with file.io and showing me an excellent lua tutorial
celeron55: I copied the find_free_place_near function until I write my own :3
jojoa1997: For making my code a bit more logical and helping me get past a syntax error.