From f2f4d464b2cd4593b6965bea8d91a489a965d955 Mon Sep 17 00:00:00 2001 From: xGinko Date: Sun, 24 Dec 2023 15:16:58 +0100 Subject: [PATCH] finalize --- .../me/moomoo/anarchyexploitfixes/utils/TPSCache.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/utils/TPSCache.java b/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/utils/TPSCache.java index 14619ba2e..771ee8cce 100755 --- a/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/utils/TPSCache.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/utils/TPSCache.java @@ -30,12 +30,12 @@ public interface TPSCache { } } - class Default implements TPSCache { + final class Default implements TPSCache { private final Server server; private final Cache 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(); } @@ -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 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();