mirror of
https://github.com/MilkBowl/Vault.git
synced 2025-01-03 23:08:08 +01:00
fix bPerms2 Chat - InfoReader package was removed without any
notification. solves chat no hooking properly in latest bPerms.
This commit is contained in:
parent
c30a2a573f
commit
8ce3c77129
@ -161,16 +161,17 @@ public class Vault extends JavaPlugin {
|
||||
}
|
||||
|
||||
//try loading bPermssions 2
|
||||
if (packageExists(new String[] {"de.bananaco.bpermissions.api.ApiLayer"})) {
|
||||
Chat bPerms = new Chat_bPermissions2(this, perms);
|
||||
sm.register(Chat.class, bPerms, this, ServicePriority.High);
|
||||
log.info(String.format("[%s][Chat] bPermissions2 found: %s", getDescription().getName(), bPerms.isEnabled() ? "Loaded" : "Waiting"));
|
||||
}
|
||||
|
||||
// try loading bPermissions 1
|
||||
if (packageExists(new String[] {"de.bananaco.permissions.info.InfoReader"})) {
|
||||
if (packageExists(new String[] {"de.bananaco.bpermissions.api.ApiLayer"})) {
|
||||
Chat bPerms = new Chat_bPermissions2(this, perms);
|
||||
sm.register(Chat.class, bPerms, this, ServicePriority.High);
|
||||
log.info(String.format("[%s][Chat] bPermissions2 found: %s", getDescription().getName(), bPerms.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
Chat bPerms = new Chat_bPermissions(this, perms);
|
||||
sm.register(Chat.class, bPerms, this, ServicePriority.Normal);
|
||||
log.info(String.format("[%s][Chat] bPermissions found: %s", getDescription().getName(), bPerms.isEnabled() ? "Loaded" : "Waiting"));
|
||||
}
|
||||
Chat bPerms = new Chat_bPermissions(this, perms);
|
||||
sm.register(Chat.class, bPerms, this, ServicePriority.Normal);
|
||||
log.info(String.format("[%s][Chat] bPermissions found: %s", getDescription().getName(), bPerms.isEnabled() ? "Loaded" : "Waiting"));
|
||||
}
|
||||
|
||||
// Try to load GroupManager
|
||||
|
Loading…
Reference in New Issue
Block a user