mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-02 13:57:49 +01:00
Bind yawrate checking to the angle permission for fight.
This commit is contained in:
parent
2518bf499d
commit
5b1eb3121e
@ -123,7 +123,7 @@ public class FightListener implements Listener {
|
||||
final boolean worldChanged = !worldName.equals(data.lastWorld);
|
||||
|
||||
// Improbable yaw:
|
||||
if (Combined.checkYawRate(player, player.getLocation().getYaw(), now, worldName, cc.yawRateCheck)){
|
||||
if (Combined.checkYawRate(player, player.getLocation().getYaw(), now, worldName, cc.yawRateCheck && !player.hasPermission(Permissions.FIGHT_ANGLE))){
|
||||
cancelled = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user