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); }
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); }
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; } }