From e8512347235f5766180f310585e2de4fcc58f91e Mon Sep 17 00:00:00 2001 From: powercas_gamer <40437205+powercasgamer@users.noreply.github.com> Date: Thu, 19 Nov 2020 00:52:26 +0100 Subject: [PATCH] Remove debug command & add more usages to commands (#2725) --- bukkit/src/main/resources/luckperms.commodore | 1 - .../common/command/access/CommandPermission.java | 1 - .../lucko/luckperms/common/command/spec/CommandSpec.java | 8 +++++--- common/src/main/resources/luckperms_en.properties | 4 +++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/bukkit/src/main/resources/luckperms.commodore b/bukkit/src/main/resources/luckperms.commodore index 3f4fed2bc..7e4626141 100644 --- a/bukkit/src/main/resources/luckperms.commodore +++ b/bukkit/src/main/resources/luckperms.commodore @@ -6,7 +6,6 @@ luckperms { groups; users; } - debug; verbose { off; on { diff --git a/common/src/main/java/me/lucko/luckperms/common/command/access/CommandPermission.java b/common/src/main/java/me/lucko/luckperms/common/command/access/CommandPermission.java index 087caab49..8bcec25b1 100644 --- a/common/src/main/java/me/lucko/luckperms/common/command/access/CommandPermission.java +++ b/common/src/main/java/me/lucko/luckperms/common/command/access/CommandPermission.java @@ -35,7 +35,6 @@ public enum CommandPermission { SYNC("sync", Type.NONE), INFO("info", Type.NONE), EDITOR("editor", Type.NONE), - DEBUG("debug", Type.NONE), VERBOSE("verbose", Type.NONE), VERBOSE_COMMAND_OTHERS("verbose.command.others", Type.NONE), TREE("tree", Type.NONE), diff --git a/common/src/main/java/me/lucko/luckperms/common/command/spec/CommandSpec.java b/common/src/main/java/me/lucko/luckperms/common/command/spec/CommandSpec.java index 7a965afa9..532095af6 100644 --- a/common/src/main/java/me/lucko/luckperms/common/command/spec/CommandSpec.java +++ b/common/src/main/java/me/lucko/luckperms/common/command/spec/CommandSpec.java @@ -49,7 +49,6 @@ public enum CommandSpec { arg("type", false), arg("filter", false) ), - DEBUG("/%s debug"), VERBOSE("/%s verbose [filter]", arg("action", "on|record|off|upload|command", true), arg("filter", false), @@ -70,11 +69,14 @@ public enum CommandSpec { NETWORK_SYNC("/%s networksync"), IMPORT("/%s import ", arg("file", true), - arg("replace", "--replace", false) + arg("replace", "--replace", false), + arg("upload", "--upload", false) ), EXPORT("/%s export ", arg("file", true), - arg("without-users", "--without-users", false) + arg("without-users", "--without-users", false), + arg("without-groups", "--without-groups", false), + arg("upload", "--upload", false) ), RELOAD_CONFIG("/%s reloadconfig"), BULK_UPDATE("/%s bulkupdate", diff --git a/common/src/main/resources/luckperms_en.properties b/common/src/main/resources/luckperms_en.properties index 3ab6f10f2..d5600daec 100644 --- a/common/src/main/resources/luckperms_en.properties +++ b/common/src/main/resources/luckperms_en.properties @@ -352,7 +352,6 @@ luckperms.usage.info.description=Prints general information about the active plu luckperms.usage.editor.description=Creates a new web editor session luckperms.usage.editor.argument.type=the types to load into the editor. (''all'', ''users'' or ''groups'') luckperms.usage.editor.argument.filter=permission to filter user entries by -luckperms.usage.debug.description=Produces a set of internal debugging output luckperms.usage.verbose.description=Controls the plugins verbose permission check monitoring system. luckperms.usage.verbose.argument.action=whether to enable/disable logging, or to upload the logged output luckperms.usage.verbose.argument.filter=the filter to match entries against @@ -370,9 +369,12 @@ luckperms.usage.network-sync.description=Sync changes with the storage and reque luckperms.usage.import.description=Imports data from a (previously created) export file luckperms.usage.import.argument.file=the file to import from luckperms.usage.import.argument.replace=replace existing data instead of merging +luckperms.usage.import.argument.upload=upload the data from a previous export luckperms.usage.export.description=Exports all permissions data to an ''export'' file. Can be re-imported at a later time. luckperms.usage.export.argument.file=the file to export to luckperms.usage.export.argument.without-users=exclude users from the export +luckperms.usage.export.argument.without-groups=exclude groups from the export +luckperms.usage.export.argument.upload=Upload all permission data to the webeditor. Can be re-imported at a later time. luckperms.usage.reload-config.description=Reload some of the config options luckperms.usage.bulk-update.description=Execute bulk change queries on all data luckperms.usage.bulk-update.argument.data-type=the type of data being changed. (''all'', ''users'' or ''groups'')