Customize Value Provider
Asynchronous Provider
You can set async
to true
to make the provider asynchronous, meaning it will be executed in a separate thread. This can be useful if the provider is slow or if it performs a lot of calculations.
holders:
jump:
<your other settings>
async: true
Default Values
You can change the default values, returned by some queries and commands, by adding some settings to your holder settings.
holders:
jump:
<your other settings>
null-name: "---" # Default value for the name
null-uuid: "---" # Default value for the uuid
null-value: "---" # Default value for the value
line: "&7[&b{index}&7] &b{name} &7- &b{value}" # Default format for the top line in the top list
Reversed Leaderboard
By default, the leaderboard is measured by the player with the highest value first. If you want to change that (e.g. show the player with the least value first), you can set reverse
to true
.
holders:
jump:
<your other settings>
reverse: true
Handle Formatted Values
If the output of a Value Provider
(Placeholder
for example) is a formatted value and you are confident that you can get the raw value from it with a simple method of taking only numbers and the decimal separator, you can enable the formatted
option in your Holder Setting.
holders:
example-formatted-value-provider:
<your other settings>
formatted: true
formatted-settings: # Optional settings for the formatted value
decimal-separator: "." # Change this to the decimal separator of the formatted value
Show Errors
By default, any errors that occur during the execution of a provider will be truncated. If you want to show the errors instead, you can set show-errors
to true
.
holders:
jump:
<your other settings>
show-errors: true