[Bleeding] Changed event system into a new, much faster design. Huge thanks to @zml2008 & @lahwran.

This commit is contained in:
Nathan Adams
2012-01-16 18:25:17 +00:00
committed by Erik Broes
parent 5c8bc62f26
commit e35037ab50
132 changed files with 1691 additions and 225 deletions

View File

@@ -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;
}
}