Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
PlayerChannelEvent.java
1 package org.bukkit.event.player;
2 
3 import org.bukkit.entity.Player;
5 
6 /**
7  * This event is called after a player registers or unregisters a new plugin
8  * channel.
9  */
10 public abstract class PlayerChannelEvent extends PlayerEvent {
11  private static final HandlerList handlers = new HandlerList();
12  private final String channel;
13 
14  public PlayerChannelEvent(final Player player, final String channel) {
15  super(player);
16  this.channel = channel;
17  }
18 
19  public final String getChannel() {
20  return channel;
21  }
22 
23  @Override
24  public HandlerList getHandlers() {
25  return handlers;
26  }
27 
28  public static HandlerList getHandlerList() {
29  return handlers;
30  }
31 }