mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-09-27 20:17:04 +02:00
edited css_say logging
This commit is contained in:
parent
4e597d73a5
commit
f15061793a
1 changed files with 2 additions and 5 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue