pmdevita/StayPut

Stayput does not send to last location in certain worlds

Closed this issue · 6 comments

Hi! The plugin works great in all worlds except for one, called survival. The debug message is this:
[15:22:47] [Server thread/INFO]: [StayPut] Villmarksjenta: lobby --> SURVIVAL
[15:22:47] [Server thread/INFO]: [StayPut] Not redirecting teleport because the destination appears to be specific location in the world
[15:22:47] [Server thread/INFO]: [StayPut] Location{world=null,x=17.5,y=67.0,z=176.5,pitch=0.0,yaw=0.0} != Location{world=null,x=16.0,y=67.0,z=176.0,pitch=0.0,yaw=0.0}
[15:22:48] [Server thread/INFO]: [StayPut] onPlayerTeleportEvent UNKNOWN
[15:22:48] [Server thread/INFO]: [StayPut] Not saving location because player did not jump worlds
[15:22:48] [Server thread/INFO]: [StayPut] Villmarksjenta: SURVIVAL --> SURVIVAL
[15:22:48] [Server thread/INFO]: [StayPut] Not redirecting teleport because player did not jump worlds

What is the issue here? Or is it a bug?

How did you set the spawn in your SURVIVAL world? Or are you just using the default?

I think its the default one. /mvtp survival.

Can you set your spawn in SURVIVAL using the multiverse command? Does it work after that?

had the same issue, ran the MV set spawn command and it works. wanted to get some closure back to you. this occurred when i deleted my main survival world to reset the seed, and kept the other MV world, a creative world

Ah OK, I had a feeling that might fix it. I was hoping multiverse would default to reporting the location of the world spawn from vanilla, that looks like it may not be the case.

It detects that you are teleporting to a world without teleporting to a specific location in the world by checking your destination coordinates and checking them against the world spawn. This has proven to have some unexpected compatibility issues so I'll probably add extra configuration options to help users fix this.

I know it's been about a year, but if you can remember, what command/plugin did you use to initiate this teleport?