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

@@ -43,9 +43,7 @@ public class PlayerListener implements Listener {
}
/**
* Called when a player attempts to use a command. Avoid using this
* when possible -- it won't be removed, but this is not how you
* handle commands.
* Called when a player attempts to use a command.
*
* @param event Relevant event details
*/
@@ -53,6 +51,15 @@ public class PlayerListener implements Listener {
public void onPlayerCommand(PlayerChatEvent event) {
}
/**
* Called early in the command handling process. This event is only
* for very exceptional cases and you should not normally use it.
*
* @param event Relevant event details
*/
public void onPlayerCommandPreprocess(PlayerChatEvent event) {
}
/**
* Called when a player attempts to move location in a world
*