Skip to Content
Placeholders

Placeholders

VanguardRanks integrates deeply with PlaceholderAPI to provide dynamic content and requirements. This guide covers all available placeholders and their usage.

Rank Placeholders

Rank placeholders provide information about ranks and are used in messages, GUIs, and commands.

PlaceholderDescriptionExample
%name%The rank’s internal nameNovice
%prefix%The rank’s prefix shown in chat[Novice]
%display_name%The rank’s display nameNovice Rank
%order%The rank’s position in hierarchy1
%next_name%Next rank’s internal nameAdvanced
%next_prefix%Next rank’s prefix[Advanced]
%next_display_name%Next rank’s display nameAdvanced Rank
%next_order%Next rank’s position2
%previous_name%Previous rank’s internal nameBeginner
%previous_prefix%Previous rank’s prefix[Beginner]
%previous_display_name%Previous rank’s display nameBeginner Rank
%previous_order%Previous rank’s position0

Requirement Placeholders

Requirement placeholders are used in requirement messages and GUI displays.

PlaceholderDescriptionExample
%current%Current value of the requirement500
%required%Required value to meet the requirement1000
%status%Status message (configured in messages.yml)✓ Completed

Player Placeholders

Player placeholders provide information about the player.

PlaceholderDescriptionExample
%player%Player’s nameSteve

Usage Examples

In Requirements

requirements: - placeholder: "%vault_eco_balance%" # Player's balance type: "GREATER_THAN" value: 1000 gui_message: "Have $%required% - Current: $%current%" deny_message: "You need $%required% to rank up! (Current: $%current%)"

In Messages

rankup_message: "&a%player% ranked up from %previous_rank% to %rank%!" list_format: "&7%order%. &f%display_name% &7(%name%)"

In Commands

commands: - "broadcast %player% has reached %rank%!" - "give %player% diamond 1"

PlaceholderAPI Integration

VanguardRanks also registers its own placeholders for use in other plugins:

PlaceholderDescriptionExample
%vanguardranks_rank%Player’s current rank display nameNovice Rank
%vanguardranks_rank_name%Player’s current rank namenovice
%vanguardranks_rank_prefix%Player’s current rank prefix[Novice]
%vanguardranks_next_rank%Player’s next rank display nameAdvanced Rank
%vanguardranks_previous_rank%Player’s previous rank display nameBeginner Rank

These placeholders can be used in any plugin that supports PlaceholderAPI.

Last updated on