WIP: Add SchemSearch #467
@ -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");
|
||||
Lixfel markierte diese Unterhaltung als gelöst
|
||||
bar = s;
|
||||
}
|
||||
BungeeCore.send(player, ChatMessageType.ACTION_BAR, "§7" + bar);
|
||||
}
|
||||
String s = readInputStream(stderr);
|
||||
if (s.contains("s[")) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
BufferedInputStream.readline()?