1
0
mirror of https://github.com/PlayPro/CoreProtect.git synced 2025-02-13 01:12:03 +01:00

Fixed MySQL purges not being gracefully interrupted on shutdown

This commit is contained in:
Intelli 2022-01-04 19:19:08 -07:00
parent 03bd19480e
commit 19ed0162e5

View File

@ -329,6 +329,11 @@ public class PurgeCommand extends Consumer {
} }
} }
catch (Exception e) { catch (Exception e) {
if (!ConfigHandler.serverRunning) {
Chat.sendGlobalMessage(player, Phrase.build(Phrase.PURGE_FAILED));
return;
}
e.printStackTrace(); e.printStackTrace();
} }
} }