fix Chat hooks thinking they are Permissions still.

This commit is contained in:
Sleaker 2012-03-25 22:03:23 -07:00
parent 8b0906a134
commit c62879809c
3 changed files with 9 additions and 9 deletions

View File

@ -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));
}
}
}

View File

@ -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));
}
}
}

View File

@ -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));
}
}
}