geforkt von Mirrors/HeadDB
Remove array casting and use lists
Dieser Commit ist enthalten in:
Ursprung
88b8fcce0c
Commit
267bb78cf3
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>tsp.headdb</groupId>
|
<groupId>tsp.headdb</groupId>
|
||||||
<artifactId>HeadDB</artifactId>
|
<artifactId>HeadDB</artifactId>
|
||||||
<version>2.3</version>
|
<version>2.3.1</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>HeadDB</name>
|
<name>HeadDB</name>
|
||||||
|
@ -53,7 +53,7 @@ public class Head {
|
|||||||
}
|
}
|
||||||
meta.setLore(Arrays.asList(
|
meta.setLore(Arrays.asList(
|
||||||
Utils.colorize("&cID: " + id),
|
Utils.colorize("&cID: " + id),
|
||||||
Utils.colorize("&e" + buildTagLore((String[]) tags.toArray())),
|
Utils.colorize("&e" + buildTagLore(tags)),
|
||||||
"",
|
"",
|
||||||
Utils.colorize("&8Right-Click to add/remove from favorites.")
|
Utils.colorize("&8Right-Click to add/remove from favorites.")
|
||||||
));
|
));
|
||||||
@ -116,11 +116,11 @@ public class Head {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String buildTagLore(String... tags) {
|
private String buildTagLore(List<String> tags) {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
for (int i = 0; i < tags.length; i++) {
|
for (int i = 0; i < tags.size(); i++) {
|
||||||
builder.append(tags[i]);
|
builder.append(tags.get(i));
|
||||||
if (i != tags.length - 1) {
|
if (i != tags.size() - 1) {
|
||||||
builder.append(",");
|
builder.append(",");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren