Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only convert hex and legacy codes in message format #2

Merged
merged 1 commit into from
Mar 6, 2022
Merged

Only convert hex and legacy codes in message format #2

merged 1 commit into from
Mar 6, 2022

Conversation

jok-dev
Copy link
Contributor

@jok-dev jok-dev commented Mar 6, 2022

We know that the output of plugin.getMiniMessage().serialize(e.message()) is already in the modern MiniMessage format, so there's no need to convert anything.

Also, instead of calling plugin#convertHex twice (it's also called in replaceLegacyCodes), we just leave it up to replaceLegacyCodes to do.

@heychazza
Copy link
Owner

Thank you a ton for the PR, completely oversaw it

@heychazza heychazza merged commit 4e48d30 into heychazza:main Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants