mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Rename verbose paste to verbose upload
This commit is contained in:
parent
6dba778e60
commit
2aabc9902f
@ -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();
|
||||
|
@ -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")
|
||||
)
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user