(Java) Player should be teleported to last position?

Ba
- in Worlds
7

So, Player xy is completely different from the Spawn point and leaves the Sever because Mommy mistakenly mistook the calculator for a banana, I do not know.

Now player xy wants to go back to the server, but he wonders why he's suddenly back at WorldSpawn, but he wants to go back to where he was the last time.

I hope you understand what I mean😹

[Minecraft] xD

En

Is like WoW. If the Char dies, spawn at the next Spirit Healer. The Ruhestein brings you to the inn, which you last set on it.

But as the program technically looks, I do not know it is feasible in any case

Sw

Clarify me but is not that by default so that you spawn where you left the server?

Ru

You have to retrieve all xy values from the players all the time (or in a time interval) and perform a setspawn (or as MC calls it again).

Since you do not know when Mom pulls the plug, a routine does not help. It supports the Minecraft "zombies" so that a data package remains, if the player leaves the server and one then collects and processes these packages. So is in Linux in process handling

Ba

Suh, oh god, I do not know any more about half a year no Mc played😹

Sw

But apart from that, one would have to listen to player leave events (I think there's some kind of event when a player quits), save the current coordinates of the player, and then, when that player rejoins, just teleport the player to the stored coordinates. I've never programmed a mc plugin myself, but I think it would solve that (if it were necessary)

Ba

Yeah almost. Just that it's "onQuit" would mean xD I also know that you have to specify this in "onJoin"
I just can't try that long and so much because I do not have the new laptop yet (Asus Aspire 5).

Sw

Jo exactly and then you just save the coordinates or teleport the player to the previously stored coordinates (:

I can't tell you exactly but it would be a relatively easy task. Could you solve synonymous with commandblocks but there I'm not synonymous inside