cloud icon indicating copy to clipboard operation
cloud copied to clipboard

feat: Add convenience formatting caption methods.

Open NFRCG opened this issue 1 year ago • 1 comments

The following PR adds convenience methods to allow caption formatting from the CommandContext for a different recipient that is not the command sender.

The benefit of this is to allow usage of the same mechanisms for formatting/sending captions for the sender AND the recipient of a command.

If there is an alternative or preferred way to achieve the same goal, please let me know and I'll close this PR.

NFRCG avatar May 23 '24 19:05 NFRCG

not sure about this one, you could just do this yourself by getting the CaptionFormatter / CaptionRegistry from the CommandManager. If you still think there's a good reason change this pr a little so that the old methods call this method and supply this.commandSender

broccolai avatar Aug 13 '24 13:08 broccolai