mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Nicer wiki perms table.
This commit is contained in:
parent
903abc80a4
commit
9e6a2ccf4d
@ -137,8 +137,31 @@ public class DocumentationPrinter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stream.println();
|
stream.print(" || ");
|
||||||
|
|
||||||
|
boolean firstAlias = true;
|
||||||
|
if (cmd.aliases().length != 0) {
|
||||||
|
for (String alias : cmd.aliases()) {
|
||||||
|
if (!firstAlias) stream.print("<br />");
|
||||||
|
stream.print(prefix + alias);
|
||||||
|
firstAlias = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stream.print(" || ");
|
||||||
|
|
||||||
|
if (cmd.flags() != null && !cmd.flags().equals("")) {
|
||||||
|
stream.print(cmd.flags());
|
||||||
|
}
|
||||||
|
|
||||||
|
stream.print(" || ");
|
||||||
|
|
||||||
|
if (cmd.desc() != null && !cmd.desc().equals("")) {
|
||||||
|
stream.print(cmd.desc());
|
||||||
|
}
|
||||||
|
|
||||||
|
stream.println();
|
||||||
|
|
||||||
if (method.isAnnotationPresent(NestedCommand.class)) {
|
if (method.isAnnotationPresent(NestedCommand.class)) {
|
||||||
NestedCommand nested =
|
NestedCommand nested =
|
||||||
method.getAnnotation(NestedCommand.class);
|
method.getAnnotation(NestedCommand.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user