From 5a16e51b39c9622252da51d2b256b5b46299869b Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 28 May 2019 16:29:58 +0200 Subject: [PATCH] Adaption to steamwar Systems --- .gitignore | 1 - src/de/warking/bungeecore/arenasystem/Arena.java | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index c2e74c45..ec376bb8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ -*.iml .idea target \ No newline at end of file diff --git a/src/de/warking/bungeecore/arenasystem/Arena.java b/src/de/warking/bungeecore/arenasystem/Arena.java index a3a295be..bce49b01 100644 --- a/src/de/warking/bungeecore/arenasystem/Arena.java +++ b/src/de/warking/bungeecore/arenasystem/Arena.java @@ -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));