Allow auto-complete for 'p'

This commit is contained in:
libraryaddict 2017-06-12 09:42:03 +12:00
parent 9fa4ae73bf
commit 718cbb7b33

View file

@ -194,6 +194,9 @@ public class DisguiseParser {
return perm; return perm;
} }
if (name.equalsIgnoreCase("p"))
return getDisguisePerm("player");
return null; return null;
} }
@ -500,8 +503,6 @@ public class DisguiseParser {
if (customDisguise != null) { if (customDisguise != null) {
disguise = customDisguise.getValue().clone(); disguise = customDisguise.getValue().clone();
} else if (args[0].equalsIgnoreCase("p")) {
disguisePerm = new DisguisePerm(DisguiseType.PLAYER);
} }
if (disguisePerm == null) { if (disguisePerm == null) {