mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-17 18:39:07 +00:00
@@ -527,7 +527,7 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
|
|||||||
[RequiresPermissions("@css/chat")]
|
[RequiresPermissions("@css/chat")]
|
||||||
public void OnAdminSayCommand(CCSPlayerController? caller, CommandInfo command)
|
public void OnAdminSayCommand(CCSPlayerController? caller, CommandInfo command)
|
||||||
{
|
{
|
||||||
Server.PrintToChatAll(Helper.ReplaceTags($" {Config.Messages.AdminSayPrefix} {command.GetCommandString[command.GetCommandString.IndexOf(' ')..]}"));
|
Server.PrintToChatAll(Helper.ReplaceTags($" {Config.Messages.AdminSayPrefix}".Replace("{ADMIN}", caller?.PlayerName == null ? "Console" : caller.PlayerName) + command.GetCommandString[command.GetCommandString.IndexOf(' ')..]));
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConsoleCommand("css_psay", "Private message a player.")]
|
[ConsoleCommand("css_psay", "Private message a player.")]
|
||||||
|
|||||||
Reference in New Issue
Block a user