- [FEAT] New APIs for Maintenance Mode and rewrite commands system
- [FEAT] Improved config system to fix old loading bugs and support JSON - [FEAT] LuckPerms support for commands
This commit is contained in:
@@ -21,11 +21,12 @@
|
||||
cancellable = true
|
||||
)
|
||||
- private void injectChatEvent(PlayerChatMessage arg, Component arg2, FilteredText arg3, CallbackInfo ci) {
|
||||
- Component finalArg = arg2 == null ? arg.decoratedContent() : arg2;
|
||||
- Component finalcomp = arg2 == null ? arg.decoratedContent() : arg2;
|
||||
- CraterServerChatEvent event = new CraterServerChatEvent(BridgedPlayer.of(this.player), finalcomp.getString(), ChatUtils.mojangToAdventure(finalcomp));
|
||||
+ private void injectChatEvent(CompletableFuture<FilteredText> completableFuture, CompletableFuture<Component> completableFuture2, PlayerChatMessage arg, Executor executor, CallbackInfoReturnable<CompletableFuture> cir) {
|
||||
+ Component comp2 = completableFuture2.join();
|
||||
+ Component finalArg = comp2 == null ? arg.decoratedContent() : comp2;
|
||||
CraterServerChatEvent event = new CraterServerChatEvent(BridgedPlayer.of(this.player), finalArg.getString(), ChatUtils.mojangToAdventure(finalArg));
|
||||
+ CraterServerChatEvent event = new CraterServerChatEvent(BridgedPlayer.of(this.player), finalArg.getString(), ChatUtils.mojangToAdventure(finalArg));
|
||||
CraterEventBus.INSTANCE.postEvent(event);
|
||||
if (event.wasCancelled())
|
||||
- ci.cancel();
|
||||
|
@@ -6,7 +6,7 @@
|
||||
"fabric-api": "*",
|
||||
- "minecraft": ">=1.21",
|
||||
- "java": ">=21"
|
||||
+ "minecraft": ">=1.19.3",
|
||||
+ "minecraft": ">=1.19.4",
|
||||
+ "java": ">=17"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user