Create a production-ready Minecraft Paper/Spigot 1.21+ plugin called OfflineTP.
Command
/tpoffline <player>
Functionality
When a player runs the command, save the sender’s current location.
The target player may be offline.
The next time the target joins, teleport them to the saved location instantly.
After teleporting once, automatically remove the queued teleport.
Requirements
Permission: offlinetp.use
Sender message: Teleport queued for <player>.
Join message: You have been teleported.
Store queued teleports in a YAML file that persists through restarts.
Use UUIDs, not player names.
Support multiple queued teleports.
Prevent errors if the world no longer exists.
Clean, optimized, commented Java code.
Include plugin.yml.
Fully functional and production-ready. op only please
23 views0 upvotes
The code of this project is kept private by its owner.
You can see its files on the left. Want something like it? Describe it to Codexe and try it on a free test server.