- Add proper javadoc to all events - Use proper handling of the Eventlist in all events: each event has its own EventList and its static method, as specified by Bukkit's Event class - Add common supertype to all AuthMe events - Remove unused events - Remove unused methods (setters to fields that we ignore entirely)
28 lines
541 B
Java
28 lines
541 B
Java
package fr.xephi.authme.events;
|
|
|
|
import org.bukkit.event.Event;
|
|
|
|
/**
|
|
* The parent of all AuthMe events.
|
|
*/
|
|
public abstract class CustomEvent extends Event {
|
|
|
|
/**
|
|
* Constructor.
|
|
*/
|
|
public CustomEvent() {
|
|
super(false);
|
|
}
|
|
|
|
/**
|
|
* Constructor, specifying whether the event is asynchronous or not.
|
|
*
|
|
* @param isAsync {@code true} to fire the event asynchronously, false otherwise
|
|
* @see Event#Event(boolean)
|
|
*/
|
|
public CustomEvent(boolean isAsync) {
|
|
super(isAsync);
|
|
}
|
|
|
|
}
|