Skip to content

Commit 7858766

Browse files
committed
add a FAQ for extra value
1 parent e4da278 commit 7858766

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/topper/faq/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,17 @@ settings when setting up the display of the leaderboard.
8888
The [Value Display function](/topper/extra/value_display/) can be used to shorten the number. For example,
8989
`money:value:shorten` will shorten the number of the value in the `money` Top Holder.
9090

91+
## How can I display other things rather than Player Name?
92+
93+
Topper doesn't have the concept of "extra value", so if you want to do that, you have to make a workaround (mostly by developing or asking a developer to make a plugin that gets the UUID of the player from Topper and does stuff with it).
94+
95+
However, if you use [PlaceholderAPI](https://placeholderapi.com), Topper provides [the `top_key` placeholder](/topper/hook/placeholderapi/#top-key) to get the UUID of the player in the Holder. You can use that along with [the ParseOther expansion](https://api.extendedclip.com/expansions/parseother/) to parse your placeholder by the UUId of the player in the Holder.
96+
97+
For example, if you want to display the LuckPerms prefix (`%luckperms_prefix%`) of the 1st player in the Holder named `jump`, then the placeholder for that will be
98+
```
99+
%parseother_unsafe_{topper_jump;top_name;1}_{luckperms_prefix}%
100+
```
101+
91102
## I am so confused about how to use Topper
92103

93104
Take a deep breath and read the wiki again. You should take it slow and read the wiki carefully as you can miss some

0 commit comments

Comments
 (0)