All code to call events and delegate back to plugins
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -13,7 +13,41 @@ public abstract class Event {
|
||||
server = instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Server instance that triggered this event
|
||||
* @return Server which this event was triggered on
|
||||
*/
|
||||
public final Server getServer() {
|
||||
return server;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents an events priority
|
||||
*/
|
||||
public enum Priority {
|
||||
/**
|
||||
* Event is critical and must be called near-first
|
||||
*/
|
||||
Highest,
|
||||
|
||||
/**
|
||||
* Event is of high importance
|
||||
*/
|
||||
High,
|
||||
|
||||
/**
|
||||
* Event is neither important or unimportant, and may be ran normally
|
||||
*/
|
||||
Normal,
|
||||
|
||||
/**
|
||||
* Event is of low importance
|
||||
*/
|
||||
Low,
|
||||
|
||||
/**
|
||||
* Event is of extremely low importance, most likely just to monitor events, and must be run near-last
|
||||
*/
|
||||
Lowest
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user