Fixed defualt kick reason
This commit is contained in:
parent
a85e5c69ee
commit
5991f85919
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue