mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-04 08:59:47 +01:00
Add 'custom' and 'vanilla' so you can exclude/include disguises by permission
This commit is contained in:
parent
262e1c3b6d
commit
548627f2ee
@ -260,7 +260,7 @@ public class DisguisePermissions {
|
||||
|
||||
String key = valid.split("\\.")[1];
|
||||
|
||||
if (!key.equals("*") && !key.equalsIgnoreCase(commandName)){
|
||||
if (!key.equals("*") && !key.equalsIgnoreCase(commandName)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -409,11 +409,15 @@ public class DisguisePermissions {
|
||||
return 3;
|
||||
}
|
||||
} else if (permissionName.equals("custom")) {
|
||||
if (disguiseType.isMisc()) {
|
||||
if (disguisePerm.isCustomDisguise()) {
|
||||
return 3;
|
||||
}
|
||||
} else if (permissionName.equals("vanilla")) {
|
||||
if (!disguisePerm.isCustomDisguise()) {
|
||||
return 4;
|
||||
}
|
||||
} else if (permissionName.equals("*")) {
|
||||
return 4;
|
||||
return 5;
|
||||
}
|
||||
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user