SteamWar/BungeeCore
Archiviert
13
2

idk
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Chaoscaot 2023-04-06 20:42:05 +02:00
Ursprung badb5e5e1e
Commit b7d42a767a

Datei anzeigen

@ -162,14 +162,17 @@ public class SchematicSearch {
InputStream stdout = process.getInputStream(); InputStream stdout = process.getInputStream();
InputStream stderr = process.getErrorStream(); InputStream stderr = process.getErrorStream();
while (!process.waitFor(100, TimeUnit.MILLISECONDS)) { String bar = "";
while (!process.waitFor(200, TimeUnit.MILLISECONDS)) {
String s = readInputStream(stderr); String s = readInputStream(stderr);
if (s.length() > 0) { if (s.length() > 0) {
if (s.contains("s[")) { if (s.contains("s[")) {
s = s.substring(s.lastIndexOf("s[") + 1); s = s.substring(s.lastIndexOf("s[") + 1);
} }
BungeeCore.send(player, ChatMessageType.ACTION_BAR, "§7" + s.replace("", "§e█§7")); s = s.replace("", "§e█§7");
bar = s;
} }
BungeeCore.send(player, ChatMessageType.ACTION_BAR, "§7" + bar);
} }
String s = readInputStream(stderr); String s = readInputStream(stderr);
if (s.contains("s[")) { if (s.contains("s[")) {