Fix server shutdown not setting logout location (#4318)

This commit is contained in:
triagonal 2021-07-06 05:47:42 +10:00 committed by GitHub
parent 6535edf4e0
commit 8c8c85d753
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -513,7 +513,7 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials {
user.sendMessage(tl("unvanishedReload")); user.sendMessage(tl("unvanishedReload"));
} }
if (stopping) { if (stopping) {
user.setLastLocation(); user.setLogoutLocation();
if (!user.isHidden()) { if (!user.isHidden()) {
user.setLastLogout(System.currentTimeMillis()); user.setLastLogout(System.currentTimeMillis());
} }