mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-03 15:08:10 +01: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>
|
||||
<artifactId>quests</artifactId>
|
||||
<version>2.9.2</version>
|
||||
<version>2.9.3</version>
|
||||
<name>quests</name>
|
||||
<url>https://github.com/FlyingPikachu/Quests/</url>
|
||||
<packaging>jar</packaging>
|
||||
|
@ -2515,7 +2515,12 @@ public class Quester {
|
||||
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;
|
||||
if (desc == ChatColor.stripColor(quests.get(i).description)) {
|
||||
lines = MiscUtil.makeLines(quests.get(i).description, " ", 40, ChatColor.DARK_GREEN);
|
||||
} else {
|
||||
lines = MiscUtil.makeLines(quests.get(i).description, " ", 40, null);
|
||||
}
|
||||
meta.setLore(lines);
|
||||
}
|
||||
display.setItemMeta(meta);
|
||||
|
@ -97,7 +97,11 @@ public class MiscUtil {
|
||||
int currentLength = 0;
|
||||
for (String piece : split) {
|
||||
if ((currentLength + piece.length()) > (lineLength + 1)) {
|
||||
if (lineColor != null) {
|
||||
toReturn.add(lineColor + line.replaceAll("^" + wordDelimiter, ""));
|
||||
} else {
|
||||
toReturn.add(line.replaceAll("^" + wordDelimiter, ""));
|
||||
}
|
||||
line = piece + wordDelimiter;
|
||||
currentLength = piece.length() + 1;
|
||||
} else {
|
||||
@ -106,7 +110,11 @@ public class MiscUtil {
|
||||
}
|
||||
}
|
||||
if (line.equals("") == false)
|
||||
if (lineColor != null) {
|
||||
toReturn.add(lineColor + line);
|
||||
} else {
|
||||
toReturn.add(line);
|
||||
}
|
||||
return toReturn;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user