Potential fix for problems with Borderguard Lite

This commit is contained in:
Evenprime 2011-03-28 15:27:44 +02:00
parent fdd8bfdf6d
commit 3e92d0b9a2
2 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,7 @@ name: NoCheatPlugin
author: Evenprime
main: cc.co.evenprime.bukkit.nocheat.NoCheatPlugin
version: 0.7.5a
version: 0.7.6
commands:
nocheat:

View File

@ -372,10 +372,11 @@ public class MovingCheck extends Check {
}
else {
if(!event.isCancelled()) {
// If it wasn't our plugin that ordered the teleport, forget (almost) all our information and start from scratch at the new location
data.speedhackSetBackPoint = event.getTo().clone();
// If it wasn't our plugin that ordered the teleport, forget (almost) all our information and start from scratch
// Setback points are created automatically the next time a move event is handled
data.speedhackSetBackPoint = null;
data.movingSetBackPoint = null;
data.speedhackEventsSinceLastCheck = 0;
data.movingSetBackPoint = event.getTo().clone();
data.movingJumpPhase = 0;
}
}