mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-02 08:40:01 +01:00
Fixed label names.
This commit is contained in:
parent
af72986ae8
commit
664fdd1374
@ -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]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -36,7 +36,7 @@ public class MetricsData {
|
||||
* the ticks
|
||||
*/
|
||||
public TicksPlotter(final int ticks) {
|
||||
super("" + ticks);
|
||||
super(ticks + " tick(s)");
|
||||
this.ticks = ticks;
|
||||
}
|
||||
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user