return plugin.isEnabled() && ((PermissionsEx) plugin).permissionsManager != null;
}
public static PermissionManager getPermissionManager() {
if (!isAvailable()) {
throw new PermissionsNotAvailable();
}
return ((PermissionsEx) getPlugin()).permissionsManager;
}