接口 PluginMessageListener
public interface PluginMessageListener
一个指定通道的一个监听器,将接收从客户端发送的消息的通知.
-
方法概要
修饰符和类型方法说明void
onPluginMessageReceived
(@NotNull String channel, @NotNull Player player, @org.jetbrains.annotations.NotNull byte[] message) 当PluginMessageSource(插件消息源)在已注册的通道上发送了插件消息调用此方法.
-
方法详细资料
-
onPluginMessageReceived
void onPluginMessageReceived(@NotNull @NotNull String channel, @NotNull @NotNull Player player, @NotNull @org.jetbrains.annotations.NotNull byte[] message) 当PluginMessageSource(插件消息源)在已注册的通道上发送了插件消息调用此方法.原文:A method that will be thrown when a PluginMessageSource sends a plugin message on a registered channel.
- 参数:
channel
- 发送消息通过的通道player
- 消息来源message
- 发送的原始消息
-