lenis0012 / LoginSecurity

Lightweight and secure user authentication for Bukkit Minecraft servers
https://www.spigotmc.org/resources/loginsecurity.19362/
Apache License 2.0
100 stars 85 forks source link

Reset #303

Open Miner16 opened 1 year ago

Miner16 commented 1 year ago

So the plugin saves places when the player logs out, but my server recently reset and I want all the players to start in the world spawn. Is there any way to accomplish that without deleting the database files? I don't want to do that because then it would create a window for cracked players to 'claim' accounts with passwords only they know.

lenis0012 commented 1 year ago

Sorry for being late to this question. There is no way to do this currently other than setting the locationMode back to DEFAULT in the config. This will stop player locations from being hidden though, so this is only a slightly better solution than deleting the whole database.

I will consider adding something in the code to detect when a world has been reset. Maybe I could use the world UUID instead of the world name which would allow the plugin to detect when the entire world was deleted.