update brig in the API and patch cleanup

This commit is contained in:
Jake Potrebic
2024-12-18 18:30:29 -08:00
parent 5922e6334b
commit 49f715fdda
8 changed files with 72 additions and 29 deletions

View File

@@ -4,11 +4,11 @@
public static void resolveChatMessage(CommandContext<CommandSourceStack> context, String key, Consumer<PlayerChatMessage> callback) throws CommandSyntaxException {
MessageArgument.Message message = context.getArgument(key, MessageArgument.Message.class);
+ // Paper start
+ // Paper start - brig message argument support
+ resolveChatMessage(message, context, key, callback);
+ }
+ public static void resolveChatMessage(MessageArgument.Message message, CommandContext<CommandSourceStack> context, String key, Consumer<PlayerChatMessage> callback) throws CommandSyntaxException {
+ // Paper end
+ // Paper end - brig message argument support
CommandSourceStack commandSourceStack = context.getSource();
Component component = message.resolveComponent(commandSourceStack);
CommandSigningContext signingContext = commandSourceStack.getSigningContext();