Interface Level
public interface Level
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addXp
(org.bukkit.entity.Player player, int xp, PlayerXpGainEvent.XpSource source) Add some xp to target player.int
getCurrentXp
(org.bukkit.entity.Player p) getCurrentXpFormatted
(org.bukkit.entity.Player p) getLevel
(org.bukkit.entity.Player p) int
getPlayerLevel
(org.bukkit.entity.Player p) getProgressBar
(org.bukkit.entity.Player p) int
getRequiredXp
(org.bukkit.entity.Player p) getRequiredXpFormatted
(org.bukkit.entity.Player p) Get required xp as string.void
setLevel
(org.bukkit.entity.Player player, int level) Set player level.void
setXp
(org.bukkit.entity.Player player, int currentXp) Set player xp.
-
Method Details
-
getLevel
- Returns:
- current player level formatted as string.
-
getPlayerLevel
int getPlayerLevel(org.bukkit.entity.Player p) - Returns:
- current player level as number.
-
getRequiredXpFormatted
Get required xp as string. 2000 - 2k- Returns:
- required xp for next level.
-
getProgressBar
- Returns:
- current progress bar.
-
getCurrentXp
int getCurrentXp(org.bukkit.entity.Player p) - Returns:
- current xp.
-
getCurrentXpFormatted
- Returns:
- current xp formatted.
-
getRequiredXp
int getRequiredXp(org.bukkit.entity.Player p) - Returns:
- required xp
-
addXp
Add some xp to target player. -
setXp
void setXp(org.bukkit.entity.Player player, int currentXp) Set player xp. -
setLevel
void setLevel(org.bukkit.entity.Player player, int level) Set player level.
-