mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-11 20:13:55 +00:00
Removed permissions from plugin.yml for compatibility and cleaned up a bit more.
This commit is contained in:
@ -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
|
||||
|
@ -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, "'"));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user