mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38:58 +00:00
Add helpful comment to AsyncChatHookEvent for plugin devs
This commit is contained in:
1 parent
b4eaa8d39f
commit
f868a8f7a7
1 file changed
+15
@@ -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
|
* 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 {
|
public class AsyncChatHookEvent extends Event {
|
||||||
private static final HandlerList handlers = new HandlerList();
|
private static final HandlerList handlers = new HandlerList();
|
||||||
|
|||||||
Reference in new issue
Block a user