9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-27 11:09:06 +00:00

Remove system.out's

This commit is contained in:
CocoTheOwner
2021-08-13 20:12:35 +02:00
parent 30c5a0d9cd
commit 0f0c24d31b
3 changed files with 10 additions and 5 deletions

View File

@@ -480,9 +480,14 @@ public class Iris extends VolmitPlugin implements Listener {
public static void msg(String string) {
try {
sender.sendMessage(string);
} catch (Throwable ignored) {
} catch (Throwable e) {
try {
System.out.println(string);
if (sender.isPlayer()) {
Iris.reportError(e);
Iris.error("Failed to send message to player: " + string);
} else {
System.out.println("Failed to send message through logger: " + string + " because of " + e.getMessage());
}
} catch (Throwable ignored1) {
}