mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-03 01:00:20 +01:00
Fixed a small bug causing the log message summary to be displayed
earlier than I intended.
This commit is contained in:
parent
b821292bf2
commit
5ba7ce4991
@ -3,7 +3,7 @@ name: NoCheatPlugin
|
||||
author: Evenprime
|
||||
|
||||
main: cc.co.evenprime.bukkit.nocheat.NoCheatPlugin
|
||||
version: 0.6.8
|
||||
version: 0.6.8a
|
||||
|
||||
commands:
|
||||
nocheat:
|
||||
|
@ -347,7 +347,7 @@ public class MovingCheck {
|
||||
protected static void legitimateMove(NoCheatData data, PlayerMoveEvent event) {
|
||||
|
||||
// Give some logging about violations if the player hasn't done any for at least two seconds
|
||||
if(data.movingLastViolationTime != 0 && data.movingLastViolationTime < System.currentTimeMillis() + 2000L) {
|
||||
if(data.movingLastViolationTime != 0 && data.movingLastViolationTime + 1000L > System.currentTimeMillis()) {
|
||||
|
||||
data.movingLastViolationTime = 0;
|
||||
|
||||
@ -395,9 +395,9 @@ public class MovingCheck {
|
||||
// If we have stored a location for the player, we put him back there
|
||||
if(l != null) {
|
||||
// Lets try it that way. Maybe now people don't "disappear" any longer
|
||||
event.setFrom(l);
|
||||
event.setTo(l);
|
||||
event.getPlayer().teleportTo(l);
|
||||
event.setFrom(l.clone());
|
||||
event.setTo(l.clone());
|
||||
event.getPlayer().teleportTo(l.clone());
|
||||
event.setCancelled(true);
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user