public class Kit extends Object
| Constructor and Description |
|---|
Kit()
Deprecated.
DO NOT USE THIS
|
| Modifier and Type | Method and Description |
|---|---|
static Kit |
fromInstanceKit(wtf.nucker.kitpvpplus.objects.Kit kit)
Used for getting api kit instance from plugin instance kit
|
int |
getCooldown()
If there is no cooldown, it will return 0
|
List<String> |
getDescription() |
String |
getDisplayname() |
org.bukkit.Material |
getIcon() |
String |
getId() |
String |
getPermission()
If there is no permission, it will return null
|
int |
getPrice()
If it is free it will return 0
|
boolean |
isFree() |
void |
loadKit(org.bukkit.entity.Player player)
Used for loading a kit into a player's inventory
This only uses one player in the params.
|
void |
loadKit(org.bukkit.entity.Player receiver,
org.bukkit.entity.Player loader)
Used for loading the kit into a player's inventory
|
static wtf.nucker.kitpvpplus.objects.Kit |
toInstanceKit(Kit kit)
Used for getting a plugin instance of a kit from an api instance
|
public String getId()
public int getPrice()
Kit#isFree() which
returns weather the kit is free as a boolean objectpublic boolean isFree()
Kit#getPrice() to get the pricepublic int getCooldown()
public org.bukkit.Material getIcon()
public String getDisplayname()
public String getPermission()
public void loadKit(org.bukkit.entity.Player receiver,
org.bukkit.entity.Player loader)
receiver - the person receiving the items in the kitloader - the person giving the kitKit#loadKit(Player) to load a kit for a singular playerpublic void loadKit(org.bukkit.entity.Player player)
player - the player who is getting the kitKit#loadKit(Player, Player) is used in this method with the Player param being used
as the receiverpublic static Kit fromInstanceKit(wtf.nucker.kitpvpplus.objects.Kit kit)
kit - plugin instance kitpublic static wtf.nucker.kitpvpplus.objects.Kit toInstanceKit(Kit kit)
kit - the api instance of the kitCopyright © 2021. All rights reserved.