From f9efa1578158c24dde4a4f46e199f7a9cc99e3eb Mon Sep 17 00:00:00 2001 From: Luck Date: Wed, 20 Sep 2017 20:31:24 +0100 Subject: [PATCH] Re-add 'list' as an alias of 'permission info' - reverts #461, closes #473 --- .../me/lucko/luckperms/common/commands/CommandManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/CommandManager.java b/common/src/main/java/me/lucko/luckperms/common/commands/CommandManager.java index 856add8fd..e42720b34 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/CommandManager.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/CommandManager.java @@ -350,6 +350,7 @@ public class CommandManager { break; case "i": case "about": + case "list": args.remove(2); args.add(2, "info"); break; @@ -448,7 +449,7 @@ public class CommandManager { boolean lazyInfo = ( args.size() >= 4 && (rewriteLastArgument || args.size() >= 5) && (args.get(2).equalsIgnoreCase("permission") || args.get(2).equalsIgnoreCase("parent") || args.get(2).equalsIgnoreCase("meta")) && - (args.get(3).equalsIgnoreCase("i") || args.get(3).equalsIgnoreCase("about")) + (args.get(3).equalsIgnoreCase("i") || args.get(3).equalsIgnoreCase("about") || args.get(3).equalsIgnoreCase("list")) ); if (lazyInfo) {