mirror of https://github.com/MilkBowl/Vault.git
added version check to P3 when re-enabling to prevent bridge plugins
from registering as P3.
This commit is contained in:
parent
d6499eb532
commit
7c2e3a0c55
|
@ -93,7 +93,7 @@ public class Permission_Permissions3 extends Permission {
|
|||
Plugin perms = plugin.getServer().getPluginManager().getPlugin("Permissions");
|
||||
|
||||
if (perms != null) {
|
||||
if (perms.isEnabled()) {
|
||||
if (perms.isEnabled() && perms.getDescription().getVersion().startsWith("3")) {
|
||||
permission.permission = (Permissions) perms;
|
||||
log.info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), permission.name));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue