接口的使用
org.bukkit.plugin.messaging.PluginMessageListener
-
org.bukkit.plugin.messaging中PluginMessageListener的使用
修饰符和类型方法说明Messenger.registerIncomingPluginChannel
(@NotNull Plugin plugin, @NotNull String channel, @NotNull PluginMessageListener listener) 注册指定的监听指定的接收的插件通道的插件,允许它在任何插件消息上做动作.StandardMessenger.registerIncomingPluginChannel
(@NotNull Plugin plugin, @NotNull String channel, @NotNull PluginMessageListener listener) void
Messenger.unregisterIncomingPluginChannel
(@NotNull Plugin plugin, @NotNull String channel, @NotNull PluginMessageListener listener) 注销指定插件请求的监听接收的插件通道的监听器,不再允许它在任何插件消息上做任何动作.void
StandardMessenger.unregisterIncomingPluginChannel
(@NotNull Plugin plugin, @NotNull String channel, @NotNull PluginMessageListener listener) 限定符构造器说明PluginMessageListenerRegistration
(@NotNull Messenger messenger, @NotNull Plugin plugin, @NotNull String channel, @NotNull PluginMessageListener listener)