Hello again! I do not know how no one really tried to use cooldowns for a year. I had the implementation, but there was no way to actually set the cooldown with the configs. I do not know which side should I be surprised, you or me LMAO
PlaceholderAPI Implementation
Now you can get the remaining cooldown of an potion for the person. I do not know if you need more than this, but if you do need, please let me know.
%aetherseeds_cooldown_potionid%: Gets the cooldown in
seconds for specific potion on for whoever player that executes the placeholder.
Cooldowns
Still a mystery to me how i forgot this. Anyways, newer versions should add a new line the messages.yml file once you start the server with updated version.
messages.yml:
Code (YAML):
StillInCooldown
:
"You are still in cooldown! Remaining seconds: %time%"
You can add cooldown by directly adding cooldown line below deleteBottle.
Example:
Code (YAML):
potions
:
# Drinkable potion example
# potion id. Needs to be unique.
drink:
displayName
:
"&cDrink"
lore
:
-
"&5Drink potion attempt"
# Will potion be splash or drinkable?
isSplash
: false
# If it is drinkable, will it delete the bottle?
deleteBottle
: true
# Cooldown in seconds.
cooldown
: 10
data
:
# Potion type. Things like Speed, Strength etc...
# Do not put prefixes like STRONG, LONG etc. Just put the plain old potion type and configure level/time below.
# List: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionType.html
potionType
:
"STRENGTH"
# This option is needed if you need to apply original potion effect.
# For example if potion type is strength, strength effect will be applied with the commands.
originalEffect
: false
# If you want to extend the potion time same as brewing, you can use this option.
extended
: false
# If you want to upgrade the potion same as brewing (Level 2), you can use this option.
upgraded
: false
particle
:
# Particle system.
# List: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html
enabled
: false
type
:
""
# Time in seconds.
time
: 200
# Particle amount per second. You have to try and test this setting.
amount
: 20
commands
:
# If it is splash, you can remove this line.
drinkingCommands
:
-
"msg %player% ae"
# If it is drinkable, you can remove this line.
splashCommands
:
-
""
afterEffect
:
# After Effect feature.
enabled
: true
# Time in seconds.
time
: 5
commands
:
-
"give %player% diamond 5"
The version is still unknown if it supports 1.21 fully (i could not test), so use it carefully if you use it on 1.21. Thank you.