mirror of https://github.com/MilkBowl/Vault.git
don't hook PEX if it's less than 1.16
This commit is contained in:
parent
72f2830e46
commit
a4a6d51c36
Binary file not shown.
|
@ -55,6 +55,14 @@ public class Permission_PermissionsEx extends Permission {
|
|||
if (permission == null) {
|
||||
Plugin perms = plugin.getServer().getPluginManager().getPlugin("PermissionsEx");
|
||||
if (perms != null) {
|
||||
try {
|
||||
if (Double.valueOf(perms.getDescription().getVersion()) < 1.16) {
|
||||
log.info(String.format("[%s][Permission] %s below 1.16 is not compatible with Vault! Falling back to SuperPerms only mode. PLEASE UPDATE!", plugin.getDescription().getName(), name));
|
||||
return;
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
// Do nothing
|
||||
}
|
||||
if (perms.isEnabled()) {
|
||||
permission = (PermissionsEx) perms;
|
||||
log.info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), name));
|
||||
|
|
Loading…
Reference in New Issue