Hey, i searched for a long time for a 1.19.2 datapack that could rtp players like the spigot plugins (such as BetterRTP) could do, but i could never find one. So i made one!!!
Features RTP - Random Teleport to anywhere within the worldborder or a predefined radius (default set to 10k) using the command `/trigger rtp`.
Cooldown - Preset to 30 minute (changeable in the datapack files) cooldown to prevent spam teleporting.
Messages - Simple messages to show you are teleporting / can not teleport.
Feel free to use this in your smp servers to allow players to rtp into the wild and get far away from spawn quickly!