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.
@WayGroovy
Yeah a few times I thought it was ready to go out but then I'd remove the comment/edit something because I just don't feel it's fully ready. I might just remove the hostname/domain teleport for a stable release and keep it in a developer edition. The new stable edition would include everything that is in the changelog now besides hostname/domain teleport.
I've tried everything to redirect the spawn position, but nothing works. I have to have it set at a 1 tick delay or it gives an error in console.
Cool, thanks for the heads up. I was wondering. It had looked like it was ready to drop a couple of times in my inbox, but I'd come here and not see the update. Good luck to ya, and let me know if there are any bukkit tickets we should look at. I find it odd that you can't redirect the spawn position, but I keep thinking of things that can't be done in the current framework.
Still haven't released 3.0 due to work, and I don't think it's polished enough... There is a bug in bukkit where you cannot redirect the player's spawn position (I have to have it set on a 1 tick delay). Don't worry though, I'm still actively developing this. It will always stay updated.
@WayGroovy
That would be pretty damn cool, i'll do my best.
That could be an amazing addition. That's what I meant, yeah. With a good permissions setup you could have multiple 'servers' running off a single instance. With chat splitting from a chat manager, or the like... Hmm.
@WayGroovy You mean like have different subdomains for different worlds? For example, survival.mike724.com creative.mike724.com the first would spawn you in the survival world, second in creative world
If so, it seems to be completely possible. I'll look into that today/tomorrow. That could be a nice addition for worldpos v3 ;)
Have you seen sk89q's post: http://www.sk89q.com/2012/07/fixing-the-minecraft-session-stealer-exploit/
It seems that the server is aware of the address used to connect to a server.
Would it be possible to have subdomains that tell worldpos to initiate a command on login, such that you could have different subdomains for different worlds? Even possibly make those different worlds accessible via this subdomain and NOT via in game command?
@AS1LV3RN1NJA
Great! I'm glad it worked for you, if you have any other issues please post here (also if you send a PM I will most likely reply faster since I will get a notification) so I can fix them
@Mike724
Appears to work great, thanks :D
Edit: Tested pretty much everything, no problems. :)
Just pushed version 2, this time around we have a config.yml allowing you to choose between recording exact or rounded positions, and a new command "/worldwarp" it's the same as "/world" just a different command name (to help with command conflicts with other plugins).
The file is uploaded, just waiting on verification.
@AS1LV3RN1NJA
OK so that means it's not my plugin handling the request. I'll include a /worldwarp command in a new update I'm going to make (should be out tomorrow).
@Mike724
Nothing comes up in the chat, it just teleports me to the selected worlds spawn (not the last location).
@AS1LV3RN1NJA
Type /worldwarp [some world] into chat and post a screen shot of the output, I just want to ensure it is my plugin handling it and not another. If you continue to have issues I will probably just release another version that uses the /worldwarp command by default.
@Mike724
Ah, thanks. The commands now work, but the plugin doesn't. I am teleported to the new worlds spawn when I try to /worldwarp to a new world. I believe it is a plugin my end causing this though (although I use mutltiverse, as you mentioned). So I'll have a look around and see what could be causing it.
@AS1LV3RN1NJA
You only changed the alias right?
Make the plugin.yml look like this:
That way you can either use /word or /worldwarp to do the same thing
@Mike724
Hmm, I think I did it correctly (just changed it to /worldwarp in the config.yml) but when I tried ingame it just said "/worldwarp [world]"
@AS1LV3RN1NJA
You should be able to add an alias for /worldwarp in the plugin.yml (open WorldPos.jar in some zip archive manager)
Any chance you could change it to /worldwarp [world] or something? At the moment it clashes with the /world commands in bPermissions and i'm sure many others.
I'd love to use this plugin (or even better, have it integrated into Multiverse), it's exactly what I need.
Edit: FWIW, just found http://dev.bukkit.org/server-mods/excursion/ which does a similar job.
That took me a bit to figure out, but yeah, I like that.
@WayGroovy
The console command is easy.
For respawn I would probably just have "groups" setup in the config.yml, so for example:
and then the player would get the permission "WorldPos.ondeath.foo"
What do you think?