lenis0012 / LoginSecurity

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

[BUG] Teleport configuration. #285

Open Arcvalx opened 1 year ago

Arcvalx commented 1 year ago

In vanilla (a server without plugins, just LoginSecurity). When you enable "teleport to SPAWN or RANDOM location" option, it enter in conflict with login command, because the session time does not expire (it don't cares if is -1 or 1, or 60, etc.. in config). I can disconnect on my house coords, and reconnect in 1 or 2 seconds to the server and the plugin teleport me to the spawn (ok, works correctly until this point), BUT It doesn't ask me to login (because of session time). This causes me to stay in that location and does not return me to where I originally was. If i disconnect from the server, the plugin forget the location of my house. And set it to a new disconnect location.

If i wait to the expire of my session, the plugin works fine, but it only works if i put 1 second on the config, if i put -1 to disable it, it will the same (I need wait to session time expire that not exists).

The following video explains better what i mean.

https://youtu.be/DVDVDTpl6SM

lenis0012 commented 1 year ago

I see what you mean... I will look in to the issue