🧩Internal Placeholders

The DiscordLink plugin provides its own set of internal placeholders that can be used directly in the plugin's configurable messages.

These placeholders are:

  • Universal: Work on all supported platforms – Velocity, Paper, and Purpur.

  • Local: Can only be used within the plugin’s message files (they are not available for other plugins).


🔑 Available Internal Placeholders

Placeholder
Description

[discordId]

Discord user ID

[discordUsername]

Linked Discord username

[playerName]

Minecraft player’s username


📄 Example Usage

Here’s an example of a message using an internal placeholder:

Your account was linked successfully: [discordUsername]

When displayed in-game, this could look like:

Your account was linked successfully: ExampleUser

🛠 Where Can I Use Them?

  • Internal placeholders can only be used in the messages.json file.

  • They are fully supported in all plugin-generated messages, including chat outputs and command responses.

💡 Note: The default messages provided in the plugin already use these placeholders, so you can easily customize them without additional setup.


✅ Key Benefits

  • Compatible across Velocity, Paper, and Purpur servers.

  • No additional dependencies are required.

  • Works out-of-the-box with the plugin’s configuration.

Last updated