mirror of
https://github.com/PikaMug/Quests.git
synced 2024-09-29 15:37:27 +02:00
Possible workaround for #57. Bump version number
This commit is contained in:
parent
784dca4cb4
commit
12cdea0536
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>2.9.2</version>
|
<version>2.9.3</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>
|
||||||
|
@ -2515,7 +2515,12 @@ public class Quester {
|
|||||||
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;
|
||||||
|
if (desc == ChatColor.stripColor(quests.get(i).description)) {
|
||||||
lines = MiscUtil.makeLines(quests.get(i).description, " ", 40, ChatColor.DARK_GREEN);
|
lines = MiscUtil.makeLines(quests.get(i).description, " ", 40, ChatColor.DARK_GREEN);
|
||||||
|
} else {
|
||||||
|
lines = MiscUtil.makeLines(quests.get(i).description, " ", 40, null);
|
||||||
|
}
|
||||||
meta.setLore(lines);
|
meta.setLore(lines);
|
||||||
}
|
}
|
||||||
display.setItemMeta(meta);
|
display.setItemMeta(meta);
|
||||||
|
@ -97,7 +97,11 @@ public class MiscUtil {
|
|||||||
int currentLength = 0;
|
int currentLength = 0;
|
||||||
for (String piece : split) {
|
for (String piece : split) {
|
||||||
if ((currentLength + piece.length()) > (lineLength + 1)) {
|
if ((currentLength + piece.length()) > (lineLength + 1)) {
|
||||||
|
if (lineColor != null) {
|
||||||
toReturn.add(lineColor + line.replaceAll("^" + wordDelimiter, ""));
|
toReturn.add(lineColor + line.replaceAll("^" + wordDelimiter, ""));
|
||||||
|
} else {
|
||||||
|
toReturn.add(line.replaceAll("^" + wordDelimiter, ""));
|
||||||
|
}
|
||||||
line = piece + wordDelimiter;
|
line = piece + wordDelimiter;
|
||||||
currentLength = piece.length() + 1;
|
currentLength = piece.length() + 1;
|
||||||
} else {
|
} else {
|
||||||
@ -106,7 +110,11 @@ public class MiscUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (line.equals("") == false)
|
if (line.equals("") == false)
|
||||||
|
if (lineColor != null) {
|
||||||
toReturn.add(lineColor + line);
|
toReturn.add(lineColor + line);
|
||||||
|
} else {
|
||||||
|
toReturn.add(line);
|
||||||
|
}
|
||||||
return toReturn;
|
return toReturn;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user