Class Kit
java.lang.Object
com.sk89q.commandbook.component.kits.Kit
public class Kit
extends java.lang.Object
Specifies the kit.
-
Constructor Summary
Constructors Constructor Description Kit() -
Method Summary
Modifier and Type Method Description voidaddItem(org.bukkit.inventory.ItemStack item)Add an item to the kit.booleandistribute(org.bukkit.entity.Player player)Distribute the kit to a player.voidflush()Get rid of old distribution records.longgetCoolDown()Get the cooldown time in milliseconds.voidsetCoolDown(long coolDown)Set the cooldown time in milliseconds.
-
Constructor Details
-
Kit
public Kit()
-
-
Method Details
-
getCoolDown
public long getCoolDown()Get the cooldown time in milliseconds.- Returns:
- The time of cooldown
-
setCoolDown
public void setCoolDown(long coolDown)Set the cooldown time in milliseconds.- Parameters:
coolDown- The time to set the cooldown to
-
addItem
public void addItem(org.bukkit.inventory.ItemStack item)Add an item to the kit.- Parameters:
item- The item to add
-
distribute
public boolean distribute(org.bukkit.entity.Player player)Distribute the kit to a player.- Parameters:
player- The player to distribute to- Returns:
- false if it has been too soon
-
flush
public void flush()Get rid of old distribution records.
-