1
0
forked from xjboss/KCauldronX

Support to restart server after update

This commit is contained in:
Prototik
2015-06-14 19:50:18 +07:00
parent 55d1d750ec
commit 44020ecc25
7 changed files with 56 additions and 30 deletions

View File

@ -152,6 +152,12 @@ public class KCauldronUpdater implements Runnable {
}
KCauldron.sNewServerLocation = newPath;
KCauldron.sNewServerVersion = mVersion;
if (MinecraftServer.kcauldronConfig.updatecheckerAutorestart.getValue()) {
if (mSender != null) {
mSender.sendMessage(ChatColor.DARK_RED + "Initiate server restart");
}
KCauldron.restart();
}
} catch (Exception e) {
if (!quite) {
e.printStackTrace();