Skip to content

aBooDyy/CooldownBar-Expansion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CooldownBar-Expansion

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

Placeholders

The expansion provides two placeholder that can be customized with additional values/options. If a option provides a invalid value, then the default one set in the config.yml of PlaceholderAPI is used.

%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 can download this expansion automatically using PAPI download commands:

/papi ecloud download CooldownBar
/papi reload

Or you can download it manaually from the eCloud and then put it in the expansions folder (Path: /plugins/PlaceholderAPI/expansions/)

Releases

No releases published

Packages

No packages published

Languages