From c424f8fc2690fb220ef0dc25fb0545e0fc076ce1 Mon Sep 17 00:00:00 2001 From: HappyPikachu Date: Sun, 27 Aug 2017 16:09:20 -0400 Subject: [PATCH] Show redo tag in GUI, per #92 --- pom.xml | 2 +- src/main/java/me/blackvein/quests/Quester.java | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 3b6bf7370..250e78382 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ me.blackvein.quests quests - 3.0.3 + 3.0.4 quests https://github.com/FlyingPikachu/Quests/ jar diff --git a/src/main/java/me/blackvein/quests/Quester.java b/src/main/java/me/blackvein/quests/Quester.java index ab70dd0f8..2bb4aac19 100644 --- a/src/main/java/me/blackvein/quests/Quester.java +++ b/src/main/java/me/blackvein/quests/Quester.java @@ -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 lines = new LinkedList(); String desc = quests.get(i).description;