mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Add more syntax compatibility for private messages
Added '[Someone [rank] -> me] message' syntax support Improvement for fuckofftwice's server with [Donator] tag
This commit is contained in:
parent
5cace4e7ff
commit
e56d504067
1 changed files with 4 additions and 2 deletions
|
|
@ -182,8 +182,10 @@ namespace MinecraftClient
|
|||
|
||||
//Detect Essentials (Bukkit) /m messages
|
||||
//[Someone -> me] message
|
||||
else if (text[0] == '[' && tmp.Length > 3 && tmp[1] == "->"
|
||||
&& (tmp[2] == "me]" || tmp[2] == "moi]")) //'me' is replaced by 'moi' in french servers
|
||||
//[Someone [rank] -> me] message
|
||||
else if (text[0] == '[' && tmp.Length > 3 && (tmp[1] == "->" || tmp[2] == "->")
|
||||
&& ((tmp[2] == "me]" || tmp[2] == "moi]")
|
||||
|| (tmp[3] == "me]" || tmp[3] == "moi]"))) //'me' is replaced by 'moi' in french servers
|
||||
{
|
||||
message = text.Substring(tmp[0].Length + 4 + tmp[2].Length + 1);
|
||||
sender = tmp[0].Substring(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue