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,7 +155,12 @@ public class FightListener extends CheckListener implements JoinLeaveListener{
|
||||||
if (speed.check(player, now)){
|
if (speed.check(player, now)){
|
||||||
cancelled = true;
|
cancelled = true;
|
||||||
// Still feed the improbable.
|
// Still feed the improbable.
|
||||||
Improbable.feed(player, 2f, now);
|
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")){
|
else if (normalizedMove > 2.0 && Improbable.check(player, 1f, now, "fight.speed")){
|
||||||
// Feed improbable in case of ok-moves too.
|
// Feed improbable in case of ok-moves too.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user