mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-03 19:00:30 +02:00
Allow fight.speed to create improbable violations for higher violation
levels. Might need configuration/testing.
This commit is contained in:
parent
61bc88b64f
commit
de4faa392d
|
@ -155,8 +155,13 @@ public class FightListener extends CheckListener implements JoinLeaveListener{
|
|||
if (speed.check(player, now)){
|
||||
cancelled = true;
|
||||
// Still feed the improbable.
|
||||
if (data.speedVL > 50){
|
||||
Improbable.check(player, 2f, now, "fight.speed");
|
||||
}
|
||||
else{
|
||||
Improbable.feed(player, 2f, now);
|
||||
}
|
||||
}
|
||||
else if (normalizedMove > 2.0 && Improbable.check(player, 1f, now, "fight.speed")){
|
||||
// Feed improbable in case of ok-moves too.
|
||||
// TODO: consider only feeding if attacking with higher average speed (!)
|
||||
|
|
Loading…
Reference in New Issue
Block a user