mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Merge pull request #65 from JamieSinn/patch-1
Add Herochat/Essentials PM Check
This commit is contained in:
commit
9fc8faaf8a
1 changed files with 10 additions and 0 deletions
|
|
@ -204,6 +204,16 @@ namespace MinecraftClient
|
||||||
return isValidName(sender);
|
return isValidName(sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Detect HeroChat PMsend
|
||||||
|
//From Someone: message
|
||||||
|
|
||||||
|
else if (text.StartsWith("From"))
|
||||||
|
{
|
||||||
|
sender = tmp[1].ToString().Remove(tmp[1].ToString().Length-1);
|
||||||
|
message = text.Substring(tmp[0].Length+ 1 + tmp[1].Length + 1);
|
||||||
|
return isValidName(sender);
|
||||||
|
}
|
||||||
|
|
||||||
else return false;
|
else return false;
|
||||||
}
|
}
|
||||||
catch (IndexOutOfRangeException) { return false; }
|
catch (IndexOutOfRangeException) { return false; }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue