Adaption to steamwar Systems
Dieser Commit ist enthalten in:
Ursprung
28aa1504f0
Commit
5a16e51b39
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,2 @@
|
||||
*.iml
|
||||
.idea
|
||||
target
|
@ -35,7 +35,7 @@ public class Arena implements Runnable{
|
||||
serverName = modus.name() + id;
|
||||
int port = 2500 + arenenNummer;
|
||||
ProcessBuilder pb = new ProcessBuilder(
|
||||
"/home/netuser/mc",
|
||||
"/home/minecraft/mc",
|
||||
"-a", modus.name(), serverName, Integer.toString(port));
|
||||
try{
|
||||
p = pb.start();
|
||||
@ -112,8 +112,8 @@ public class Arena implements Runnable{
|
||||
String line = "";
|
||||
|
||||
while (!started && (line = reader.readLine()) != null) {
|
||||
//started = line.contains(" INFO]: Done ("); Problematisch
|
||||
started = line.contains("INFO]: [AAC] AAC has been enabled.");
|
||||
started = line.contains(" INFO]: Done ("); //Problematisch
|
||||
//started = line.contains("INFO]: [AAC] AAC has been enabled.");
|
||||
}
|
||||
|
||||
if(line == null){
|
||||
@ -121,11 +121,11 @@ public class Arena implements Runnable{
|
||||
return;
|
||||
}
|
||||
|
||||
Thread.sleep(200);
|
||||
Thread.sleep(1000);
|
||||
|
||||
sendPlayer(cachedPlayers.get(0));
|
||||
|
||||
Thread.sleep(1000);
|
||||
Thread.sleep(200);
|
||||
|
||||
for(int i = 1; i < cachedPlayers.size(); i++){
|
||||
sendPlayer(cachedPlayers.get(i));
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren