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:
parent
03bd19480e
commit
19ed0162e5
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user