From d1e162bb978d3374e7f44dcd4ad5079e3037c9bf Mon Sep 17 00:00:00 2001 From: riking Date: Sat, 14 Jun 2014 10:22:28 -0700 Subject: [PATCH] Restore single-star from 55f2eb6dca --- .../libraryaddict/disguise/utilities/BaseDisguiseCommand.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java b/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java index 8b38f1cd..12d259f5 100644 --- a/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java +++ b/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java @@ -53,6 +53,9 @@ public abstract class BaseDisguiseCommand implements CommandExecutor { perms.put(perm, permission.getValue()); } } + if (!perms.containsKey(permissionNode + "*") && sender.hasPermission(permissionNode + "*")) { + perms.put(permissionNode + "*", true); + } if (!perms.containsKey(permissionNode + "*.*") && sender.hasPermission(permissionNode + "*.*")) { perms.put(permissionNode + "*.*", true); }