Placeholders
XDiscordUltimate registers a PlaceholderAPI expansion with the identifierxdiscord. Any plugin or script that resolves PlaceholderAPI placeholders can read Discord link state and guild info from it.
PlaceholderAPI is an optional soft-dependency. These placeholders only resolve when PlaceholderAPI is installed alongside XDiscordUltimate. The plugin auto-registers its expansion on enable when it detects PlaceholderAPI.
Player Placeholders
These require aPlayer or OfflinePlayer context. For unlinked players, text placeholders return "Not Linked" and ID-style placeholders return "N/A".
| Placeholder | Description | Example output |
|---|---|---|
%xdiscord_verified% | Whether the player is linked | true / false |
%xdiscord_linked% | Human-readable link status | Yes / No |
%xdiscord_discord_name% | Discord display name | DiscordUser / Not Linked |
%xdiscord_discord_id% | Discord snowflake | 123456789012345678 / N/A |
%xdiscord_discord_tag% | Discord name with discriminator | DiscordUser#0001 / Not Linked |
%xdiscord_discord_avatar% | Avatar URL | https://cdn.discordapp.com/... / (empty) |
%xdiscord_has_nitro% | Whether the member is boosting | true / false |
%xdiscord_is_booster% | Alias of has_nitro | true / false |
Server Placeholders
These do not require a player and resolve against the configured main guild:| Placeholder | Description | Example output |
|---|---|---|
%xdiscord_bot_status% | Bot connection state | Online / Offline |
%xdiscord_guild_name% | Main guild name | My Server / N/A |
%xdiscord_guild_members% | Total member count | 428 / 0 |
%xdiscord_guild_online% | Online members (online/idle/dnd) | 57 / 0 |
Usage
In chat formats, scoreboards, TAB plugins, or anywhere PlaceholderAPI is expanded:Player placeholders perform a short (1-second) async lookup against the database and Discord API. They are safe for periodic refresh but avoid hammering them on every tick. For high-frequency reads inside your own plugin, call
DatabaseManager.getDiscordId directly and cache the result.Next Steps
API Overview
Start here for the singleton, services, and setup.
Community Features
See how verification, tickets, and reports surface to players.

