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> <groupId>me.blackvein.quests</groupId>
<artifactId>quests</artifactId> <artifactId>quests</artifactId>
<version>3.0.3</version> <version>3.0.4</version>
<name>quests</name> <name>quests</name>
<url>https://github.com/FlyingPikachu/Quests/</url> <url>https://github.com/FlyingPikachu/Quests/</url>
<packaging>jar</packaging> <packaging>jar</packaging>

View File

@ -2502,7 +2502,12 @@ public class Quester {
if (quests.get(i).guiDisplay != null) { if (quests.get(i).guiDisplay != null) {
ItemStack display = quests.get(i).guiDisplay; ItemStack display = quests.get(i).guiDisplay;
ItemMeta meta = display.getItemMeta(); ItemMeta meta = display.getItemMeta();
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)); meta.setDisplayName(ChatColor.DARK_PURPLE + Quests.parseString(quests.get(i).getName(), npc));
}
if (!meta.hasLore()) { if (!meta.hasLore()) {
LinkedList<String> lines = new LinkedList<String>(); LinkedList<String> lines = new LinkedList<String>();
String desc = quests.get(i).description; String desc = quests.get(i).description;