Skip to content

Updated Velocity to latest#216

Merged
aikar merged 2 commits into
aikar:masterfrom
egg82:fix/velocity
Jun 21, 2019
Merged

Updated Velocity to latest#216
aikar merged 2 commits into
aikar:masterfrom
egg82:fix/velocity

Conversation

@egg82
Copy link
Copy Markdown
Contributor

@egg82 egg82 commented Jun 11, 2019

Kyori text was the only thing needing updating.

I don't know why you're using tabs in the pom.xml, but I tried to keep it as best as possible. Intellij doesn't like them much.

egg82 added 2 commits June 10, 2019 20:41
Kyori text is the only breaking change, here.
@egg82
Copy link
Copy Markdown
Contributor Author

egg82 commented Jun 12, 2019

Heads-up, Velocity officially releases its first version today (woo!) - would be good to have this updated and working for the release.

@js6pak
Copy link
Copy Markdown

js6pak commented Jun 21, 2019

@aikar can you merge this?

@SuppressWarnings("deprecation")
String format(TextColor color, String message) {
return ComponentSerializers.LEGACY.serialize(ComponentSerializers.LEGACY.deserialize(message).color(color));
return LegacyComponentSerializer.legacy().serialize(LegacyComponentSerializer.legacy().deserialize(message).color(color));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Shouldn't you use LegacyComponentSerializer.INSTANCE like in kyori.text sample?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LegacyComponentSerializer.INSTANCE was deprecated with LegacyComponentSerializer.legacyLinking() becoming an option (which makes LegacyComponentSerializer act more like the BungeeCord chat API and CraftBukkit).

@aikar aikar merged commit 96e5414 into aikar:master Jun 21, 2019
@js6pak
Copy link
Copy Markdown

js6pak commented Jun 22, 2019

When this will be available on repo? @aikar

@chickeneer
Copy link
Copy Markdown
Collaborator

@js6pak I have deployed it for you. Sorry for the delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants