Skip to content

Commit

Permalink
Update PlayerAbilitiesPacket.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheVeryStarlk authored Feb 27, 2024
1 parent d406adb commit 009ae2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void Populate(byte[] data)
public async ValueTask HandleAsync(Server server, Player player)
{
if (Abilities.HasFlag(PlayerAbility.Flying)
&& !Abilities.HasFlag(PlayerAbility.AllowFlying)
&& !player.Abilities.HasFlag(PlayerAbility.AllowFlying)
&& player.Gamemode is not Gamemode.Creative or Gamemode.Spectator)
{
await player.KickAsync("Cheating is not allowed!");
Expand Down

0 comments on commit 009ae2a

Please sign in to comment.