Fixed text output in Achi GUI for completed
This commit is contained in:
parent
3eae26ef80
commit
ab29a5fa29
@ -71,7 +71,7 @@ public class AchievementPage extends ShopPageBase<AchievementManager, Achievemen
|
||||
|
||||
{
|
||||
Material material = hasUnlocked ? Material.EMERALD : Material.INK_SACK;
|
||||
String itemName = hasUnlocked ? C.cGreen : C.cRed + achievement.getName();
|
||||
String itemName = (hasUnlocked ? C.cGreen : C.cRed) + achievement.getName();
|
||||
|
||||
if (!singleLevel)
|
||||
itemName += ChatColor.WHITE + " Level " + data.getLevel() + "/" + achievement.getMaxLevel();
|
||||
@ -95,6 +95,12 @@ public class AchievementPage extends ShopPageBase<AchievementManager, Achievemen
|
||||
lore.add(" ");
|
||||
lore.add(C.cYellow + "Reward: " + C.cGreen + achievement.getGemReward() + " Gems");
|
||||
}
|
||||
|
||||
if (hasUnlocked && data.getLevel() == achievement.getMaxLevel())
|
||||
{
|
||||
lore.add(" ");
|
||||
lore.add(C.cAqua + "Complete!");
|
||||
}
|
||||
|
||||
|
||||
AddItem(currentIndex, new ShopItem(material, (byte) (hasUnlocked ? 0 : 8), itemName, lore.toArray(new String[0]), 1, false, false));
|
||||
|
@ -126,7 +126,7 @@ public class GameAchievementManager implements Listener
|
||||
}
|
||||
else
|
||||
{
|
||||
//Single Level
|
||||
//Single Level
|
||||
if (type.getMaxLevel() == 1)
|
||||
{
|
||||
UtilPlayer.message(player, nameLevel + " " + progress +
|
||||
|
Loading…
Reference in New Issue
Block a user