Skip to content

Commit

Permalink
fix : Fastplace F/P when a player is in vehicle
Browse files Browse the repository at this point in the history
  • Loading branch information
DreaMzyGit committed May 3, 2021
1 parent fb5ae08 commit 2bd0abc
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import me.tecnio.antihaxerman.check.Check;
import me.tecnio.antihaxerman.check.api.CheckInfo;
import me.tecnio.antihaxerman.data.PlayerData;
import me.tecnio.antihaxerman.exempt.type.ExemptType;
import me.tecnio.antihaxerman.packet.Packet;

@CheckInfo(name = "FastPlace", type = "A", description = "Checks if player placing blocks too fast.")
Expand All @@ -33,6 +34,12 @@ public FastPlaceA(final PlayerData data) {

@Override
public void handle(final Packet packet) {

final boolean exempt = isExempt(ExemptType.VEHICLE, ExemptType.BOAT);
if(exempt) {
return;
}

if (packet.isFlying()) {
++movements;

Expand Down

0 comments on commit 2bd0abc

Please sign in to comment.