Archiviert
1
0
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 stderr = process.getErrorStream();
while (!process.waitFor(100, TimeUnit.MILLISECONDS)) {
String bar = "";
while (!process.waitFor(200, TimeUnit.MILLISECONDS)) {
String s = readInputStream(stderr);
if (s.length() > 0) {
if (s.contains("s[")) {
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);
if (s.contains("s[")) {