Lowered the priority of the old command handler event because a number of plugins were using this event incorrectly. A new event, the command preprocesser event, has replaced the previous function of the original command event.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
@@ -150,6 +150,11 @@ public final class JavaPluginLoader implements PluginLoader {
|
||||
((PlayerListener)listener).onPlayerCommand( (PlayerChatEvent)event );
|
||||
}
|
||||
};
|
||||
case PLAYER_COMMAND_PREPROCESS:
|
||||
return new EventExecutor() { public void execute( Listener listener, Event event ) {
|
||||
((PlayerListener)listener).onPlayerCommandPreprocess( (PlayerChatEvent)event );
|
||||
}
|
||||
};
|
||||
case PLAYER_CHAT:
|
||||
return new EventExecutor() { public void execute( Listener listener, Event event ) {
|
||||
((PlayerListener)listener).onPlayerChat( (PlayerChatEvent)event );
|
||||
|
||||
Reference in New Issue
Block a user