mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-08 09:42:56 +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];
|
String key = valid.split("\\.")[1];
|
||||||
|
|
||||||
if (!key.equals("*") && !key.equalsIgnoreCase(commandName)){
|
if (!key.equals("*") && !key.equalsIgnoreCase(commandName)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -409,12 +409,16 @@ public class DisguisePermissions {
|
|||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
} else if (permissionName.equals("custom")) {
|
} else if (permissionName.equals("custom")) {
|
||||||
if (disguiseType.isMisc()) {
|
if (disguisePerm.isCustomDisguise()) {
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
} else if (permissionName.equals("*")) {
|
} else if (permissionName.equals("vanilla")) {
|
||||||
|
if (!disguisePerm.isCustomDisguise()) {
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
|
} else if (permissionName.equals("*")) {
|
||||||
|
return 5;
|
||||||
|
}
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user