mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 11:40:29 +00:00
Remove the 'command' from the permission check
This commit is contained in:
parent
07bcf29862
commit
a34f8e1e7e
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue