mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-16 13:53:55 +00:00
Fixed a bad plugin.yml.
This commit is contained in:
@ -59,6 +59,29 @@ public class StringUtil {
|
||||
return buffer.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Join an array of strings into a string.
|
||||
*
|
||||
* @param str
|
||||
* @param delimiter
|
||||
* @param initialIndex
|
||||
* @return
|
||||
*/
|
||||
public static String joinQuotedString(String[] str, String delimiter,
|
||||
int initialIndex, String quote) {
|
||||
if (str.length == 0) {
|
||||
return "";
|
||||
}
|
||||
StringBuilder buffer = new StringBuilder();
|
||||
buffer.append(quote);
|
||||
buffer.append(str[initialIndex]);
|
||||
buffer.append(quote);
|
||||
for (int i = initialIndex + 1; i < str.length; i++) {
|
||||
buffer.append(delimiter).append(quote).append(str[i]).append(quote);
|
||||
}
|
||||
return buffer.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Join an array of strings into a string.
|
||||
*
|
||||
|
@ -149,8 +149,9 @@ public class DocumentationPrinter {
|
||||
+ (cmd.flags().length() > 0 ? "[-" + cmd.flags() + "] " : "")
|
||||
+ cmd.usage());
|
||||
if (cmd.aliases().length > 1) {
|
||||
stream.println(" aliases: "
|
||||
+ StringUtil.joinString(cmd.aliases(), ", ", 1));
|
||||
stream.println(" aliases: ["
|
||||
+ StringUtil.joinQuotedString(cmd.aliases(), ", ", 1, "'")
|
||||
+ "]");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user