Rename verbose paste to verbose upload

This commit is contained in:
Luck 2018-03-31 22:09:58 +01:00
parent 6dba778e60
commit 2aabc9902f
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
2 changed files with 6 additions and 6 deletions

View File

@ -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<String> tabComplete(LuckPermsPlugin plugin, Sender sender, List<String> 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();

View File

@ -55,9 +55,9 @@ public enum CommandSpec {
)
),
DEBUG("Produce debugging output", "/%s debug"),
VERBOSE("Manage verbose permission checking", "/%s verbose <on|record|off|paste> [filter]",
VERBOSE("Manage verbose permission checking", "/%s verbose <on|record|off|upload> [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")
)
),