Removed permissions from plugin.yml for compatibility and cleaned up a bit more.

This commit is contained in:
Wizjany
2011-09-18 01:29:12 -04:00
parent 3f369f104a
commit 709cae1995
3 changed files with 9 additions and 98 deletions

View File

@ -182,7 +182,7 @@ public class UtilityCommands {
@Command(
aliases = {"/removebelow", "removebelow"},
usage = "[size] [height] ",
usage = "[size] [height]",
desc = "Remove blocks below you.",
min = 0,
max = 2

View File

@ -186,18 +186,12 @@ public class DocumentationPrinter {
stream.println(" description: " + cmd.desc());
stream.println(" usage: /<command>"
+ (cmd.flags().length() > 0 ? " [-" + cmd.flags() + "]" : "")
+ " " + cmd.usage());
+ (cmd.usage().length() > 0 ? " " + cmd.usage() : ""));
if (cmd.aliases().length > 1) {
stream.println(" aliases: ["
+ StringUtil.joinQuotedString(cmd.aliases(), ", ", 1, "'")
+ "]");
}
if (!method.isAnnotationPresent(CommandPermissions.class)) {
continue;
}
CommandPermissions cmdPerms = method.getAnnotation(CommandPermissions.class);
stream.println(" permissions: "
+ StringUtil.joinQuotedString(cmdPerms.value(), ", ", 0, "'"));
}
}