Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.plugin.messaging.TestMessageListener Class Reference
Inheritance diagram for org.bukkit.plugin.messaging.TestMessageListener:
org.bukkit.plugin.messaging.PluginMessageListener

Public Member Functions

 TestMessageListener (String channel, byte[] message)
 
void onPluginMessageReceived (String channel, Player player, byte[] message)
 
boolean hasReceived ()
 
void reset ()
 

Detailed Description

Definition at line 6 of file TestMessageListener.java.

Member Function Documentation

void org.bukkit.plugin.messaging.TestMessageListener.onPluginMessageReceived ( String  channel,
Player  player,
byte[]  message 
)

A method that will be thrown when a PluginMessageSource sends a plugin message on a registered channel.

Parameters
channelChannel that the message was sent through.
playerSource of the message.
messageThe raw message that was sent.

Implements org.bukkit.plugin.messaging.PluginMessageListener.

Definition at line 16 of file TestMessageListener.java.

16  {
17  assertEquals(this.channel, channel);
18  assertArrayEquals(this.message, message);
19  this.received = true;
20  }

The documentation for this class was generated from the following file: