mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-16 08:57:32 +02: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
|
author: Evenprime
|
||||||
|
|
||||||
main: cc.co.evenprime.bukkit.nocheat.NoCheatPlugin
|
main: cc.co.evenprime.bukkit.nocheat.NoCheatPlugin
|
||||||
version: 0.6.8
|
version: 0.6.8a
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
nocheat:
|
nocheat:
|
||||||
|
@ -347,7 +347,7 @@ public class MovingCheck {
|
|||||||
protected static void legitimateMove(NoCheatData data, PlayerMoveEvent event) {
|
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
|
// 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;
|
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 we have stored a location for the player, we put him back there
|
||||||
if(l != null) {
|
if(l != null) {
|
||||||
// Lets try it that way. Maybe now people don't "disappear" any longer
|
// Lets try it that way. Maybe now people don't "disappear" any longer
|
||||||
event.setFrom(l);
|
event.setFrom(l.clone());
|
||||||
event.setTo(l);
|
event.setTo(l.clone());
|
||||||
event.getPlayer().teleportTo(l);
|
event.getPlayer().teleportTo(l.clone());
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user