From 7f65a5d69e2640150791d8cccf13140ce611d3e7 Mon Sep 17 00:00:00 2001 From: ORelio Date: Sat, 18 Jan 2014 01:09:21 +0100 Subject: [PATCH] Change for vanilla whisper detection - Before: Player whispers message - After: Player whispers to you: message --- MinecraftClient/Bots.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MinecraftClient/Bots.cs b/MinecraftClient/Bots.cs index 29c236bb..4da3f296 100644 --- a/MinecraftClient/Bots.cs +++ b/MinecraftClient/Bots.cs @@ -127,10 +127,10 @@ namespace MinecraftClient try { //Detect vanilla /tell messages - //Someone whispers message + //Someone whispers to you: message if (tmp.Length > 2 && tmp[1] == "whispers") { - message = text.Substring(tmp[0].Length + 10); + message = text.Substring(tmp[0].Length + 18); sender = tmp[0]; return isValidName(sender); }