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.

This commit is contained in:
sk89q
2011-02-19 01:41:33 -08:00
parent 0558646377
commit 03f4e0ec22
3 changed files with 22 additions and 3 deletions

View File

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