Skip to content

Commit

Permalink
finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Dec 24, 2023
1 parent 19760c7 commit f2f4d46
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ public interface TPSCache {
}
}

class Default implements TPSCache {
final class Default implements TPSCache {

private final Server server;
private final Cache<Boolean, Double> cached_tps;

public Default(JavaPlugin plugin, long checkDelayMillis) {
Default(JavaPlugin plugin, long checkDelayMillis) {
this.server = plugin.getServer();
this.cached_tps = Caffeine.newBuilder().expireAfterWrite(Duration.ofMillis(checkDelayMillis)).build();
}
Expand All @@ -61,13 +61,13 @@ public double getTPS(Location location) {
}
}

class Folia implements TPSCache {
final class Folia implements TPSCache {

private final JavaPlugin plugin;
private final Server server;
private final Cache<TickRegionScheduler.RegionScheduleHandle, Double> cached_tps;

public Folia(JavaPlugin plugin, long checkDelayMillis) {
Folia(JavaPlugin plugin, long checkDelayMillis) {
this.plugin = plugin;
this.server = plugin.getServer();
this.cached_tps = Caffeine.newBuilder().expireAfterWrite(Duration.ofMillis(checkDelayMillis)).build();
Expand Down

0 comments on commit f2f4d46

Please sign in to comment.