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) {
|
public static void msg(String string) {
|
||||||
try {
|
try {
|
||||||
sender.sendMessage(string);
|
sender.sendMessage(string);
|
||||||
} catch (Throwable ignored) {
|
} catch (Throwable e) {
|
||||||
try {
|
try {
|
||||||
System.out.println(string);
|
System.out.println(string);
|
||||||
} catch (Throwable ignored1) {
|
} catch (Throwable ignored1) {
|
||||||
|
@ -265,7 +265,7 @@ public class Violator {
|
|||||||
T f = c.getDeclaredAnnotation(a);
|
T f = c.getDeclaredAnnotation(a);
|
||||||
p(id(f, c), f);
|
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) + "]");
|
return (T) g("@" + a.getCanonicalName() + "[" + id(c, null) + "]");
|
||||||
|
@ -65,7 +65,7 @@ public class J {
|
|||||||
a.run();
|
a.run();
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
Iris.reportError(e);
|
Iris.reportError(e);
|
||||||
System.out.println("Failed to run async task");
|
Iris.error("Failed to run async task");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -77,7 +77,7 @@ public class J {
|
|||||||
a.run();
|
a.run();
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
Iris.reportError(e);
|
Iris.reportError(e);
|
||||||
System.out.println("Failed to run async task");
|
Iris.error("Failed to run async task");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user