Mods / Bunny's JRTP - Just Random Teleport - /rtp command

Category: #QoL #Utility
Author: FunnyBunnyofDOOM
Side: Server
Created: Jun 27th 2021 at 4:11 AM
Last modified: Jul 13th at 7:50 PM
Downloads: 820
Follow Unfollow 4

This is a simple mod that adds the random teleport feature. This is server side only, but can be used for single player worlds.  

How to install:
drop the JRTP.zip file into the server's mod folder. 

Commands:

/jrtp - teleports the player to the ground within the configured radius

/jrtp help - displays all /jrtp commands available to the player group

/jrtp version - Displays the version information for JRTP

Admin Commands:

/jrtp cooldown number - Sets the cooldown timer in minutes

 

 

Update 2.0.5

-Reworked cooldown timer - fixed an issue where players could share a cooldown timer

-cooldown timer now configurable with /rtp cooldown number

     This does not have it's own permission code. Only admin can run this command.

-/rtp help and /rtp version added. 

Update 2.0.2

-Added config file for:

     -Radius

     -Cooldown

 

Update 2.0.1

-Fixed broken Cooldown timer

-Changed cooldown timer to seconds (config for this is in the works)

-Chunk loading priority

-Tells you seconds until you can use the command agaiin

 

Update 2.0.0

-The mod now waits for chunks to load before teleporting the player. Player should always be placed directly on a surface.

Pairs well with Bunny's Simple Spawn


Doomland Gaming Vintage Story Discord Server

If you like my mods, please support me and my community through paypal

Version For Game version Downloads Release date Changelog Download
v2.0.5 66 Jul 13th at 7:50 PM Show jrtp_v2.0.5.zip
v2.0.4 75 Jun 23rd at 12:39 PM Show jrtp_v2.0.4.zip
v2.0.3 70 Jun 20th at 9:51 PM Show jrtp_v2.0.3.zip
v2.0.2 61 Jun 19th at 9:41 PM Show jrtp_v2.0.2.zip
v2.0.1 60 Jun 19th at 6:53 PM Show jrtp_v2.0.1.zip
v2.0.0 71 Jun 17th at 11:26 PM Show jrtp_v2.0.0.zip
v1.0.5 93 May 23rd at 6:43 PM Show jrtp_v1.0.5.zip
v1.0.4 92 May 19th at 2:54 PM Show jrtp-1.0.4.zip
v1.0.3 232 Jun 27th 2021 at 4:15 AM Show jrtp-1.0.3.zip

10 Comments (oldest first | newest first)

💬 WickedSchnitzel, Jun 20th at 10:31 AM

Thank you for this. If i may also request a config entry to change the text getting displayed when using the tp and when trying to use it before the cooldown timer ran out, that would be awesome. Funnybunnyofdoom

💬 FunnyBunnyofDOOM, Jun 19th at 9:45 PM

RogueRaiden WickedSchnitzel I've added a config file for Radius and cool down timer. 

💬 FunnyBunnyofDOOM, Jun 17th at 10:49 PM

WickedSchnitzel I have updated the mod to check chunkloading and now teleports directly to floor. This should eliminate the mid-mountain issue.

💬 WickedSchnitzel, May 28th at 5:54 PM

I have added rtp to the permissions, i needed to do it for myself as an admin ("Code": "admin") as well. Without it, i wasn't able to use it, but my players could right from the start (even without me adding rtp to the permissions before).

💬 FunnyBunnyofDOOM, May 28th at 3:42 PM

WickedSchnitzel If the world height is 500 it should teleport you to about 1000. If the mountains are going higher than double sea level I may need to add 200 to the Height. I'll give it an increase with the next version, as I'm still unable to load the chunk before teleporting the player. 

Also regarding the permissions, it looks like I already have it assigned to "Suplayer". Normal admin should inherit all of the suplayer permissions. if it doesn't do this automatically, you may need to add "rtp" to the serverconfig file for your player group. To help me troubleshoot, could you please let me know what the exact string for you admin group is (even if it's the built-in one). I can also take a look at the permissions in the file to see if there's anything wrong there. I created a new server and can't recreate this problem so I'd like to understand what's going on and if it's effecting others.


The mod registers "rtp" as a permission as such:

ipm.RegisterPrivilege("rtp", "Random Teleport");
  ipm.AddPrivilegeToGroup("suplayer", BPrivilege.rtp);
💬 WickedSchnitzel, May 25th at 7:04 PM

Someone was spawning inside a mountain again, so that fix did not really work. But we have a world height of 500+

💬 FunnyBunnyofDOOM, May 23rd at 6:48 PM

RogueRaiden No, I will work on adding that with my next release.
Wandour Thank you! I'll continue trying to improve this and eventually make it spawn you directly on the ground. I went for low-hanging fruit just to get something usable on my server.

WickedSchnitzel
I will work on a config file for the next release.
You must add "rtp" to permissions in the server's config file in order to allow "suplayer" privilege to use rtp. I will look into how I can enable this on default for "suplayer" group. 
I just released a new version just now that should solve the spawning in mountain issue. It will now put the player 2 times higher than sea level. This should avoid any mountains. I'll keep looking into ways to place the player directly on the ground. 

💬 WickedSchnitzel, May 23rd at 4:14 PM

Could you please add a config where we can set the cooldown time or even max uses per player?
And i am getting "You dont have privilege to use this command" on my mp server (i am admin). But it is working in sp.

It is working for my players, but they also do spawn inside mountains and will die, if they cant remove the blocks around them (newbies do not have pickaxes) Funnybunnyofdoom

💬 Wandour, May 21st at 10:13 AM

Dude you a legend for this

this is so needed for multiplayer servers

💬 RogueRaiden, May 20th at 9:19 PM

Is the radius configurable?

(edit comment delete)