All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.event.player.PlayerChannelEvent Maven / Gradle / Ivy

package org.bukkit.event.player;

import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;

/**
 * This event is called after a player registers or unregisters a new plugin
 * channel.
 */
public abstract class PlayerChannelEvent extends PlayerEvent {
  private static final HandlerList handlers = new HandlerList();
  private final String channel;

  public PlayerChannelEvent(final Player player, final String channel) {
    super(player);
    this.channel = channel;
  }

  public static HandlerList getHandlerList() {
    return handlers;
  }

  public final String getChannel() {
    return channel;
  }

  @Override
  public HandlerList getHandlers() {
    return handlers;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy