Conversation
Update I18n.java to improve nbsp handling and restore temporary placeholders.
- Use explicit Unicode escape for non-breaking space (\u00A0) when normalizing spaces.
- Add logic to replace temporary "{i}" placeholders with the original processed argument strings so MiniMessage tags/values are preserved.
- Mark caught exceptions and some method parameters as final for clarity/immutability.
These changes prevent loss of MiniMessage content during formatting and tidy up variable declarations.
Pass the requesting player's display name to localization messages for tpa actions. Updated sendTl calls for typeTpaccept, typeTpdeny, and typeTpacancel to include user.getDisplayName(), so prompts indicate who initiated the teleport request.
Pass plain usernames alongside display names to various messaging calls in Commandtpa. Updated sendTl calls and a TranslatableException to include user.getName()/player.getName() for requestAcceptedAuto, requestAcceptedFromAuto, teleportRequestCancelled, teleportRequest, typeTpaccept, typeTpdeny, requestSent and typeTpacancel so message templates can use both displayName and name.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.