mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-04 14:31:34 +01:00
16e6ef1dc7
* ShutdownHook: No sessions to save check ShutdownHook now checks if it needs to save any sessions and does not start the database if no sessions are unsaved. * SessionCache.getActiveSessions() now immutable * [#769] Bukkit and Sponge server shutdown save Implemented following save procedure for Bukkit: - On plugin disable check if server is shutting down and save sessions - Shutdown hook triggered on JVM shutdown calls the same session save - Save clears sessions from cache, so the sessions are not saved twice Implemented following save procedure for Sponge: - Listen for GameStoppingServerEvent - On plugin disable ask listener if shutting down and save sessions - Shutdown hook triggered on JVM shutdown calls the same session save - Save clears sessions from cache, so the sessions are not saved twice Test: - Tests ShutdownSave on reload - Tests ShutdownSave on shutdown - Tests ShutdownSave on JVM shutdown |
||
---|---|---|
.. | ||
bukkit | ||
bungeecord | ||
common | ||
config/checkstyle | ||
gradle/wrapper | ||
plugin | ||
sponge | ||
velocity | ||
build.gradle | ||
checkstyle.xml | ||
Class Diagram.xml | ||
Database.jpg | ||
Database.xml | ||
gradlew | ||
gradlew.bat | ||
nbactions.xml | ||
PlanEnable.jpg | ||
settings.gradle |