Merge pull request #142 from mlus-asuka/backport-141-to-1.20.4

[Backport 1.20.4] Fixes #140
This commit is contained in:
mlus 2025-11-22 22:41:49 +08:00 committed by GitHub
commit 1daf4ac1f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -184,6 +184,11 @@ public class PlayerSync {
rsAdvCol.close();
// ----- END NEW BLOCK -----
try {
JDBCsetUp.executeUpdate("UPDATE player_data SET online=0 WHERE last_server=" + JdbcConfig.SERVER_ID.get() +" AND online=1 LIMIT 1000");
} catch (Exception e) {
LOGGER.error("An exception occurred while trying change wrong player-status\n" + e.getMessage());
}
LOGGER.info("PlayerSync is ready!");
}