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

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

package org.bukkit.event.player;

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

/**
 * Represents a player related event
 */
public abstract class PlayerEvent extends Event {
  protected Player player;

  public PlayerEvent(final Player who) {
    player = who;
  }

  PlayerEvent(final Player who, boolean async) {
    super(async);
    player = who;

  }

  /**
   * Returns the player involved in this event
   *
   * @return Player who is involved in this event
   */
  public final Player getPlayer() {
    return player;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy