Further caching improvements

This commit is contained in:
William committed 2023-03-21 20:20:08 +00:00
1 parent a959aa9519
commit 8923b44c92
12 files changed
+212 -46

No files matched your search

@@ -16,21 +16,16 @@ public class TeleportRequest {
@Expose
@SerializedName("requester_name")
private String requesterName;
@Expose
@SerializedName("requester_position")
private Position requesterPosition;
@Expose
@SerializedName("expiry_time")
private long expiryTime;
@Expose
private Type type;
@Expose
private Status status;
@Expose
private String recipientName;
@@ -63,7 +63,7 @@ public class TimedTeleport extends Teleport {
// Run the warmup
final AtomicInteger warmupTaskId = new AtomicInteger();
final Runnable delayRunnable = (() -> {
final Runnable countdownRunnable = (() -> {
// Display countdown action bar message
if (timeLeft > 0) {
plugin.getSettings().getSoundEffect(Settings.SoundEffectAction.TELEPORTATION_WARMUP)
@@ -82,7 +82,7 @@ public class TimedTeleport extends Teleport {
plugin.cancelTask(warmupTaskId.get());
}
});
warmupTaskId.set(plugin.runAsyncRepeating(delayRunnable, 20));
warmupTaskId.set(plugin.runAsyncRepeating(countdownRunnable, 20L));
});
}