added /irepair
This commit is contained in:
@@ -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 -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user