Skip to content

Server link labels are not translated #1483

Open
@Krymonota

Description

Expected Behavior

When I set a server link with a label using a translation key, I expect the translation key to be resolved so that the player sees the translated string.

Actual Behavior

The translation key is not resolved and the player sees the translation key instead.

Image

Steps to Reproduce

player.setServerLinks(List.of(ServerLink.serverLink(Component.translatable("velocity.kick.shutdown"), "https://example.com")));

Plugin List

No third-party plugins

Velocity Version

Velocity 3.4.0-SNAPSHOT (git-1db8c8c6-b458)

Additional Information

It seems that ConnectedPlayer#translateMessage is not being invoked on the server link label (which I as a plugin developer cannot invoke either, as this function is not part of the API).

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions