![]() |
Bukkit
1.4.7-R1.0
|
Represents a possible recipient for a Plugin Message. More...
Inheritance diagram for org.bukkit.plugin.messaging.PluginMessageRecipient:Public Member Functions | |
| void | sendPluginMessage (Plugin source, String channel, byte[] message) |
| Sends this recipient a Plugin Message on the specified outgoing channel. | |
| Set< String > | getListeningPluginChannels () |
| Gets a set containing all the Plugin Channels that this client is listening on. | |
Represents a possible recipient for a Plugin Message.
Definition at line 9 of file PluginMessageRecipient.java.
| Set<String> org.bukkit.plugin.messaging.PluginMessageRecipient.getListeningPluginChannels | ( | ) |
Gets a set containing all the Plugin Channels that this client is listening on.
| void org.bukkit.plugin.messaging.PluginMessageRecipient.sendPluginMessage | ( | Plugin | source, |
| String | channel, | ||
| byte[] | message | ||
| ) |
Sends this recipient a Plugin Message on the specified outgoing channel.
The message may not be larger than Messenger#MAX_MESSAGE_SIZE bytes, and the plugin must be registered to send messages on the specified channel.
| source | The plugin that sent this message. |
| channel | The channel to send this message on. |
| message | The raw message to send. |
| IllegalArgumentException | Thrown if the source plugin is disabled. |
| IllegalArgumentException | Thrown if source, channel or message is null. |
| MessageTooLargeException | Thrown if the message is too big. |
| ChannelNotRegisteredException | Thrown if the channel is not registered for this plugin. |