[Bleeding] Changed event system into a new, much faster design. Huge thanks to @zml2008 & @lahwran.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package org.bukkit.event.player;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.HandlerList;
|
||||
|
||||
/**
|
||||
* Called early in the command handling process. This event is only
|
||||
@@ -8,7 +9,17 @@ import org.bukkit.entity.Player;
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class PlayerCommandPreprocessEvent extends PlayerChatEvent {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
public PlayerCommandPreprocessEvent(final Player player, final String message) {
|
||||
super(Type.PLAYER_COMMAND_PREPROCESS, player, message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
public static HandlerList getHandlerList() {
|
||||
return handlers;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user