so i've had this problem where i wanted to set a location saver per world and basically if you go to another world your location will be saved if you switched worlds or you just disconnected from the server completely; i was trying to make a survival server where when you enter that survival world, your location will be saved.
turns out there was a plugin named "last location" and i used multiverse and it's plugin sequel multiverse portals and it worked. whenever i leave the world and enter it again, location was saved and i thought i made it work. however when i disconnected from the server completely, the location didn't remain saved on that survival world and i was teleported back to spawn. i noticed i didn't enabled it, so i did that after and i disconnected again to see if it works but still nothing. location saving failed again. i tried modifying the config.yml in the "last location" plugin files to see what's the problem and i found nothing. whenever a player is in the server the coordinates of a players last location was in the config.yml, however when a player disconnects or when a server stops/restarts, the coords reset to [x=0,y=64(or "y" level just depends on the world),z=0]
i came here to get some help so please if someone can help me solve this problem, i'm gonna be more than happy because i'm trying to make this work for 2 weeks and i fail everytime. thank you in advance to whoever helps.