Class AchievementManager
java.lang.Object
com.zetaplugins.cookieclickerz.util.achievements.AchievementManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CookieClickerZbooleanprogressAchievement(Player player, Achievement achievement, int progressAmount) Progress an achievement by a certain amountbooleanprogressCookiesAchievement(Player player, Achievement achievement, BigInteger totalCookies) Progress a cookies achievementvoidsendAchievementMessage(Player player, AchievementType achievementType) Send an achievement message to a playerbooleansetAchievementProgress(Player player, Achievement achievement, int progressAmount) Set the progress of an achievement
-
Constructor Details
-
AchievementManager
-
-
Method Details
-
setAchievementProgress
Set the progress of an achievement- Parameters:
player- The player to set the achievement progress forachievement- The achievement to set the progress forprogressAmount- The amount to set the progress to- Returns:
- Whether the achievement was completed
-
progressAchievement
Progress an achievement by a certain amount- Parameters:
player- The player to progress the achievement forachievement- The achievement to progressprogressAmount- The amount to progress the achievement by- Returns:
- Whether the achievement was completed
-
progressCookiesAchievement
public boolean progressCookiesAchievement(Player player, Achievement achievement, BigInteger totalCookies) Progress a cookies achievement- Parameters:
player- The player to progress the achievement forachievement- The achievement to progresstotalCookies- The total cookies of the player- Returns:
- Whether the achievement was completed
-
sendAchievementMessage
Send an achievement message to a player- Parameters:
player- The player to send the message toachievementType- The achievement type to send the message for
-
getPlugin
-