Skip to content

Commit

Permalink
Update Blink.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlaubb authored Dec 2, 2023
1 parent 85b3b99 commit a3f4409
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Modules/Movement/Blink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ async function AntiBlink (player: Player) {

if (speed > 0 && speed == lastSpeed && isLocationSame) {
++vl[player.id]
if (vl[player.id] > 10) {
if (vl[player.id] > config.antiBlink.flagVL) {
if (!config.slient) player.teleport(player.location)
flag (player, "Blink", "A", 4, "kick", undefined)
flag (player, "Blink", "A", config.antiBlink.maxVL, config.antiBlink.punishment, undefined)
}
} else vl[player.id] = 0
}
Expand Down Expand Up @@ -68,4 +68,4 @@ export default {
system.clearRun(id)
world.afterEvents.playerLeave.unsubscribe(playerLeave)
}
}
}

0 comments on commit a3f4409

Please sign in to comment.