mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-30 20:37:52 +01:00
Fixed compatibility with Superjump plugin (and reduced false positives
in other cases)
This commit is contained in:
parent
68591702cb
commit
c5ec73b1f4
@ -3,7 +3,7 @@ name: NoCheat
|
||||
author: Evenprime
|
||||
|
||||
main: cc.co.evenprime.bukkit.nocheat.NoCheat
|
||||
version: 1.09d
|
||||
version: 1.09e
|
||||
|
||||
softdepend: [ Permissions, CraftIRC ]
|
||||
|
||||
|
@ -89,6 +89,7 @@ public class FlyingCheck {
|
||||
|
||||
// The server sent the player a "velocity" packet a short time ago
|
||||
if(data.maxYVelocity > 0.0D) {
|
||||
|
||||
data.vertFreedomCounter = 30;
|
||||
|
||||
// Be generous with the height limit for the client
|
||||
|
@ -121,7 +121,6 @@ public class MovingCheck extends Check {
|
||||
!allowFakeSneak && player.isSneaking(), !allowFastSwim && (fromType & toType & MovingEventHelper.LIQUID) > 0, data));
|
||||
}
|
||||
|
||||
|
||||
/********* HANDLE/COMBINE THE RESULTS OF THE CHECKS ***********/
|
||||
|
||||
data.jumpPhase++;
|
||||
|
@ -34,6 +34,6 @@ public class RunningCheck {
|
||||
distanceAboveLimit = totalDistance - stepWidth;
|
||||
}
|
||||
|
||||
return distanceAboveLimit;
|
||||
return distanceAboveLimit - data.horizFreedom;
|
||||
}
|
||||
}
|
||||
|
@ -49,17 +49,17 @@ public class MovingPlayerMonitor extends PlayerListener {
|
||||
|
||||
@Override
|
||||
public void onPlayerMove(PlayerMoveEvent event) {
|
||||
if(!event.isCancelled()) {
|
||||
MovingData data = MovingData.get(event.getPlayer());
|
||||
|
||||
check.updateVelocity(event.getPlayer().getVelocity(), data);
|
||||
|
||||
if(!event.isCancelled()) {
|
||||
if( event.getPlayer().isInsideVehicle()) {
|
||||
data.setBackPoint = event.getTo();
|
||||
}
|
||||
else {
|
||||
data.insideVehicle = false;
|
||||
}
|
||||
|
||||
check.updateVelocity(event.getPlayer().getVelocity(), data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user