Sueta

CooldownBar Expansion

1.1

Display your cooldown in a fancy bar!

·Plugin

CooldownBar Expansion

A PlaceholderAPI expansion that allows you to display your cooldown in a fancy bar using the symbols of your choice!

Placeholders

%cooldownbar_{placeholder}%

{placeholder} (Required field)
Requires: A placeholder that returns a number (The time in seconds) OR Xd , Xh , Xm , Xs . Available placeholders
Example: %cooldownbar_{essentials_kit_time_until_available_tools}%

p:
Requires: TEXT
Default (Config option): &a| ( passed )
Example: %cooldownbar_{essentials_kit_time_until_available_tools}_p:&a■%

Sets the symbol/text that is used for already passed time.

r:
Requires: TEXT
Default (Config option): &7| ( remaining )
Example: %cooldownbar_{essentials_kit_time_until_available_tools}_r:&7■%

Sets the symbol/text that is used for the remaining time.

l:
Requires: NUMBER
Default (Config option): 10 ( length )
Example: %cooldownbar_{essentials_kit_time_until_available_tools}_l:5%

Sets the maximum length of the cooldown bar. This also affects the bar itself.

c:
Requires: NUMBER OR DURATION ( Xd , Xh , Xm , Xs )
Default (Config option): 100 ( cooldown )
Example: %cooldownbar_{essentials_kit_time_until_available_tools}_c:10%

Sets the main cooldown (cooldown at the beginning). This affects the bar itself.

rdy:
Requires: TEXT
Default (Config option): &aReady! ( ready )
Example: %cooldownbar_{essentials_kit_time_until_available_tools}_rdy:&aClaim now!%

Sets the text that is shown when the cooldown has passed out (reached the set cooldown value c: ).

%cooldownbar_percentage_{placeholder}%

{placeholder} (Required field)

Requires: A placeholder that returns a number (The time in seconds) OR Xd , Xh , Xm , Xs . Available placeholders
Example: %cooldownbar_percentage_{essentials_kit_time_until_available_tools}%

c:
Requires: NUMBER OR DURATION ( Xd , Xh , Xm , Xs )
Default (Config option): 100 ( cooldown )
Example: %cooldownbar_percentage_{essentials_kit_time_until_available_tools}_c:10%

Sets the main cooldown (cooldown at the beginning). This affects the percentage itself.

d:
Requires: NUMBER
Default (Config option): 2 ( decimal )
Example: %cooldownbar_percentage_{essentials_kit_time_until_available_tools}_d:0%

Sets the amount of decimals that will be shown. For example, with d:3 if the percentage is 50 it will return 50.000

Download

You download it automatically using PAPI download commands:
/papi ecloud download CooldownBar
/papi reload

Or you can download it manually from here and put it in the expansions folder (Path: /plugins/PlaceholderAPI/expansions/ )

Something went wrong with it? Open a new issue in GitHub and we will figure it out!

Feel free to leave a review about this expansion.
Review section isn't for support.

Similar projects

Plugin →