mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-03-02 06:10:46 +00:00
Fixed defualt kick reason
This commit is contained in:
@@ -473,6 +473,8 @@ public partial class CS2_SimpleAdmin: BasePlugin, IPluginConfig<CS2_SimpleAdminC
|
|||||||
|
|
||||||
public void Kick(CCSPlayerController? caller, CCSPlayerController player, string reason = null)
|
public void Kick(CCSPlayerController? caller, CCSPlayerController player, string reason = null)
|
||||||
{
|
{
|
||||||
|
reason ??= "Unknown";
|
||||||
|
|
||||||
if (player.PawnIsAlive)
|
if (player.PawnIsAlive)
|
||||||
{
|
{
|
||||||
player.Pawn.Value!.Freeze();
|
player.Pawn.Value!.Freeze();
|
||||||
|
|||||||
Reference in New Issue
Block a user