mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-27 04:55:33 +01:00
Xperms v2.0 support (updated)
updated support for Xperms v2.0 (removes isEnabled() check in listeners)
This commit is contained in:
parent
8319625977
commit
2e7f2b0e35
@ -72,7 +72,6 @@ public class Permission_Xperms extends Permission {
|
||||
if(permission == null){
|
||||
Plugin perms = plugin.getServer().getPluginManager().getPlugin("Xperms");
|
||||
if(perms != null){
|
||||
if(perms.isEnabled()){
|
||||
try{
|
||||
if(Double.valueOf(perms.getDescription().getVersion()) < 1.1){
|
||||
log.info(String.format("[%s] [Permission] %s Current version is not compatible with vault! Please Update!", plugin.getDescription().getName(), name));
|
||||
@ -81,7 +80,6 @@ public class Permission_Xperms extends Permission {
|
||||
// version is first release, numbered 1.0.0
|
||||
log.info(String.format("[%s] [Permission] %s Current version is not compatibe with vault! Please Update!", plugin.getDescription().getName(), name);
|
||||
}
|
||||
}
|
||||
permission.permission = (Main) perms;
|
||||
log.info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), name));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user