Xperms v2.0 support (updated)

updated support for Xperms v2.0 (removes isEnabled() check in listeners)
This commit is contained in:
Sebastien Carriere 2013-03-19 09:57:06 -04:00
parent 8319625977
commit 2e7f2b0e35

View File

@ -72,7 +72,6 @@ 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));
@ -81,7 +80,6 @@ public class Permission_Xperms extends Permission {
// 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));
} }