mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-23 11:05:48 +01:00
more fixes
This commit is contained in:
parent
056824a466
commit
25c66d2491
@ -65,7 +65,7 @@ public class Chat_rscPermissions extends Chat {
|
||||
if (plugin.getDescription().getName().equals("rscPermissions")) {
|
||||
bridge.rscp = (MainPluginClass) plugin;
|
||||
bridge.rscpAPI = bridge.rscp.API;
|
||||
log.info(String.format("[%s][Permission] %s hooked.", vault.getDescription().getName(), "rscPermissions"));
|
||||
log.info(String.format("[%s][Chat] %s hooked.", vault.getDescription().getName(), "rscPermissions"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -37,7 +37,14 @@ public class Permission_rscPermissions extends Permission {
|
||||
super();
|
||||
this.vault = plugin;
|
||||
Bukkit.getServer().getPluginManager().registerEvents(new PermissionServerListener(this), vault);
|
||||
rscp = (MainPluginClass)vault.getServer().getPluginManager().getPlugin("rscPermissions");
|
||||
if (rscp == null) {
|
||||
Plugin perms = plugin.getServer().getPluginManager().getPlugin("rscPermissions");
|
||||
if (perms != null && perms.isEnabled()) {
|
||||
this.rscp = (MainPluginClass) perms;
|
||||
rscpAPI = rscp.API;
|
||||
plugin.getLogger().info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), "rscPermissions"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private class PermissionServerListener implements Listener {
|
||||
|
Loading…
Reference in New Issue
Block a user