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
    void addItem​(org.bukkit.inventory.ItemStack item)
    Add an item to the kit.
    boolean distribute​(org.bukkit.entity.Player player)
    Distribute the kit to a player.
    void flush()
    Get rid of old distribution records.
    long getCoolDown()
    Get the cooldown time in milliseconds.
    void setCoolDown​(long coolDown)
    Set the cooldown time in milliseconds.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.