Exemple #1
0
 public static void BroadcastChat(McChatMessage message, ChatMessageType chattype, Player sender)
 {
     foreach (var lvl in LevelManager.GetLevels())
     {
         lvl.BroadcastChat(message, chattype, sender);
     }
     LevelManager.MainLevel.BroadcastChat(message, chattype, sender);
 }
Exemple #2
0
 public void BroadcastChat(McChatMessage message, ChatMessageType messagetype, Player sender)
 {
     foreach (var i in OnlinePlayers.Values)
     {
         if (i == sender)
         {
             continue;
         }
         new ChatMessage(i.Wrapper) { Message = @message }.Write();
     }
 }
Exemple #3
0
 public void BroadcastChat(McChatMessage message, Player sender)
 {
     /*foreach (var i in OnlinePlayers)
     {
         if (i == sender)
         {
             continue;
         }
         new ChatMessage(i.Wrapper) { Message = @message }.Write();
     }*/
     BroadcastChat(message, ChatMessageType.ChatBox, sender);
 }
Exemple #4
0
 public void BroadcastChat(McChatMessage message)
 {
     //foreach (var i in OnlinePlayers)
     //{
     //	new ChatMessage(i.Wrapper) {Message = @message}.Write();
     //}
     BroadcastChat(message, ChatMessageType.ChatBox, null);
 }
Exemple #5
0
        public void SendChat(McChatMessage message)
        {
            if (Wrapper.TcpClient == null)
            {
                ConsoleFunctions.WriteInfoLine(message.text);
                return;
            }

            new ChatMessage(Wrapper) {Message = message}.Write();
        }
Exemple #6
0
 public void Kick(McChatMessage reason)
 {
     new Disconnect(Wrapper) {Reason = reason}.Write();
     SavePlayer();
 }
Exemple #7
0
 public static void KickPlayer(Player player, McChatMessage message)
 {
     player.Kick(message);
 }