blob: 54ad08e1ad1c0d9dd7aa17a00c4a4de6e26eae16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package org.bukkit.event.player;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
/**
* Represents a player related event
*/
@SuppressWarnings("serial")
public abstract class PlayerEvent extends Event {
protected Player player;
public PlayerEvent(final Event.Type type, final Player who) {
super(type);
player = who;
}
/**
* Returns the player involved in this event
*
* @return Player who is involved in this event
*/
public final Player getPlayer() {
return player;
}
}
|