geforkt von Mirrors/FastAsyncWorldEdit
Fixed a bad plugin.yml.
Dieser Commit ist enthalten in:
Ursprung
8dbd9645f9
Commit
6434c04ce4
@ -101,7 +101,7 @@ commands:
|
|||||||
/faces:
|
/faces:
|
||||||
description: Build the walls, ceiling, and roof of a selection
|
description: Build the walls, ceiling, and roof of a selection
|
||||||
usage: /<command> <block>
|
usage: /<command> <block>
|
||||||
aliases: /outline
|
aliases: ['/outline']
|
||||||
/smooth:
|
/smooth:
|
||||||
description: Smooth the elevation in the selection
|
description: Smooth the elevation in the selection
|
||||||
usage: /<command> [iterations]
|
usage: /<command> [iterations]
|
||||||
@ -174,7 +174,7 @@ commands:
|
|||||||
/:
|
/:
|
||||||
description: Toggle the super pickaxe pickaxe function
|
description: Toggle the super pickaxe pickaxe function
|
||||||
usage: /<command>
|
usage: /<command>
|
||||||
aliases: ,
|
aliases: [',']
|
||||||
area:
|
area:
|
||||||
description: Enable the area super pickaxe pickaxe mode
|
description: Enable the area super pickaxe pickaxe mode
|
||||||
usage: /<command> <radius>
|
usage: /<command> <radius>
|
||||||
@ -238,7 +238,7 @@ commands:
|
|||||||
ex:
|
ex:
|
||||||
description: Extinguish nearby fire
|
description: Extinguish nearby fire
|
||||||
usage: /<command> [radius]
|
usage: /<command> [radius]
|
||||||
aliases: ext, extinguish
|
aliases: ['ext', 'extinguish']
|
||||||
butcher:
|
butcher:
|
||||||
description: Kill all or nearby mobs
|
description: Kill all or nearby mobs
|
||||||
usage: /<command> [radius]
|
usage: /<command> [radius]
|
||||||
|
@ -59,6 +59,29 @@ public class StringUtil {
|
|||||||
return buffer.toString();
|
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.
|
* Join an array of strings into a string.
|
||||||
*
|
*
|
||||||
|
@ -149,8 +149,9 @@ public class DocumentationPrinter {
|
|||||||
+ (cmd.flags().length() > 0 ? "[-" + cmd.flags() + "] " : "")
|
+ (cmd.flags().length() > 0 ? "[-" + cmd.flags() + "] " : "")
|
||||||
+ cmd.usage());
|
+ cmd.usage());
|
||||||
if (cmd.aliases().length > 1) {
|
if (cmd.aliases().length > 1) {
|
||||||
stream.println(" aliases: "
|
stream.println(" aliases: ["
|
||||||
+ StringUtil.joinString(cmd.aliases(), ", ", 1));
|
+ StringUtil.joinQuotedString(cmd.aliases(), ", ", 1, "'")
|
||||||
|
+ "]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren