PlaceholderAPI - PlayerNguyen/OptEcoPrime GitHub Wiki
Placeholders
OptEcoPrime supports PlaceholderAPI, which returns data whenever call a string.
All placeholders have a schema %optecoprime_{placeholders}%
and hence there is a list of placeholders.
%optecoprime_balance%
- Returns a current balance of players WITHOUT CURRENCY
- For example, player admin has 10 points, which means return 10
%optecoprime_currency_symbol%
- Returns a configured currency symbol in Settings.yml
%optecoprime_leaderboard_{index}_{option}%
-
Gets and returns an
{option}
of{index}
players on top (leaderboard) in the server. Starts by index of 0 -
With:
{index}
is an index value of player to get{option}
uuid
: get an unique id (uuid) ofindex
playerusername
: get username ofindex
playerbalance
: get a balance ofindex
player
For example, when you have a leaderboard list like this one:
Index | UUID | Username | Balance |
---|---|---|---|
0 | 974d9702-46a9-4f18-a4c4-27224e593bd9 | User1 | 98 |
1 | 117ae85f-e3a3-473c-8be6-45ea40e015ac | User2 | 64 |
2 | a3eeb5ea-9746-4ece-8e3d-df13527ada6d | User3 | 32 |
3 | 4c639504-c2f6-4ecd-b9cb-aa8d1c053913 | User4 | 11 |
- Which means:
%optecoprime_leaderboard_0_username%
returnsUser1
%optecoprime_leaderboard_3_uuid%
returns4c639504-c2f6-4ecd-b9cb-aa8d1c053913
%optecoprime_leaderboard_3_balance%
returns11
%optecoprime_leaderboard_0_balance%
returns98