Fixed label names.

This commit is contained in:
NeatMonster 2012-08-20 21:51:53 +02:00
parent af72986ae8
commit 664fdd1374
3 changed files with 3 additions and 4 deletions

View File

@ -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]);
}
/**

View File

@ -36,7 +36,7 @@ public class MetricsData {
* the ticks
*/
public TicksPlotter(final int ticks) {
super("" + ticks);
super(ticks + " tick(s)");
this.ticks = ticks;
}

View File

@ -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. */