Please remember to backup and regenerate your config.yml and messages.yml to access all the new features and comments.
[+] Additions / New Features
- Folia Support: JustRTP is now fully compatible with Folia servers! The plugin will automatically detect if you are running Folia and use its region-based scheduler for all tasks. This ensures optimal performance and stability without compromising server TPS.
- Cross-Server Teleportation (BungeeCord & Velocity):
- You can now teleport players to a random location on a different server within your network!
- Simply use /rtp <player> <server>.
- Enable this feature and list your server names in the new proxy section of the config.yml.
- New Command Permission:
- justrtp.command.rtp.server: Grants permission to specify a server name in the RTP command.
- New Sleek Startup Message: The plugin now features a new, stylish startup message in the console, providing a quick overview of the status of its hooks (Proxy, PlaceholderAPI, WorldGuard).
- Detailed Configuration Comments: Both config.yml and messages.yml have been fully commented in English to clearly explain every option and what it does.
[/] Changes & Improvements
- Command Parser Overhaul: The /rtp command is now significantly smarter. Arguments for [player], [world], and [server] can be provided in any order, making the command more flexible and intuitive for both players and console.
- Asynchronous Task Handling: The core logic for finding a safe location has been completely rewritten to be fully asynchronous and thread-safe, fixing the UnsupportedOperationException crash on Folia servers. This also improves performance on standard Paper/Spigot servers.
- Scheduler Abstraction: Implemented a new internal task system that seamlessly handles both the standard Bukkit scheduler and Folia's new scheduler, ensuring code stability and future compatibility.
- API & Dependencies Updated: The plugin is now built against the latest Paper API (1.20.6) and includes updated dependencies for BungeeCord and Velocity.