| 限定符和类型 | 方法和说明 |
|---|---|
<T extends Event> |
ListenerHandler.register(Listener listener,
Method method,
EventHandler handler)
Register the listener
|
static <T extends Event> |
EventManager.submit(Class<T> cls,
T event)
Submit the event to cls and all of cls 's implemented super event class
|
<T extends Event> |
ListenerHandler.submit(T event)
Submit the event to this listener handler
|
static <T extends Event> |
EventManager.submit(T event)
Submit the event to all of its implemented super event class
|
static <T extends Event> |
EventManager.submitOnce(Class<T> cls,
T event)
Submit the event only to cls event class
|
static <T extends Event> |
EventManager.trySubmitOnce(Class<T> cls,
T event)
Submit the event only to itself and no exception throws
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
BotEvent
Called when an event is relative with a bot
|
class |
BotLoginEvent
Called when bot login
|
class |
BotLogoutEvent
Called when bot logout
|
class |
BotReloginEvent
Called when bot relogin
|
class |
FriendInputStatusEvent
Called when friend input status is changed
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
ChatEvent
Called when a friend chat with bot or a member chat in a group the bot is in
|
class |
ConsoleChatEvent
Called when Console input a String
|
class |
FriendChatEvent
Called when a friend chat with bot
|
class |
GroupChatEvent
Called when a member who chats in the group the bot is in
|
class |
StrangerChatEvent
Called when a stranger chat with bot
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
CommandExecutedEvent
Called after command executed
|
class |
CommandPrepostEvent
Called before command executing
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
ConsoleMessageEvent
Called when Console input a String (this does not execute any commands)
|
class |
FriendMessageEvent
Called when a friend chat with bot (this does not execute any commands)
|
class |
GroupMessageEvent
Called when a member who chats in the group the bot is in (this does not execute any commands)
|
class |
MessageEvent
Called when a friend chat with bot or a member chat in a group the bot is in (this does not execute any commands)
|
class |
StrangerMessageEvent
Called when a stranger chat with bot (this does not execute any commands)
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
PluginEvent
Called when a plugin triggers a special action
|
class |
PluginLoadEvent
Called when a plugin is loaded
|
class |
PluginUnloadEvent
Called when a plugin is unloaded
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
FriendRecallEvent
Called when a Friend recall a message
|
class |
GroupRecallEvent
Called when a Member recall a message in a Group
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
FriendRequestEvent
Called when a friend-request comes
|
class |
GroupRequestEvent
Called when a group-request comes
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
ServerStartEvent
Called when MainPlugin is loaded completely
|
| 构造器和说明 |
|---|
EventSubmitException(Event event)
Constructs a EventSubmitException
|
EventSubmitException(Event event,
String message)
Constructs a EventSubmitException
|
Copyright © 2022. All rights reserved.