Exemple #1
0
 /// <summary>
 /// Parse a message protocol input
 /// </summary>
 public void Message(string line)
 {
     if (line.ToLower().StartsWith("msg "))
     {
         string player  = line.Split(' ')[1];
         string message = line.Substring(4 + player.Length + 1);
         Server.SendMessage(player, message);
     }
 }