Skip to content

Commit

Permalink
vip team
Browse files Browse the repository at this point in the history
  • Loading branch information
Bims-sh committed Jul 5, 2024
1 parent 6a7d3cc commit 9ad0206
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Events/VipGamemode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,11 @@ public override Task OnPlayerJoinedSquad(BattleBitPlayer player, Squad<BattleBit
}

// If the player is not the VIP, don't let them join the VIP squad
if (squad.Name.ToString() != Squads.King.ToString()) return Task.CompletedTask;

player.SayToChat($"{RichTextHelper.FromColorName("Orange")}You can't join the VIP squad.");
player.KickFromSquad();
if (!IsPlayerVip(player))
{
player.SayToChat($"{RichTextHelper.FromColorName("Orange")}You can't join the VIP squad.");
player.KickFromSquad();
}

return Task.CompletedTask;
}
Expand Down

0 comments on commit 9ad0206

Please sign in to comment.