Bump minimessage, fix empty string used for concatenation

This commit is contained in:
William 2023-04-17 16:06:57 +01:00
parent c6603da50a
commit 1e3f163f2d
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ dependencies {
compileOnly 'io.github.miniplaceholders:miniplaceholders-api:2.0.0'
compileOnly 'net.william278:PAPIProxyBridge:1.0'
compileOnly 'org.projectlombok:lombok:1.18.26'
compileOnly 'net.kyori:adventure-text-minimessage:4.13.0'
compileOnly 'net.kyori:adventure-text-minimessage:4.13.1'
implementation 'org.apache.commons:commons-text:1.10.0'
implementation 'net.william278:Annotaml:2.0.1'

View File

@ -61,6 +61,6 @@ public class Role implements Comparable<Role> {
@NotNull
protected String getWeightString(int highestWeight) {
return String.format("%0" + (highestWeight + "").length() + "d", highestWeight - weight);
return String.format("%0" + Integer.toString(highestWeight).length() + "d", highestWeight - weight);
}
}