Skip to content

Fix localized shutdown message#13877

Open
RuleGaed wants to merge 1 commit into
PaperMC:mainfrom
RuleGaed:fix-localized-shutdown-message
Open

Fix localized shutdown message#13877
RuleGaed wants to merge 1 commit into
PaperMC:mainfrom
RuleGaed:fix-localized-shutdown-message

Conversation

@RuleGaed
Copy link
Copy Markdown

Fixes #11208.

Uses the vanilla translatable shutdown message when no custom shutdown message is configured, while keeping custom shutdown messages configurable via bukkit.yml.

@RuleGaed RuleGaed requested a review from a team as a code owner May 11, 2026 15:21
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue May 11, 2026
public net.kyori.adventure.text.Component shutdownMessage() {
String msg = getShutdownMessage();
return msg != null ? net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer.legacySection().deserialize(msg) : null;
return this.configuration.getRichMessage("settings.shutdown-message");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is not a rich message

@RuleGaed RuleGaed force-pushed the fix-localized-shutdown-message branch from 892d1a0 to 16d7174 Compare May 11, 2026 16:05
@RuleGaed
Copy link
Copy Markdown
Author

Fair point, I reverted that part and kept the existing legacy parsing. The PR now only changes the default to null and uses the vanilla translatable shutdown message as the fallback when no custom shutdown message is configured.

@RuleGaed RuleGaed requested a review from electronicboy May 11, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Awaiting review

Development

Successfully merging this pull request may close these issues.

Localize shutdown message

2 participants