Show redo tag in GUI, per #92

This commit is contained in:
HappyPikachu 2017-08-27 16:09:20 -04:00
parent b032a32f07
commit c424f8fc26
2 changed files with 7 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<groupId>me.blackvein.quests</groupId>
<artifactId>quests</artifactId>
<version>3.0.3</version>
<version>3.0.4</version>
<name>quests</name>
<url>https://github.com/FlyingPikachu/Quests/</url>
<packaging>jar</packaging>

View File

@ -2502,7 +2502,12 @@ public class Quester {
if (quests.get(i).guiDisplay != null) {
ItemStack display = quests.get(i).guiDisplay;
ItemMeta meta = display.getItemMeta();
meta.setDisplayName(ChatColor.DARK_PURPLE + Quests.parseString(quests.get(i).getName(), npc));
if (completedQuests.contains(quests.get(i).name)) {
meta.setDisplayName(ChatColor.DARK_PURPLE + Quests.parseString(quests.get(i).getName()
+ " " + ChatColor.GREEN + Lang.get("completedTag"), npc));
} else {
meta.setDisplayName(ChatColor.DARK_PURPLE + Quests.parseString(quests.get(i).getName(), npc));
}
if (!meta.hasLore()) {
LinkedList<String> lines = new LinkedList<String>();
String desc = quests.get(i).description;