Ursprung
badb5e5e1e
Commit
b7d42a767a
@ -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[")) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren