mirror of
https://github.com/MilkBowl/Vault.git
synced 2025-01-16 13:11:37 +01:00
fix Chat hooks thinking they are Permissions still.
This commit is contained in:
parent
8b0906a134
commit
c62879809c
@ -51,7 +51,7 @@ public class Chat_GroupManager extends Chat {
|
||||
if (perms != null) {
|
||||
if (perms.isEnabled()) {
|
||||
groupManager = (GroupManager) perms;
|
||||
log.info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), name));
|
||||
log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), name));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -73,7 +73,7 @@ public class Chat_GroupManager extends Chat {
|
||||
if (perms != null) {
|
||||
if (perms.isEnabled()) {
|
||||
chat.groupManager = (GroupManager) perms;
|
||||
log.info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), chat.name));
|
||||
log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), chat.name));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -84,7 +84,7 @@ public class Chat_GroupManager extends Chat {
|
||||
if (chat.groupManager != null) {
|
||||
if (event.getPlugin().getDescription().getName().equals("GroupManager")) {
|
||||
chat.groupManager = null;
|
||||
log.info(String.format("[%s][Permission] %s un-hooked.", plugin.getDescription().getName(), chat.name));
|
||||
log.info(String.format("[%s][Chat] %s un-hooked.", plugin.getDescription().getName(), chat.name));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ public class Chat_Permissions3 extends Chat {
|
||||
if (perms.isEnabled() && perms.getDescription().getVersion().startsWith("3")) {
|
||||
chat = (Permissions) perms;
|
||||
this.perms = chat.getHandler();
|
||||
log.info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), name));
|
||||
log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), name));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -68,7 +68,7 @@ public class Chat_Permissions3 extends Chat {
|
||||
if (permChat.isEnabled()) {
|
||||
chat = (Permissions) permChat;
|
||||
perms = chat.getHandler();
|
||||
log.info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), name));
|
||||
log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), name));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -80,7 +80,7 @@ public class Chat_Permissions3 extends Chat {
|
||||
if (event.getPlugin().getDescription().getName().equals("Permissions")) {
|
||||
chat = null;
|
||||
perms = null;
|
||||
log.info(String.format("[%s][Permission] %s un-hooked.", plugin.getDescription().getName(), name));
|
||||
log.info(String.format("[%s][Chat] %s un-hooked.", plugin.getDescription().getName(), name));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ public class Chat_PermissionsEx extends Chat {
|
||||
if (perms != null) {
|
||||
if (perms.isEnabled()) {
|
||||
chat = (PermissionsEx) perms;
|
||||
log.info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), name));
|
||||
log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), name));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -72,7 +72,7 @@ public class Chat_PermissionsEx extends Chat {
|
||||
if (perms != null) {
|
||||
if (perms.isEnabled()) {
|
||||
chat.chat = (PermissionsEx) perms;
|
||||
log.info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), chat.name));
|
||||
log.info(String.format("[%s][Chat] %s hooked.", plugin.getDescription().getName(), chat.name));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -83,7 +83,7 @@ public class Chat_PermissionsEx extends Chat {
|
||||
if (chat.chat != null) {
|
||||
if (event.getPlugin().getDescription().getName().equals("PermissionsEx")) {
|
||||
chat.chat = null;
|
||||
log.info(String.format("[%s][Permission] %s un-hooked.", plugin.getDescription().getName(), chat.name));
|
||||
log.info(String.format("[%s][Chat] %s un-hooked.", plugin.getDescription().getName(), chat.name));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user