mirror of
https://github.com/architectury/architectury-api.git
synced 2026-03-31 05:15:56 -05:00
Update to 1.19-pre1
This commit is contained in:
@@ -62,11 +62,12 @@ public class DebugEvents {
|
||||
return EventResult.pass();
|
||||
});
|
||||
ChatEvent.SERVER.register((player, message) -> {
|
||||
TestMod.SINK.accept("Server chat received: " + message);
|
||||
if (message.getString().contains("shit")) {
|
||||
return CompoundEventResult.interruptFalse(Component.empty());
|
||||
TestMod.SINK.accept("Server chat received: " + message.getRaw());
|
||||
if (message.getRaw().getString().contains("shit")) {
|
||||
return EventResult.interruptFalse();
|
||||
}
|
||||
return CompoundEventResult.interruptTrue(message.copy().withStyle(ChatFormatting.AQUA));
|
||||
message.modifyBoth(component -> component.copy().withStyle(ChatFormatting.AQUA));
|
||||
return EventResult.interruptTrue();
|
||||
});
|
||||
CommandPerformEvent.EVENT.register(event -> {
|
||||
TestMod.SINK.accept("Server command performed: " + event.getResults().getReader().getString());
|
||||
|
||||
Reference in New Issue
Block a user