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 != null) {
|
||||||
if (perms.isEnabled()) {
|
if (perms.isEnabled()) {
|
||||||
groupManager = (GroupManager) perms;
|
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 != null) {
|
||||||
if (perms.isEnabled()) {
|
if (perms.isEnabled()) {
|
||||||
chat.groupManager = (GroupManager) perms;
|
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 (chat.groupManager != null) {
|
||||||
if (event.getPlugin().getDescription().getName().equals("GroupManager")) {
|
if (event.getPlugin().getDescription().getName().equals("GroupManager")) {
|
||||||
chat.groupManager = null;
|
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")) {
|
if (perms.isEnabled() && perms.getDescription().getVersion().startsWith("3")) {
|
||||||
chat = (Permissions) perms;
|
chat = (Permissions) perms;
|
||||||
this.perms = chat.getHandler();
|
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()) {
|
if (permChat.isEnabled()) {
|
||||||
chat = (Permissions) permChat;
|
chat = (Permissions) permChat;
|
||||||
perms = chat.getHandler();
|
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")) {
|
if (event.getPlugin().getDescription().getName().equals("Permissions")) {
|
||||||
chat = null;
|
chat = null;
|
||||||
perms = 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 != null) {
|
||||||
if (perms.isEnabled()) {
|
if (perms.isEnabled()) {
|
||||||
chat = (PermissionsEx) perms;
|
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 != null) {
|
||||||
if (perms.isEnabled()) {
|
if (perms.isEnabled()) {
|
||||||
chat.chat = (PermissionsEx) perms;
|
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 (chat.chat != null) {
|
||||||
if (event.getPlugin().getDescription().getName().equals("PermissionsEx")) {
|
if (event.getPlugin().getDescription().getName().equals("PermissionsEx")) {
|
||||||
chat.chat = null;
|
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