mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-15 15:28:36 +01:00
Remove the 'command' from the permission check
This commit is contained in:
parent
07bcf29862
commit
a34f8e1e7e
@ -47,7 +47,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor {
|
||||
case FISHING_HOOK:
|
||||
case DROPPED_ITEM:
|
||||
ArrayList<String> returns = new ArrayList<String>();
|
||||
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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user