public class PlayerSkillConfigurator extends PlayerConfigurationUtils
Constructor and Description |
---|
PlayerSkillConfigurator() |
Modifier and Type | Method and Description |
---|---|
static int |
getAgility(org.bukkit.entity.Player player) |
static int |
getAgilityStatpoints(org.bukkit.entity.Player player) |
static java.lang.Integer |
getAxeSkill(org.bukkit.entity.Player player) |
static java.lang.Integer |
getAxeSkillMax(org.bukkit.entity.Player player) |
static java.lang.Integer |
getCraftingSkill(org.bukkit.entity.Player player) |
static int |
getHealth(org.bukkit.entity.Player player) |
static int |
getHealthStatpoints(org.bukkit.entity.Player player) |
static int |
getLuck(org.bukkit.entity.Player player) |
static int |
getLuckStatpoints(org.bukkit.entity.Player player) |
static int |
getMana(org.bukkit.entity.Player player) |
static int |
getManaStatpoints(org.bukkit.entity.Player player) |
static int |
getMasteryStatpoints(org.bukkit.entity.Player player,
int mastery) |
static java.lang.String |
getQuickSlotSkill(org.bukkit.entity.Player player,
int slot) |
static int |
getSpentStatpoints(org.bukkit.entity.Player player) |
static java.lang.Integer |
getStaffSkill(org.bukkit.entity.Player player) |
static java.lang.Integer |
getStaffSkillMax(org.bukkit.entity.Player player) |
static int |
getStrength(org.bukkit.entity.Player player) |
static float |
getStrengthFloat(org.bukkit.entity.Player player) |
static int |
getStrengthStatpoints(org.bukkit.entity.Player player) |
static java.lang.Integer |
getSwordSkill(org.bukkit.entity.Player player) |
static java.lang.Integer |
getSwordSkillMax(org.bukkit.entity.Player player) |
static java.lang.Integer |
getTamingSkill(org.bukkit.entity.Player player) |
static int |
getTotalStatpoints(org.bukkit.entity.Player player) |
static int |
getTrading(org.bukkit.entity.Player player) |
static float |
getTradingFloat(org.bukkit.entity.Player player) |
static int |
getTradingStatpoints(org.bukkit.entity.Player player) |
static int |
getUnusedStatpoints(org.bukkit.entity.Player player) |
static void |
increaseAgility(org.bukkit.entity.Player player)
Spents 1 statpoint and increases agility by 1%.
|
static void |
increaseAxeSkill(org.bukkit.entity.Player player)
Increases the level of the axe skill by 1, if posssible.
|
static void |
increaseCraftingSkill(org.bukkit.entity.Player player)
Increases the level of the crafting skill by 1.
|
static void |
increaseHealth(org.bukkit.entity.Player player)
Spents 1 statpoint and increases health by 5.
|
static void |
increaseLuck(org.bukkit.entity.Player player)
Spents 1 statpoint and increases luck by 10%.
|
static void |
increaseMana(org.bukkit.entity.Player player)
Spents 1 statpoint and increases mana by 1.
|
static void |
increaseMastery(org.bukkit.entity.Player player,
int mastery)
Spents 1 statpoint and increases the given mastery by 1.
|
static void |
increaseSpentStatpoints(org.bukkit.entity.Player player)
Increases the spent statpoints by 1.
|
static void |
increaseStaffSkill(org.bukkit.entity.Player player)
Increases the level of the staff skill by 1, if posssible.
|
static void |
increaseStrength(org.bukkit.entity.Player player)
Spents 1 statpoint and increases strength by 5%.
|
static void |
increaseSwordSkill(org.bukkit.entity.Player player)
Increases the level of the sword skill by 1, if posssible.
|
static void |
increaseTamingSkill(org.bukkit.entity.Player player,
int exp)
Increases the level of the taming skill by a given amount.
|
static void |
increaseTrading(org.bukkit.entity.Player player)
Spents 1 statpoint and increases trading by 10%.
|
static void |
setQuickSlotSkill(org.bukkit.entity.Player player,
int slot,
java.lang.String skill) |
playerConfigGetBoolean, playerConfigGetBoolean, playerConfigGetDouble, playerConfigGetInt, playerConfigGetInt, playerConfigGetItemStacks, playerConfigGetLocation, playerConfigGetLong, playerConfigGetLong, playerConfigGetString, playerConfigGetString, playerConfigGetStringList, playerConfigGetStringList, playerConfigSet, playerConfigSet
public static java.lang.String getQuickSlotSkill(org.bukkit.entity.Player player, int slot)
player
- The player that owns the config file.slot
- The id of the quick slot.public static void setQuickSlotSkill(org.bukkit.entity.Player player, int slot, java.lang.String skill)
player
- The player that owns the config file.slot
- The id of the quick slot.skill
- The name of the new skill in the quick slot.public static int getTotalStatpoints(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static int getSpentStatpoints(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static int getUnusedStatpoints(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void increaseSpentStatpoints(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static int getHealthStatpoints(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static int getHealth(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void increaseHealth(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static int getTradingStatpoints(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static int getTrading(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static float getTradingFloat(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void increaseTrading(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static int getLuckStatpoints(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static int getLuck(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void increaseLuck(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static int getManaStatpoints(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static int getMana(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void increaseMana(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static int getStrengthStatpoints(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static int getStrength(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static float getStrengthFloat(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void increaseStrength(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static int getAgilityStatpoints(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static int getAgility(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void increaseAgility(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static int getMasteryStatpoints(org.bukkit.entity.Player player, int mastery)
player
- The player that owns the config file.mastery
- The number of the mastery.public static void increaseMastery(org.bukkit.entity.Player player, int mastery)
player
- The player that owns the config file.mastery
- The number of the mastery.public static java.lang.Integer getCraftingSkill(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void increaseCraftingSkill(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static java.lang.Integer getTamingSkill(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void increaseTamingSkill(org.bukkit.entity.Player player, int exp)
player
- The player that owns the config file.exp
- The amount of experience to add to the skill.public static java.lang.Integer getSwordSkill(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static java.lang.Integer getSwordSkillMax(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void increaseSwordSkill(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static java.lang.Integer getAxeSkill(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static java.lang.Integer getAxeSkillMax(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void increaseAxeSkill(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static java.lang.Integer getStaffSkill(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static java.lang.Integer getStaffSkillMax(org.bukkit.entity.Player player)
player
- The player that owns the config file.public static void increaseStaffSkill(org.bukkit.entity.Player player)
player
- The player that owns the config file.