From f868a8f7a7b2becb4f72a83d7af1f4e78b3382e1 Mon Sep 17 00:00:00 2001 From: LlmDl Date: Wed, 29 Nov 2017 20:27:06 -0600 Subject: [PATCH] Add helpful comment to AsyncChatHookEvent for plugin devs --- .../TownyChat/events/AsyncChatHookEvent.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/com/palmergames/bukkit/TownyChat/events/AsyncChatHookEvent.java b/src/com/palmergames/bukkit/TownyChat/events/AsyncChatHookEvent.java index 0e4ca26..8a08801 100644 --- a/src/com/palmergames/bukkit/TownyChat/events/AsyncChatHookEvent.java +++ b/src/com/palmergames/bukkit/TownyChat/events/AsyncChatHookEvent.java @@ -11,6 +11,21 @@ import com.palmergames.bukkit.TownyChat.channels.Channel; /* * Allows other plugins to hook into a chat message being accepted into any of the channels + * + * In order to use this event, you will have to add the hooked: true flag to the channel you wish you hook in the channels.yml + * + * ex: + * + *Channels: + * general: + * commands: [g] + * type: GLOBAL + * hooked: true + * channeltag: '&f[g]' + * messagecolour: '&f' + * permission: 'towny.chat.general' + * craftIRCTag: 'admin' + * range: '-1' */ public class AsyncChatHookEvent extends Event { private static final HandlerList handlers = new HandlerList();