Add 'custom' and 'vanilla' so you can exclude/include disguises by permission
This commit is contained in:
parent
262e1c3b6d
commit
548627f2ee
@ -409,12 +409,16 @@ public class DisguisePermissions {
|
||||
return 3;
|
||||
}
|
||||
} else if (permissionName.equals("custom")) {
|
||||
if (disguiseType.isMisc()) {
|
||||
if (disguisePerm.isCustomDisguise()) {
|
||||
return 3;
|
||||
}
|
||||
} else if (permissionName.equals("*")) {
|
||||
} else if (permissionName.equals("vanilla")) {
|
||||
if (!disguisePerm.isCustomDisguise()) {
|
||||
return 4;
|
||||
}
|
||||
} else if (permissionName.equals("*")) {
|
||||
return 5;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user