All code to call events and delegate back to plugins

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2010-12-26 00:21:00 +00:00
parent 130fc2576a
commit acc9067060
9 changed files with 187 additions and 13 deletions

View File

@@ -16,7 +16,25 @@ public abstract class PlayerEvent extends Event {
player = who;
}
/**
* Returns the player involved in this event
* @return Player who is involved in this event
*/
public final Player getPlayer() {
return player;
}
/**
* Represents the different types of events
*/
public enum EventType {
/**
* A player joins a server
*/
Join,
/**
* A player leaves a server
*/
Quit
}
}