WorldPos - continuity between worlds
WorldPos
About
This plugin simply saves your position whenever you leave a world, this allows the plugin to teleport you back to your previous position when you want to go back to that world. Without this plugin, you would be sent to the spawn (previous position not saved). Also, I promise to keep this plugin updated, whether that means a new Bukkit build or the official Minecraft API.
PLEASE READ MY COMMENT (FIRST PAGE) ON THE NEW VERSION (3.7) BEFORE UPGRADING.
Commands & Permissions
Command | Aliases | Description | Permission Node |
---|---|---|---|
/world [world name] | /worldwarp [world name] | Teleports you to a world and returns you to your last position in that world | WorldPos.world.{world name} OR WorldPos.world.{world name}.others (if a target player is given) |
/worldpos list | /wp list | Lists all loaded worlds on the server | WorldPos.list |
/worldpos back | /wp back | Takes you back to your last position before being teleported | WorldPos.back |
/worldpos | Displays plugin version | None |
All permissions
Title | Description | Permission Node |
---|---|---|
Hostname teleport | Allows access to specified hostname teleport | WorldPos.hostname.{hostname key} |
Portal teleport | Allows players to use a portal to enter specified world | WorldPos.portal.{world name} |
List worlds | Allows players to use /worldpos list | WorldPos.list |
Back | Allows players to use /worldpos back | WorldPos.back |
DOCUMENTATION!
Click on "pages" at the top of this website! Please check if your question is answered there BEFORE asking me directly.
Donations
All of the work I do for Bukkit is done out of my love of the community. I am not paid to do any of this work. Donations help me continue development of these projects and ultimately lead to a better product. I appreciate everyone that donates to me. You can do so by clicking here. Thank you.
Source Code & Jenkins
All source code can be found on my Github repository found here: WorldPos Github Repository Feel free to take code, fork, ect. Credits are appreciated.
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk. You can grab the latest developer builds here. Whenever I push a commit to Github (upstream) a new build will be created automatically. However I recommend you stick to builds posted on here on BukkitDev as they are usually more stable.
While upgrading to a newer version PLEASE backup the players folder inside of the WorldPos folder. I cannot be held responsible for any lost data during an upgrade. Please play it safe and backup.
CONVERTER (3.6 => 3.7)
Version 3.7 now supports (and only supports) UUID instead of player names. Upgrading without using the converter will cause players to lose their location data.
Instructions are provided in the .zip file, please read them.
Download: http://ge.tt/4BJuF5o1/v/0?c
Download and run at your own risk. This file and its contents have NOT been verified by Bukkit staff.
Please note, I tried uploading this file this BukkitDev project page to have it verified, but it was rejected due to not being a plugin.
Version 3.4.2 uploaded, waiting on approval from staff.
@WayGroovy You can download the build with debug messages here: http://mike724.com:8080/job/WorldPos/7/com.mike724.worldpos$WorldPos/ Sorry for the delay, I was sick yesterday and accidentally fell asleep super early.
@WayGroovy
I'll upload a new version later today that will show what the method getHostname is returning.
In testing with various combinations of srv records and a records, I'm at a loss at getting this to work. Plain A records work perfectly, no issues. Using a non standard port with a records, such as whiteworld.waygroovys.com works great. Throw in an SRV record to take care of the port and it goes to muck.
Is there a debug that shows what the getHostname is pulling? Or could there be?
@WayGroovy
I'm not 100% sure but here is what I know:
I use this method to get the hostname the user connected to the server with. Which I believe Bukkit gets from the handshake packet from the client which you can see here. So, theoretically, if I am correct, the plugin should be using exactly what the player entered.
Do you know if SRV records with a non standard port affect the FQDN reported to bukkit/minecraft?
http://redd.it/16cac2
http://redd.it/x6ysr
Version 3.4 is up, waiting on it's approval.
Build v3.3 is now marked as a release build (no longer beta). I encourage people to use build v3.3 as it is the latest stable release (for now). New in build 3.4:
@Mike724
Thank you!
@ryantheknight
That, is actually a wonderful idea. I'll work on getting this implemented asap.
Hello, I have a server that has a survival games world that I try to keep separate from the rest of the server. The survival games plugin has a built in command to teleport to the lobby, but not to get back, so I have been using this plugin as a way for people to get back to the regular world. People who are in the nether have been using this plugin as a shortcut to get back to the overworld. They teleport to the survival games world, where they have permission for this plugin, then teleport back to the regular world. Is there a command that can send them back to the previous world they were in, instead of letting them pick which world they teleport to?
@WayGroovy
Thanks, and I listed you as a tester because you helped make this plugin much better (not because I want to force you back into testing it).
Awesome update, Mike. I'm taking a couple of months with a single world, but I should be ramping back up to multiworld soon. Also, 1500+ downloads. nice.
Also thanks to larlin for pointing out an issue with the rounding code, his change was merged and is in v3.3.
v3.3 is up, waiting for approval. Sorry for the excessive delay.
Just started working on v3.3. Planned changes:
- Permissions for using portals
- Customizable messages maybe
- Plugin Metrics (mcstats.org)
- Rounding position (but not to nearest integer)
I can't really think of anything else to add. If you want something added, post here/message me.
Logo uploaded, yay for 1k downloads! :)
v3.2 is uploaded, waiting for approval. :)
I added a new page that explains the hostname teleport feature. Later today/tomorrow I'll have another build out, that won't be beta.
I'm thinking of making a new version of worldpos, besides bug fixes, is there any features you guys would like?