Class KitUtil

java.lang.Object
net.lewmc.essence.utils.KitUtil

public class KitUtil extends Object
The Essence Kit utility.
  • Constructor Details

    • KitUtil

      public KitUtil(Essence plugin, org.bukkit.entity.Player player)
      Constructor for the KitUtil class.
      Parameters:
      plugin - Reference to the main Essence class.
      player - The player the class should reference.
  • Method Details

    • giveKit

      public int giveKit(String kit)
      Gives the user referenced in the constructor the kit specified.
      Parameters:
      kit - String - the kit to give the user.
      Returns:
      int - Result of operation. 0 = Successful, 1 = No Permission, 2 = Kit is missing.