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) {
if (!ConfigHandler.serverRunning) {
Chat.sendGlobalMessage(player, Phrase.build(Phrase.PURGE_FAILED));
return;
}
e.printStackTrace();
}
}