diff options
author | EvilSeph <evilseph@gmail.com> | 2012-02-25 16:53:54 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-02-25 16:53:54 -0500 |
commit | 5901a7456516a263fa167c6082937f8cf24b5f7f (patch) | |
tree | 0ced859dd3ba1d9ddde8b8e679ca1244c3e12764 | |
parent | d6c6b18ba9daa9fcc4b63c0e62e05a8ca7be83b2 (diff) | |
download | craftbukkit-5901a7456516a263fa167c6082937f8cf24b5f7f.tar craftbukkit-5901a7456516a263fa167c6082937f8cf24b5f7f.tar.gz craftbukkit-5901a7456516a263fa167c6082937f8cf24b5f7f.tar.lz craftbukkit-5901a7456516a263fa167c6082937f8cf24b5f7f.tar.xz craftbukkit-5901a7456516a263fa167c6082937f8cf24b5f7f.zip |
Fixed changes made to PlayerCommandPreprocess events having no effect. Fixes BUKKIT-376
-rw-r--r-- | src/main/java/net/minecraft/server/NetServerHandler.java | 4 |
1 files 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 8389ca25..d2cd707c 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); |