public class LCCooldown extends Object implements LCPacketWrapper<LCPacketCooldown>
| Constructor and Description |
|---|
LCCooldown(String name,
int seconds,
org.bukkit.Material item)
Simply creates a LCCooldown with seconds instead of milliseconds.
|
LCCooldown(String name,
int time,
TimeUnit unit,
org.bukkit.Material item)
Simply creates a LCCooldown with a variable amount of time
|
LCCooldown(String name,
long millis,
org.bukkit.Material itemId)
Used to create a persisting cooldown that can be sent to many players.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear(org.bukkit.entity.Player player)
Clear the cooldown from a player before it naturally expires.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPacket, send, sendpublic LCCooldown(String name, long millis, org.bukkit.Material itemId)
name - A unique name that is not nullmillis - The duration for the cooldown in milliseconds, that is greater (or equal to reset) to 0.itemId - The icon that will be displayed in Lunar Client.public LCCooldown(String name, int seconds, org.bukkit.Material item)
name - A unique name that is not nullseconds - the duration for the cooldown in seconds, that is greater (or equal to reset) to 0.item - The icon that will be displayed in Lunar Client.public LCCooldown(String name, int time, TimeUnit unit, org.bukkit.Material item)
name - A unique name that is not nulltime - A duration greater than 0 milliseconds.unit - A unit of measurement to put the cooldown initem - The icon that will be displayed in Lunar Client.Copyright © 2022. All rights reserved.