Event for world switching

I’ve been looking through events and the forums to find a way to check a player has switched worlds, however, I haven’t been able to find anything.

The only thing I’ve been able to find (which I’m not even sure is correct) is org.spongepowered.api.event.entity.SpawnEntityEvent, which not only returns a single entity, it’s most likely also called whenever a player joins the server.

What would the correct way of doing this be? Thanks.

DisplaceEntityEvent.Teleport is what you’d want to listen to. However, it’s not yet implemented.

Alright thanks, do you have any ETA on when it’ll be implemented? Or is it Soon™

I was actually looking into this recently, I’m curious if this event will fire when running player.setLocation(), and what not, or will I have to fire this event myself.