mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-25 20:58:05 +00:00
edited css_say logging
This commit is contained in:
@@ -1968,10 +1968,7 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
|
|||||||
sb.Append(_localizer!["sa_adminsay_prefix", utf8String]);
|
sb.Append(_localizer!["sa_adminsay_prefix", utf8String]);
|
||||||
Server.PrintToChatAll(sb.ToString());
|
Server.PrintToChatAll(sb.ToString());
|
||||||
if (Config.DiscordWebhook.Length > 0 && _localizer != null)
|
if (Config.DiscordWebhook.Length > 0 && _localizer != null)
|
||||||
{
|
_ = SendWebhookMessage($"ASAY: {caller!.PlayerName}: {utf8String}");
|
||||||
LocalizedString localizedMessage = _localizer["sa_adminsay_prefix", utf8String];
|
|
||||||
_ = SendWebhookMessage(localizedMessage.ToString().Replace("", "").Replace("", ""));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConsoleCommand("css_psay", "Private message a player.")]
|
[ConsoleCommand("css_psay", "Private message a player.")]
|
||||||
@@ -2232,4 +2229,4 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
|
|||||||
var response = await httpClient.PostAsync(Config.DiscordWebhook, content);
|
var response = await httpClient.PostAsync(Config.DiscordWebhook, content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user