From 718cbb7b335363e6302dbbedbe9649e237a58bb4 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 12 Jun 2017 09:42:03 +1200 Subject: [PATCH] Allow auto-complete for 'p' --- src/me/libraryaddict/disguise/utilities/DisguiseParser.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/utilities/DisguiseParser.java b/src/me/libraryaddict/disguise/utilities/DisguiseParser.java index 2df4ca8f..68b0b279 100644 --- a/src/me/libraryaddict/disguise/utilities/DisguiseParser.java +++ b/src/me/libraryaddict/disguise/utilities/DisguiseParser.java @@ -194,6 +194,9 @@ public class DisguiseParser { return perm; } + if (name.equalsIgnoreCase("p")) + return getDisguisePerm("player"); + return null; } @@ -500,8 +503,6 @@ public class DisguiseParser { if (customDisguise != null) { disguise = customDisguise.getValue().clone(); - } else if (args[0].equalsIgnoreCase("p")) { - disguisePerm = new DisguisePerm(DisguiseType.PLAYER); } if (disguisePerm == null) {