summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/net/minecraft/server/NetServerHandler.java4
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);