001 package org.bukkit.plugin.messaging; 002 003 import org.bukkit.entity.Player; 004 005 /** 006 * A listener for a specific Plugin Channel, which will receive notifications 007 * of messages sent from a client. 008 */ 009 public interface PluginMessageListener { 010 011 /** 012 * A method that will be thrown when a PluginMessageSource sends a plugin 013 * message on a registered channel. 014 * 015 * @param channel Channel that the message was sent through. 016 * @param player Source of the message. 017 * @param message The raw message that was sent. 018 */ 019 public void onPluginMessageReceived(String channel, Player player, byte[] message); 020 }