From 664fdd1374cba9d68fab8d6e28762b2d71cebd81 Mon Sep 17 00:00:00 2001 From: NeatMonster Date: Mon, 20 Aug 2012 21:51:53 +0200 Subject: [PATCH] Fixed label names. --- .../neatmonster/nocheatplus/checks/moving/MovingListener.java | 3 +-- src/fr/neatmonster/nocheatplus/metrics/MetricsData.java | 2 +- src/fr/neatmonster/nocheatplus/utilities/LagMeasureTask.java | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java b/src/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java index 22250e1a..e448f51d 100644 --- a/src/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java +++ b/src/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java @@ -172,10 +172,9 @@ public class MovingListener implements Listener { * |___/ */ final Player player = event.getPlayer(); - final MovingData data = MovingData.getData(player); if (survivalFly.isEnabled(player) && survivalFly.check(player)) // To cancel the event, we simply teleport the player to his last safe location. - player.teleport(data.lastSafeLocations[0]); + player.teleport(MovingData.getData(player).lastSafeLocations[0]); } /** diff --git a/src/fr/neatmonster/nocheatplus/metrics/MetricsData.java b/src/fr/neatmonster/nocheatplus/metrics/MetricsData.java index 965c1934..8d54a363 100644 --- a/src/fr/neatmonster/nocheatplus/metrics/MetricsData.java +++ b/src/fr/neatmonster/nocheatplus/metrics/MetricsData.java @@ -36,7 +36,7 @@ public class MetricsData { * the ticks */ public TicksPlotter(final int ticks) { - super("" + ticks); + super(ticks + " tick(s)"); this.ticks = ticks; } diff --git a/src/fr/neatmonster/nocheatplus/utilities/LagMeasureTask.java b/src/fr/neatmonster/nocheatplus/utilities/LagMeasureTask.java index 621e4a61..e1ad7460 100644 --- a/src/fr/neatmonster/nocheatplus/utilities/LagMeasureTask.java +++ b/src/fr/neatmonster/nocheatplus/utilities/LagMeasureTask.java @@ -64,7 +64,7 @@ public class LagMeasureTask implements Runnable { */ public static void start(final NoCheatPlus plugin) { instance.lagMeasureTaskId = Bukkit.getServer().getScheduler() - .scheduleSyncRepeatingTask(plugin, instance, 20, 20); + .scheduleSyncRepeatingTask(plugin, instance, 20L, 20L); } /** The last in game second time. */