diff --git a/src/net/milkbowl/vault/permission/plugins/Permission_Permissions3.java b/src/net/milkbowl/vault/permission/plugins/Permission_Permissions3.java index 1625fc9..4a10419 100644 --- a/src/net/milkbowl/vault/permission/plugins/Permission_Permissions3.java +++ b/src/net/milkbowl/vault/permission/plugins/Permission_Permissions3.java @@ -90,10 +90,9 @@ public class Permission_Permissions3 extends Permission { public void onPluginEnable(PluginEnableEvent event) { if (permission.permission == null) { - Plugin perms = plugin.getServer().getPluginManager().getPlugin("Permissions"); - - if (perms != null) { - if (perms.isEnabled() && perms.getDescription().getVersion().startsWith("3")) { + Plugin perms = event.getPlugin(); + if(perms.getDescription().getName().equals("Permissions") && perms.getDescription().getVersion().startsWith("3")) { + if (perms.isEnabled()) { permission.permission = (Permissions) perms; log.info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), permission.name)); }