mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-30 06:23:29 +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,16 +72,14 @@ public class Permission_Xperms extends Permission {
|
|||||||
if(permission == null){
|
if(permission == null){
|
||||||
Plugin perms = plugin.getServer().getPluginManager().getPlugin("Xperms");
|
Plugin perms = plugin.getServer().getPluginManager().getPlugin("Xperms");
|
||||||
if(perms != null){
|
if(perms != null){
|
||||||
if(perms.isEnabled()){
|
try{
|
||||||
try{
|
if(Double.valueOf(perms.getDescription().getVersion()) < 1.1){
|
||||||
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));
|
||||||
log.info(String.format("[%s] [Permission] %s Current version is not compatible with vault! Please Update!", plugin.getDescription().getName(), name));
|
}
|
||||||
}
|
} catch(NumberFormatException e){
|
||||||
} catch(NumberFormatException e){
|
// version is first release, numbered 1.0.0
|
||||||
// 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);
|
||||||
log.info(String.format("[%s] [Permission] %s Current version is not compatibe with vault! Please Update!", plugin.getDescription().getName(), name);
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
permission.permission = (Main) perms;
|
permission.permission = (Main) perms;
|
||||||
log.info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), name));
|
log.info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), name));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user