Skip to content

Conversation

@Discreater
Copy link

Localize the welcome message sent from the server.

@Dream-Master Dream-Master added the 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta label Dec 20, 2025
Comment on lines 33 to +34
event.player.addChatMessage(new ChatComponentText(GOLD.toString() + STRIKETHROUGH + "-----------------------------------------------------"));
event.player.addChatMessage(new ChatComponentText(BOLD + WELCOME + " " + GREEN + ModPackVersion));
event.player.addChatMessage(new ChatComponentText(BLUE + QUESTBOOK));
event.player.addChatMessage(new ChatComponentText(DARK_GREEN + GTNH_WIKI + " ")
.appendSibling(new ChatComponentText(DARK_GREEN + Refstrings.WIKI_LINK)
.setChatStyle(new ChatStyle()
.setChatHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ChatComponentText(YELLOW + CLICK_WIKI)))
event.player.addChatMessage(new ChatComponentTranslation(WELCOME).setChatStyle(new ChatStyle().setBold(true))
Copy link
Contributor

Choose a reason for hiding this comment

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

You should also set the colors of these two lines in the chat style, as well as the one at the very bottom.

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

Labels

🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants