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); sender.sendMessage(string);
} catch (Throwable e) { } catch (Throwable e) {
try { try {
System.out.println(string); System.out.println(instance.getTag() + string.replaceAll("(<([^>]+)>)", ""));
} catch (Throwable ignored1) { } catch (Throwable ignored1) {
} }