mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
Fix bug for /qs staff
Former-commit-id: 6fe36f470cb9acb897a4b15509f4982322d7ce5b
This commit is contained in:
1 parent
5708801b3c
commit
f871597760
1 file changed
+7
-4
@@ -105,11 +105,14 @@ public class Util {
|
||||
* @return str
|
||||
*/
|
||||
public static String array2String(@NotNull String[] strArray) {
|
||||
String concentration = strArray[0].concat(", "); // Init with zero index
|
||||
for (int i = 1; i < strArray.length - 2; i++) { // Loop from index 1 (in) until -1 (in)
|
||||
concentration = concentration.concat(strArray[i]).concat(", ");
|
||||
StringBuilder builder = new StringBuilder();
|
||||
for (int i = 0; i < strArray.length; i++) {
|
||||
builder.append(strArray[i]);
|
||||
if (i + 1 != strArray.length) {
|
||||
builder.append(", ");
|
||||
}
|
||||
}
|
||||
return concentration.concat(strArray[strArray.length - 1]); // Fin with end index
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user