From fb0fb0e1952bbf0474ec69a66de8ba925a8364b4 Mon Sep 17 00:00:00 2001 From: ImproperIssues Date: Sat, 15 Apr 2023 18:15:03 -0700 Subject: [PATCH] added /irepair --- .../ogredupealias/plugin/ChatConstraints.java | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/main/java/io/github/itzispyder/ogredupealias/plugin/ChatConstraints.java b/src/main/java/io/github/itzispyder/ogredupealias/plugin/ChatConstraints.java index ae11fc5..ccfe8c3 100644 --- a/src/main/java/io/github/itzispyder/ogredupealias/plugin/ChatConstraints.java +++ b/src/main/java/io/github/itzispyder/ogredupealias/plugin/ChatConstraints.java @@ -78,15 +78,15 @@ public class ChatConstraints { TextComponent text = new TextComponent(); text.setText(Text.builder( - "&cPlease do not send unsupported characters in chat!" - + "\n&cMessage: &f" + message - + "\n&cCaught: &e" + nonAllowed - ).prefix() - .color() - .build()); + "&cPlease do not send unsupported characters in chat!" + + "\n&cMessage: &f" + message + + "\n&cCaught: &e" + nonAllowed + ).prefix() + .color() + .build()); text.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, TextComponent.fromLegacyText(Text.color( - "&cMessage: &f" + message - + "\n&cCaught: &e" + nonAllowed + "&cMessage: &f" + message + + "\n&cCaught: &e" + nonAllowed )))); player.spigot().sendMessage(text); ServerUtils.forEachStaff(p -> { @@ -119,15 +119,15 @@ public class ChatConstraints { String warn = ArrayUtils.list2string(caught); TextComponent text = new TextComponent(); text.setText(Text.builder( - "&cPlease do not swear in chat!" - + "\n&cMessage: &f" + d - + "\n&cCaught: &e" + warn - ).prefix() - .color() - .build()); + "&cPlease do not swear in chat!" + + "\n&cMessage: &f" + d + + "\n&cCaught: &e" + warn + ).prefix() + .color() + .build()); text.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, TextComponent.fromLegacyText(Text.color( - "&cMessage: &f" + d - + "\n&cCaught: &e" + warn + "&cMessage: &f" + d + + "\n&cCaught: &e" + warn )))); player.spigot().sendMessage(text); ServerUtils.forEachStaff(p -> {