Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
PlayerEvent.java
1 package org.bukkit.event.player;
2 
3 import org.bukkit.entity.Player;
4 import org.bukkit.event.Event;
5 
6 /**
7  * Represents a player related event
8  */
9 public abstract class PlayerEvent extends Event {
10  protected Player player;
11 
12  public PlayerEvent(final Player who) {
13  player = who;
14  }
15 
16  PlayerEvent(final Player who, boolean async) {
17  super(async);
18  player = who;
19 
20  }
21 
22  /**
23  * Returns the player involved in this event
24  *
25  * @return Player who is involved in this event
26  */
27  public final Player getPlayer() {
28  return player;
29  }
30 }