mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 03:02:11 +01:00
Note.
This commit is contained in:
parent
9e1c3e392d
commit
fad90d175a
@ -97,6 +97,7 @@ public class Direction extends Check {
|
||||
if (data.directionLastViolationTime + cc.directionPenalty > System.currentTimeMillis()) {
|
||||
// A safeguard to avoid people getting stuck in penalty time indefinitely in case the system time of the
|
||||
// server gets changed.
|
||||
// TODO: Change this to a general attack penalty time.
|
||||
if (data.directionLastViolationTime > System.currentTimeMillis())
|
||||
data.directionLastViolationTime = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user