private static void send_msg(string text, ChatCategory Category, DefaultChatTags Tags)
 {
     System.FormattableString s = $"{text}";
     ChatManager.ServerMessageToAll(s, false, Tags, Category);
 }
Ejemplo n.º 2
0
 public static void SendMessage(this User pUser, string pMessage, bool temporary = true, DefaultChatTags tag = DefaultChatTags.Notifications, ChatCategory category = ChatCategory.Info)
 {
     ChatManager.ServerMessageToPlayer(new LocString(pMessage), pUser, temporary, tag, category);
 }
        /*
         *      BASE METHODS
         */

        private static void send_pm(string text, Player player, ChatCategory Category, DefaultChatTags Tags)
        {
            System.FormattableString s = $"{text}";
            ChatManager.ServerMessageToPlayer(s, player.User, false, Tags, Category);
        }