Bind yawrate checking to the angle permission for fight.

This commit is contained in:
asofold 2012-09-29 20:09:57 +02:00
parent 2518bf499d
commit 5b1eb3121e

View File

@ -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;
}