From 9e6a2ccf4d55e9283230786d48587211fa4c74ee Mon Sep 17 00:00:00 2001 From: Wizjany Date: Mon, 26 Sep 2011 00:09:21 -0400 Subject: [PATCH] Nicer wiki perms table. --- .../worldedit/dev/DocumentationPrinter.java | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldedit/dev/DocumentationPrinter.java b/src/main/java/com/sk89q/worldedit/dev/DocumentationPrinter.java index 2caec2bd3..6b57b21c6 100644 --- a/src/main/java/com/sk89q/worldedit/dev/DocumentationPrinter.java +++ b/src/main/java/com/sk89q/worldedit/dev/DocumentationPrinter.java @@ -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("
"); + 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)) { NestedCommand nested = method.getAnnotation(NestedCommand.class);