예제 #1
0
        public static void SendToAll(string message, ChatColor color = ChatColor.white, ChatStyle style = ChatStyle.normal, Pipliz.Chatting.ChatSenderType sender = Pipliz.Chatting.ChatSenderType.Server)
        {
            string messageBuilt = BuildMessage(message, color, style);

            Pipliz.Chatting.Chat.SendToAll(messageBuilt, sender);
        }
예제 #2
0
        public static void sendToAllBut(Players.Player n, string message, ChatColour colour = ChatColour.white, ChatStyle style = ChatStyle.normal, Pipliz.Chatting.ChatSenderType sender = Pipliz.Chatting.ChatSenderType.Server)
        {
            string messageBuilt = buildMessage(message, colour, style);

            Pipliz.Chatting.Chat.SendToAllBut(n, messageBuilt, sender);
        }
예제 #3
0
 public static void SendThrottle(Players.Player ply, string message, ChatColor color = ChatColor.white, ChatStyle style = ChatStyle.normal, Pipliz.Chatting.ChatSenderType sender = Pipliz.Chatting.ChatSenderType.Server)
 {
     if (CanSendMesssage(ply))
     {
         string messageBuilt = BuildMessage(message, color, style);
         Pipliz.Chatting.Chat.Send(ply, messageBuilt, sender);
         _nextSendTime[ply] = Time.SecondsSinceStartDouble + 10;
     }
 }