mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Merge pull request #538 from CocoTheOwner/noSystemOut
This commit is contained in:
commit
a65a85fb67
@ -482,7 +482,7 @@ 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);
|
||||
} catch (Throwable ignored1) {
|
||||
|
@ -265,7 +265,7 @@ public class Violator {
|
||||
T f = c.getDeclaredAnnotation(a);
|
||||
p(id(f, c), f);
|
||||
|
||||
System.out.println("Set as " + id(f, c) + " as " + ("@" + a.getCanonicalName() + "[" + id(c, null) + "]"));
|
||||
Iris.debug("Set as " + id(f, c) + " as " + ("@" + a.getCanonicalName() + "[" + id(c, null) + "]"));
|
||||
}
|
||||
|
||||
return (T) g("@" + a.getCanonicalName() + "[" + id(c, null) + "]");
|
||||
|
@ -65,7 +65,7 @@ public class J {
|
||||
a.run();
|
||||
} catch (Throwable e) {
|
||||
Iris.reportError(e);
|
||||
System.out.println("Failed to run async task");
|
||||
Iris.error("Failed to run async task");
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
@ -77,7 +77,7 @@ public class J {
|
||||
a.run();
|
||||
} catch (Throwable e) {
|
||||
Iris.reportError(e);
|
||||
System.out.println("Failed to run async task");
|
||||
Iris.error("Failed to run async task");
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user