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
|
|
@ -203,6 +203,16 @@ namespace MinecraftClient
|
|||
if (sender[0] == '~') { sender = sender.Substring(1); }
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue