Update for latest CraftBukkit

This commit is contained in:
Brettflan 2011-03-04 10:41:04 -06:00
parent de9112e072
commit 775f3a00d5
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ public class Factions extends JavaPlugin {
// Register events
PluginManager pm = this.getServer().getPluginManager();
pm.registerEvent(Event.Type.PLAYER_CHAT, this.playerListener, Event.Priority.Highest, this);
pm.registerEvent(Event.Type.PLAYER_COMMAND, this.playerListener, Event.Priority.Normal, this);
pm.registerEvent(Event.Type.PLAYER_COMMAND_PREPROCESS, this.playerListener, Event.Priority.Normal, this);
pm.registerEvent(Event.Type.PLAYER_JOIN, this.playerListener, Event.Priority.Normal, this);
pm.registerEvent(Event.Type.PLAYER_MOVE, this.playerListener, Event.Priority.Normal, this);
pm.registerEvent(Event.Type.PLAYER_QUIT, this.playerListener, Event.Priority.Normal, this);

View File

@ -27,7 +27,7 @@ public class FactionsPlayerListener extends PlayerListener{
* we handle that command.
*/
@Override
public void onPlayerCommand(PlayerChatEvent event) {
public void onPlayerCommandPreprocess(PlayerChatEvent event) {
Player player = event.getPlayer();
String msg = event.getMessage();