9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 10:39:07 +00:00

Remove the gradient if an error occurs with sender.send

Otherwise, the raw gradient text is printed to the console, which is bad.
This commit is contained in:
CocoTheOwner
2021-08-14 23:22:53 +02:00
parent a65a85fb67
commit bfb121938a

View File

@@ -484,7 +484,7 @@ public class Iris extends VolmitPlugin implements Listener {
sender.sendMessage(string);
} catch (Throwable e) {
try {
System.out.println(string);
System.out.println(instance.getTag() + string.replaceAll("(<([^>]+)>)", ""));
} catch (Throwable ignored1) {
}