Added BE-specific server list

This commit is contained in:
Anuken 2019-12-28 16:34:35 -05:00
parent 16ddb91466
commit 179bf4d525
4 changed files with 7 additions and 3 deletions

View file

@ -117,6 +117,7 @@ public class BeControl{
Log.info("&lcAuto-downloading next version...");
try{
//download new file from github
Fi source = Fi.get(BeControl.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath());
Fi dest = source.sibling("server-be-" + updateBuild + ".jar");
@ -126,6 +127,7 @@ public class BeControl{
() -> false,
() -> {
Log.info("&lcVersion downloaded, exiting. Note that if you are not using the run-server script, the server will not restart automatically.");
//replace old file with new
dest.copyTo(source);
dest.delete();
System.exit(2); //this will cause a restart if using the script
@ -136,7 +138,6 @@ public class BeControl{
}
}
checkUpdates = false;
//todo server updates
}
}