public class LunarClientAPICooldown extends Object
| Constructor and Description |
|---|
LunarClientAPICooldown() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCooldown(org.bukkit.entity.Player player,
String cooldownName) |
void |
registerCooldown(LCCooldown cooldown)
Used to register a persisting cooldown.
|
void |
sendCooldown(org.bukkit.entity.Player player,
String cooldownName)
Sends a cooldown to a Lunar Client player that has previously been registered.
|
void |
unregisterCooldown(LCCooldown cooldown)
Used to unregister a persisting cooldown.
|
public void registerCooldown(LCCooldown cooldown)
LCCooldown will be created for each task.
Create the LCCooldown once, register it and then send it to each player.cooldown - The cooldown to registerpublic void unregisterCooldown(LCCooldown cooldown)
cooldown - The cooldown to registerpublic void sendCooldown(org.bukkit.entity.Player player,
String cooldownName)
LCCooldown instance.player - The player to send a cooldown tocooldownName - The name of the LCCooldown that is sent.public void clearCooldown(org.bukkit.entity.Player player,
String cooldownName)
Copyright © 2022. All rights reserved.