public class AchievementTracker
extends java.lang.Object
| Constructor and Description |
|---|
AchievementTracker() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addProgress(org.bukkit.entity.Player player,
WauzAchievementType type,
double increment)
Adds progress to an achievement type and grants the fitting achievement when completed.
|
static void |
checkForAchievement(org.bukkit.entity.Player player,
WauzAchievementType type,
java.lang.String goal)
Checks if the player just completed a non generic achievement and awards it to them.
|
static java.util.List<java.lang.String> |
generateProgressLores(org.bukkit.entity.Player player,
WauzAchievementType type)
Generates a list of lores to display the achievement progress for a given player and type.
|
public static void checkForAchievement(org.bukkit.entity.Player player,
WauzAchievementType type,
java.lang.String goal)
player - The player who probably just completed an achievement.type - The non generic achievement type.goal - The goal to check for.public static void addProgress(org.bukkit.entity.Player player,
WauzAchievementType type,
double increment)
player - The player that owns the config file.type - The type of the generic achievement.increment - How much to add to the progress.public static java.util.List<java.lang.String> generateProgressLores(org.bukkit.entity.Player player,
WauzAchievementType type)
player - The player that owns the config file.type - The type of the generic achievement.