Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
PluginMessageListener.java
1 package org.bukkit.plugin.messaging;
2 
3 import org.bukkit.entity.Player;
4 
5 /**
6  * A listener for a specific Plugin Channel, which will receive notifications
7  * of messages sent from a client.
8  */
9 public interface PluginMessageListener {
10 
11  /**
12  * A method that will be thrown when a PluginMessageSource sends a plugin
13  * message on a registered channel.
14  *
15  * @param channel Channel that the message was sent through.
16  * @param player Source of the message.
17  * @param message The raw message that was sent.
18  */
19  public void onPluginMessageReceived(String channel, Player player, byte[] message);
20 }
void onPluginMessageReceived(String channel, Player player, byte[] message)