From 5901a7456516a263fa167c6082937f8cf24b5f7f Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Sat, 25 Feb 2012 16:53:54 -0500 Subject: [PATCH] Fixed changes made to PlayerCommandPreprocess events having no effect. Fixes BUKKIT-376 --- src/main/java/net/minecraft/server/NetServerHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java index 8389ca2555..d2cd707c98 100644 --- a/src/main/java/net/minecraft/server/NetServerHandler.java +++ b/src/main/java/net/minecraft/server/NetServerHandler.java @@ -781,7 +781,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener { } try { - if (this.server.dispatchCommand(player, s.substring(1))) { + if (this.server.dispatchCommand(player, event.getMessage().substring(1))) { return; } } catch (CommandException ex) { @@ -791,7 +791,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener { } // CraftBukkit end - /* CraftBukkit start - No longer neaded as we have already handled it in server.dispatchCommand above. + /* // CraftBukkit start - No longer needed as we have already handled it in server.dispatchCommand above. if (s.toLowerCase().startsWith("/me ")) { s = "* " + this.player.name + " " + s.substring(s.indexOf(" ")).trim(); logger.info(s);