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();
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 -> {