From a34f8e1e7e2777439e9c7264cbed616942516448 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 11 Jul 2014 11:25:55 +1200 Subject: [PATCH] Remove the 'command' from the permission check --- .../libraryaddict/disguise/utilities/BaseDisguiseCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java b/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java index cf052821..edfb4a18 100644 --- a/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java +++ b/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java @@ -47,7 +47,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor { case FISHING_HOOK: case DROPPED_ITEM: ArrayList returns = new ArrayList(); - String beginning = "libsdisguises.options." + getClass().getSimpleName().toLowerCase() + "."; + String beginning = "libsdisguises.options." + getClass().getSimpleName().toLowerCase().replace("command", "") + "."; for (PermissionAttachmentInfo permission : sender.getEffectivePermissions()) { String lowerPerm = permission.getPermission().toLowerCase(); if (lowerPerm.startsWith(beginning)) {