- Tested Minecraft Versions:
- PyshiconCooldown API
How to use,
To use Cooldown API you need to understand some methods.
But first to use the API put this in your class:
the "cd" is optional, you can name it whatever you want.Code (Text):public Cooldown cd = new Cooldown();
And now here's the methods available:
Get player's cooldown.
Get if player is added to cooldownCode (Text):cd.getPlayer(player);
Add and Remove player from cooldownCode (Text):cd.containsPlayer(player);
Code (Text):cd.addPlayer(player);Run the timerCode (Text):cd.removePlayer(player);
Get time left from a player's cooldownCode (Text):cd.runTimer(player);
Code (Text):cd.getDaysLeft(player);Code (Text):cd.getHoursLeft(player);Code (Text):cd.getMinutesLeft(player);Supported version,Code (Text):cd.getSecondsLeft(player);