/FileExtraction/Java_unseen/Wind-Development_WindSpigot/WindSpigot-API/src/main/java/org/bukkit/event/player/PlayerEvent.java
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;
	}

	public 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;
	}
}
