Add Node3
Dieser Commit ist enthalten in:
Ursprung
e777846c66
Commit
2fc19bc92d
@ -239,7 +239,8 @@ public class SubserverSystem {
|
|||||||
List<String> cmd = new ArrayList<>();
|
List<String> cmd = new ArrayList<>();
|
||||||
boolean jdk11 = serverJar.contains("1.15.2");
|
boolean jdk11 = serverJar.contains("1.15.2");
|
||||||
|
|
||||||
if(!steamwarStartAvailable() && lixfelStartAvailable()){
|
boolean notSteamwarStart = !steamwarStartAvailable();
|
||||||
|
if (notSteamwarStart && remoteStartAvailable("lx")) {
|
||||||
cmd.add("ssh");
|
cmd.add("ssh");
|
||||||
cmd.add("-L");
|
cmd.add("-L");
|
||||||
cmd.add(port + ":localhost:" + port);
|
cmd.add(port + ":localhost:" + port);
|
||||||
@ -247,6 +248,14 @@ public class SubserverSystem {
|
|||||||
cmd.add("cd");
|
cmd.add("cd");
|
||||||
cmd.add(directory.getPath());
|
cmd.add(directory.getPath());
|
||||||
cmd.add(";");
|
cmd.add(";");
|
||||||
|
} else if (notSteamwarStart && remoteStartAvailable("az")) {
|
||||||
|
cmd.add("ssh");
|
||||||
|
cmd.add("-L");
|
||||||
|
cmd.add(port + ":localhost:" + port);
|
||||||
|
cmd.add("az");
|
||||||
|
cmd.add("cd");
|
||||||
|
cmd.add(directory.getPath());
|
||||||
|
cmd.add(";");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(jdk11)
|
if(jdk11)
|
||||||
@ -278,8 +287,8 @@ public class SubserverSystem {
|
|||||||
return LoadEvaluation.getCPULoad() < 0.8 && LoadEvaluation.getRamPercentage() < 0.8;
|
return LoadEvaluation.getCPULoad() < 0.8 && LoadEvaluation.getRamPercentage() < 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean lixfelStartAvailable(){
|
private static boolean remoteStartAvailable(String remote) {
|
||||||
return LoadEvaluation.getRemoteCPULoad("lx") < 0.8 && LoadEvaluation.getRemoteRamPercentage("lx") < 0.8;
|
return LoadEvaluation.getRemoteCPULoad(remote) < 0.8 && LoadEvaluation.getRemoteRamPercentage(remote) < 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean bauRunning(ProxiedPlayer p, UUID owner){
|
private static boolean bauRunning(ProxiedPlayer p, UUID owner){
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren