mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +00:00
Further caching improvements
This commit is contained in:
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));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user