Skip to content

Commit

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

// If the player is not the VIP, don't let them join the VIP squad
if (!IsPlayerVip(player))
{
player.SayToChat($"{RichTextHelper.FromColorName("Orange")}You can't join the VIP squad.");
player.KickFromSquad();
}
if (IsPlayerVip(player) || squad.Name != Squads.King) return Task.CompletedTask;

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

return Task.CompletedTask;
}
Expand Down

0 comments on commit f3c870d

Please sign in to comment.