SwornHeroWiki
Messages

Placeholders

Safe {player} and {server} placeholders in Dynamic Join Greetings.

PlaceholderReplacement
{player}Joining or previewing player’s current username
{server}Configured serverName

Safety

Before Simplified Text Format parsing, the mod escapes placeholder values:

  • \ becomes \\
  • < becomes \<

That means a player named something like <red>Admin cannot inject formatting, hover events, click events, or commands through the placeholder.

Example

<gold>Welcome to {server}, {player}!</gold>

If serverName is Emerald Reach and the player is Alex, the delivered text is effectively:

<gold>Welcome to Emerald Reach, Alex!</gold>

Found a problem in these docs? Report a documentation issue on GitHub.

On this page