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

Added MiniMessage support to built-in motd #666

Merged
merged 13 commits into from Mar 15, 2023

Conversation

4drian3d
Copy link
Contributor

@4drian3d 4drian3d commented Mar 15, 2022

  • MiniMessage support has been added to build-in motd replacing legacy color codes and json usage
  • Bump config-version to 2.6

@astei
Copy link
Contributor

astei commented Mar 15, 2022

I'm happy with this but would like some input from others before I merge.

Copy link

@KoxSosen KoxSosen left a comment

Choose a reason for hiding this comment

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

I'm not a contributor, but this seems like a great change.

@kezz
Copy link
Contributor

kezz commented Mar 15, 2022

A prefix is really weird - is there any reason not to migrate the config?

@kyngs
Copy link
Contributor

kyngs commented Mar 15, 2022

A prefix is really weird - is there any reason not to migrate the config?

That would mean peoples motd's breaking on a minor update. Not having the prefix would be a good idea on velocity 4.x IMO.

@4drian3d
Copy link
Contributor Author

A prefix is really weird - is there any reason not to migrate the config?

I thought it would be the best option, to migrate the formatting of that option in a "patch" version like 3.1.2 would be strange

@kezz
Copy link
Contributor

kezz commented Mar 15, 2022

That would mean peoples motd's breaking on a minor update. Not having the prefix would be a good idea on velocity 4.x IMO.

Do you know what migration means? The point of migration is that nothing breaks.

to migrate the formatting of that option in a "patch" version like 3.1.2 would be strange

Then let's bump the minor version? I assume Velocity, being a modern proxy, would want to migrate away from legacy formatting eventually, so why not do it in one step?

@kyngs
Copy link
Contributor

kyngs commented Mar 15, 2022

That would mean peoples motd's breaking on a minor update. Not having the prefix would be a good idea on velocity 4.x IMO.

Do you know what migration means? The point of migration is that nothing breaks.

I'm sorry, I understood it as if it were to just switch to mm. How do you want to migrate such a thing?

@Astralchroma
Copy link

Astralchroma commented Mar 15, 2022

I made a similar pull request to Paper, and after discussion there the course of action was to forcibly migrate the config messages instead of maintain compatibility with both, would it not be best to be consistent and forcibly migrate the format with Velocity?

@4drian3d
Copy link
Contributor Author

That would mean peoples motd's breaking on a minor update. Not having the prefix would be a good idea on velocity 4.x IMO.

Do you know what migration means? The point of migration is that nothing breaks.

to migrate the formatting of that option in a "patch" version like 3.1.2 would be strange

Then let's bump the minor version? I assume Velocity, being a modern proxy, would want to migrate away from legacy formatting eventually, so why not do it in one step?

Yes, the ideal would be to migrate at once from all legacy color code uses to MiniMessage, but being a minor version to be released in proximity, I thought better to use a prefix, but if required, I could try to migrate to MiniMessage in that option now

@kezz
Copy link
Contributor

kezz commented Mar 15, 2022

How do you want to migrate such a thing?

Velocity has a versioned config, there's a million and one ways you could easily setup migrations.

@4drian3d
Copy link
Contributor Author

How do you want to migrate such a thing?

Velocity has a versioned config, there's a million and one ways you could easily setup migrations.

Honestly, I never paid attention to this configuration option, I just remembered it existed, now I am making the migration

@Astralchroma
Copy link

MiniMessage can convert components to MiniMessage so it's not hard to convert it.

@4drian3d
Copy link
Contributor Author

migration1
The migration and the motd format are working correctly, it should be ready for another review

@4drian3d 4drian3d requested a review from astei March 15, 2022 10:55
@astei
Copy link
Contributor

astei commented Mar 19, 2022

I'm happy with this but am going to hold this off until we get a new minor version out.

@astei astei added the type: feature New feature or request label Mar 19, 2022
4drian3d added a commit to 4drian3d/docs that referenced this pull request Apr 4, 2022
@ReferTV
Copy link

ReferTV commented Apr 17, 2022

will this be implemented? (About when this version of Velocity will come out)

@4drian3d
Copy link
Contributor Author

I'm happy with this but am going to hold this off until we get a new minor version out.

Considering that pull request #692 was accepted and that very soon pull request #690 will be accepted, I believe that the next version will no longer be considered as a "patch" and this pull request could be accepted directly.

Also, it would be nice if the first version that includes MiniMessage already has its use implemented in all the places where the legacy format was used (where possible) which is the only place that would be missing

@4drian3d 4drian3d marked this pull request as ready for review January 26, 2023 23:53
4drian3d added a commit to 4drian3d/docs that referenced this pull request Jan 29, 2023
@4drian3d 4drian3d requested review from kezz and removed request for astei March 15, 2023 17:11
@astei astei merged commit cc74cf8 into PaperMC:dev/3.0.0 Mar 15, 2023
@4drian3d 4drian3d deleted the minimessage-motd branch March 15, 2023 23:59
kashike added a commit to PaperMC/docs that referenced this pull request Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants