mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-29 14:16:09 +01:00
Show redo tag in GUI, per #92
This commit is contained in:
parent
b032a32f07
commit
c424f8fc26
2
pom.xml
2
pom.xml
@ -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>
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user