mirror of
https://github.com/architectury/architectury-api.git
synced 2026-04-02 13:37:43 -05:00
Update to 1.19-pre1
This commit is contained in:
@@ -6,5 +6,5 @@ dependencies {
|
||||
}
|
||||
|
||||
architectury {
|
||||
common(rootProject.forgeEnabled.toBoolean())
|
||||
common(rootProject.platforms.split(","))
|
||||
}
|
||||
|
||||
@@ -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