Skip to content

MiniMessage: Handle arguments for PreProcessTags correctly#735

Merged
zml2008 merged 2 commits intoPaperMC:main/4from
Joo200:fix/preprocesstags
Apr 15, 2022
Merged

MiniMessage: Handle arguments for PreProcessTags correctly#735
zml2008 merged 2 commits intoPaperMC:main/4from
Joo200:fix/preprocesstags

Conversation

@Joo200
Copy link
Contributor

@Joo200 Joo200 commented Mar 27, 2022

This should fix #732

The tests should be a good example how to use arguments in pre process tags.

Currently the code looks a little bit ugly. Maybe use the first token from the childTokens? Or something else.

kezz
kezz previously requested changes Apr 3, 2022
Copy link
Member

@kezz kezz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs in PreProcess need updating to specify that they can accept arguments.

@Joo200 Joo200 requested a review from kezz April 3, 2022 22:10
@zml2008 zml2008 self-assigned this Apr 15, 2022
@zml2008 zml2008 dismissed kezz’s stale review April 15, 2022 20:41

requested changes have been made

@zml2008 zml2008 merged commit c46d3bb into PaperMC:main/4 Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PreProcess tags do not handle arguments correctly

3 participants