public Permission_DroxPerms(Plugin plugin) {
this.plugin = plugin;
// Load Plugin in case it was loaded before
if (API == null) {
DroxPerms p = (DroxPerms) plugin.getServer().getPluginManager().getPlugin("DroxPerms");
if (p != null) {
API = p.getAPI();
log.info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), "DroxPerms"));
useOnlySubgroups = p.getConfig().getBoolean("Vault.useOnlySubgroups", true);
log.info(String.format("[%s][Permission] Vault.useOnlySubgroups: %s", plugin.getDescription().getName(), useOnlySubgroups));
}
}
Bukkit.getServer().getPluginManager().registerEvents(new PermissionServerListener(), plugin);