Skip to content

Replace temporary placeholders back to actual values for MiniMessage tags#36

Merged
SrBedrock merged 3 commits intoupdatefrom
dev/tpa
Feb 26, 2026
Merged

Replace temporary placeholders back to actual values for MiniMessage tags#36
SrBedrock merged 3 commits intoupdatefrom
dev/tpa

Conversation

@SrBedrock
Copy link
Member

No description provided.

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.
@SrBedrock SrBedrock merged commit 5727754 into update Feb 26, 2026
3 checks passed
@SrBedrock SrBedrock deleted the dev/tpa branch February 28, 2026 23:15
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.

1 participant