SteamWar/BungeeCore
Archiviert
13
2

Add catch for IOException
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Chaoscaot 2023-04-06 17:22:20 +02:00
Ursprung edb108b7b3
Commit f624d2893d

Datei anzeigen

@ -170,8 +170,6 @@ public class SchematicSearch {
BungeeCore.send(player, ChatMessageType.ACTION_BAR, "§7" + s.replace("", "§e█§7"));
}
}
String s = readInputStream(stderr);
if (s.contains("s[")) {
s = s.substring(s.lastIndexOf("s[") + 1);
@ -228,6 +226,8 @@ public class SchematicSearch {
Message.send("SCHEMATIC_SEARCH_TOO_MANY_RESULTS", player);
}
end();
} catch (IOException | InterruptedException e) {
end();
} catch (Exception e) {
end();
@ -240,9 +240,11 @@ public class SchematicSearch {
if(process != null && process.isAlive()) {
process.destroy();
}
if(pattern != null) {
pattern.delete();
}
if(task != null) {
task.cancel();
}