private void SendMessage(IPlayer player, MessageWrapper messageWrapper)
 {
     if (player != null)
     {
         player.Reply(messageWrapper.GetNoFormatting());
     }
     else
     {
         Notify(messageWrapper);
     }
     PrintWarning(messageWrapper.GetNoFormatting());
 }
        private void Notify(MessageWrapper messageWrapper)
        {
            if (GetConfig(false, "Settings", "Use PushAPI"))
            {
                PushAPI?.Call("PushMessage", "Plugin Update Notification", messageWrapper.GetNoFormatting());
            }

            if (GetConfig(false, "Settings", "Use EmailAPI"))
            {
                EmailAPI?.Call("EmailMessage", "Plugin Update Notification", messageWrapper.GetNoFormatting());
            }

            if (GetConfig(false, "Settings", "Use DiscordMessages") && !string.IsNullOrEmpty(GetConfig("", "Settings", "Discord Webhook")))
            {
                DiscordMessages?.Call("API_SendFancyMessage", GetConfig("", "Settings", "Discord Webhook"), messageWrapper.GetDiscordTitle(), messageWrapper.GetDiscordMessages(), null, messageWrapper.GetColourEmbed());
            }
        }