Placeholders
PlayerProfile adds its own set of placeholders for PlaceholderAPI, which you can use in any other plugin or directly within the menus themselves.
Requirement
For these placeholders to work, PlaceholderAPI must be installed on your server.
Placeholder List
| Placeholder | Description |
|---|---|
%playerprofile_status% | Displays the player's current status as set in their profile. |
%playerprofile_is_public% | Returns true if the player's profile is public, and false if it is private. |
%playerprofile_owner% | Returns the nickname of the owner of the profile currently open in the menu. |
%playerprofile_viewer% | Returns the nickname of the player currently viewing the profile menu. |
%playerprofile_theme% | Returns the active profile theme name (default is default). |
%playerprofile_likes% | Returns the total number of Likes the profile owner has received. |
%playerprofile_dislikes% | Returns the total number of Dislikes the profile owner has received. |
%playerprofile_my_vote% | Returns the viewer's current vote on the profile (like, dislike, or none). |
How to use them?
You can insert these placeholders into any plugin that supports PlaceholderAPI, such as chat, tab, or holograms.
But their main power is unleashed inside the PlayerProfile menus themselves.
Example:
yaml
# menus/default.yml
icons:
'i':
material: BOOK
display: '&6Information about %owner%'
lore:
- '&7Status: &f%playerprofile_status%'
- '&7Profile public: &e%playerprofile_is_public%'
- '&7Reputation: &a%playerprofile_likes% &f/ &c%playerprofile_dislikes%'
- ''
- '&8(Viewed by: %playerprofile_viewer%)'