summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/plugin/messaging/PluginMessageListener.java
blob: 462b57939da3468996083018d4210e41de36165c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package org.bukkit.plugin.messaging;

import org.bukkit.entity.Player;

/**
 * A listener for a specific Plugin Channel, which will receive notifications of messages sent
 * from a client.
 */
public interface PluginMessageListener {
    /**
     * A method that will be thrown when a PluginMessageSource sends a plugin
     * message on a registered channel.
     *
     * @param channel Channel that the message was sent through.
     * @param player Source of the message.
     * @param message The raw message that was sent.
     */
    public void onPluginMessageReceived(String channel, Player player, byte[] message);
}