All code to call events and delegate back to plugins

This commit is contained in:
Dinnerbone
2010-12-26 00:21:00 +00:00
parent 0ea5acd7dc
commit 98e500fd96
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
}
}