added /irepair

This commit is contained in:
ImproperIssues
2023-04-15 18:15:03 -07:00
parent f5254cbb1c
commit fb0fb0e195

View File

@@ -78,15 +78,15 @@ public class ChatConstraints {
TextComponent text = new TextComponent(); TextComponent text = new TextComponent();
text.setText(Text.builder( text.setText(Text.builder(
"&cPlease do not send unsupported characters in chat!" "&cPlease do not send unsupported characters in chat!"
+ "\n&cMessage: &f" + message + "\n&cMessage: &f" + message
+ "\n&cCaught: &e" + nonAllowed + "\n&cCaught: &e" + nonAllowed
).prefix() ).prefix()
.color() .color()
.build()); .build());
text.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, TextComponent.fromLegacyText(Text.color( text.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, TextComponent.fromLegacyText(Text.color(
"&cMessage: &f" + message "&cMessage: &f" + message
+ "\n&cCaught: &e" + nonAllowed + "\n&cCaught: &e" + nonAllowed
)))); ))));
player.spigot().sendMessage(text); player.spigot().sendMessage(text);
ServerUtils.forEachStaff(p -> { ServerUtils.forEachStaff(p -> {
@@ -119,15 +119,15 @@ public class ChatConstraints {
String warn = ArrayUtils.list2string(caught); String warn = ArrayUtils.list2string(caught);
TextComponent text = new TextComponent(); TextComponent text = new TextComponent();
text.setText(Text.builder( text.setText(Text.builder(
"&cPlease do not swear in chat!" "&cPlease do not swear in chat!"
+ "\n&cMessage: &f" + d + "\n&cMessage: &f" + d
+ "\n&cCaught: &e" + warn + "\n&cCaught: &e" + warn
).prefix() ).prefix()
.color() .color()
.build()); .build());
text.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, TextComponent.fromLegacyText(Text.color( text.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, TextComponent.fromLegacyText(Text.color(
"&cMessage: &f" + d "&cMessage: &f" + d
+ "\n&cCaught: &e" + warn + "\n&cCaught: &e" + warn
)))); ))));
player.spigot().sendMessage(text); player.spigot().sendMessage(text);
ServerUtils.forEachStaff(p -> { ServerUtils.forEachStaff(p -> {