The random teleportation coordinates are now dynamically calculated based on the player's current position, ensuring that the new coordinates will be within 1000 blocks of the player’s current X and Z coordinates. This avoids teleporting players too far away from their starting position.
Debugging Feature:
A debugging feature has been added for admins with the rtp.admin permission.
Using the /rtpdebug command, admins can toggle debugging on or off.
When enabled, detailed logs are sent to the admin for each teleport attempt, showing:
✅
Teleport Cancellation on Movement – Teleportation is canceled if they
walk away from their starting position.
✅
New Sounds & Feedback – Added sound effects for cooldown warnings and teleport cancelations
✅
Removed Skript-Reflect Dependency – No longer requires skript-reflect for determining the highest Y-coordinate. Now, it uses a native Skript method for better compatibility and performance.
✅
Added Action Bar Messages – All countdown and status messages now appear above the XP bar instead of the chat for a cleaner experience.
✅
Added Sound Effects – A sound now plays for each countdown tick, and a different sound plays upon successful teleportation for better feedback.
New Features & Improvements: ✅
Added Cooldown System – Players must wait
30 seconds before using /rtp again. A
colored warning message now appears if they try to use it early.
✅
Teleport Messages – Players receive a
title notification upon teleportation, showing their new
X, Y, Z coordinates.