diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/misc/VerboseCommand.java b/common/src/main/java/me/lucko/luckperms/common/commands/misc/VerboseCommand.java index 0a1ae4004..929f897e4 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/misc/VerboseCommand.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/misc/VerboseCommand.java @@ -105,10 +105,10 @@ public class VerboseCommand extends SingleCommand { return CommandResult.SUCCESS; } - if (mode.equals("off") || mode.equals("false") || mode.equals("paste")) { + if (mode.equals("off") || mode.equals("false") || mode.equals("paste") || mode.equals("upload")) { VerboseListener listener = plugin.getVerboseHandler().unregisterListener(sender.getUuid()); - if (mode.equals("paste")) { + if (mode.equals("paste") || mode.equals("upload")) { if (listener == null) { Message.VERBOSE_OFF.send(sender); } else { @@ -140,11 +140,11 @@ public class VerboseCommand extends SingleCommand { @Override public List tabComplete(LuckPermsPlugin plugin, Sender sender, List args) { if (args.isEmpty()) { - return ImmutableList.of("on", "record", "off", "paste"); + return ImmutableList.of("on", "record", "off", "upload"); } if (args.size() == 1) { - return Stream.of("on", "record", "off", "paste").filter(s -> s.toLowerCase().startsWith(args.get(0).toLowerCase())).collect(Collectors.toList()); + return Stream.of("on", "record", "off", "upload").filter(s -> s.toLowerCase().startsWith(args.get(0).toLowerCase())).collect(Collectors.toList()); } return Collections.emptyList(); diff --git a/common/src/main/java/me/lucko/luckperms/common/locale/command/CommandSpec.java b/common/src/main/java/me/lucko/luckperms/common/locale/command/CommandSpec.java index 3cfa7522e..dfc5ae699 100644 --- a/common/src/main/java/me/lucko/luckperms/common/locale/command/CommandSpec.java +++ b/common/src/main/java/me/lucko/luckperms/common/locale/command/CommandSpec.java @@ -55,9 +55,9 @@ public enum CommandSpec { ) ), DEBUG("Produce debugging output", "/%s debug"), - VERBOSE("Manage verbose permission checking", "/%s verbose [filter]", + VERBOSE("Manage verbose permission checking", "/%s verbose [filter]", Argument.list( - Argument.create("on|record|off|paste", true, "whether to enable/disable logging, or to paste the logged output"), + Argument.create("on|record|off|upload", true, "whether to enable/disable logging, or to upload the logged output"), Argument.create("filter", false, "the filter to match entries against") ) ),