File tree Expand file tree Collapse file tree
eco-core/core-plugin/src/main/kotlin/com/willfp/ecoscrolls/target Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ allprojects {
4545 compileOnly(" com.willfp:eco:$ecoVersion " )
4646 compileOnly(" org.jetbrains:annotations:26.0.2" )
4747 compileOnly(" org.jetbrains.kotlin:kotlin-stdlib:2.3.0" )
48- compileOnly(" com.github.ben-manes.caffeine:caffeine:3.2.3" )
4948 }
5049
5150 java {
Original file line number Diff line number Diff line change 11package com.willfp.ecoscrolls.target
22
3- import com.github.benmanes.caffeine .cache.Caffeine
3+ import com.willfp.eco.core .cache.EcoCache
44import com.willfp.eco.core.items.HashedItem
55import com.willfp.eco.core.registry.Registry
66import com.willfp.ecoscrolls.plugin
77import org.bukkit.inventory.ItemStack
8- import java.util.concurrent.TimeUnit
8+ import java.time.Duration
99
1010object Targets : Registry<Target>() {
1111 init {
@@ -40,6 +40,6 @@ object Targets : Registry<Target>() {
4040 }
4141}
4242
43- private val targetsCache = Caffeine .newBuilder ()
44- .expireAfterAccess(5 , TimeUnit . SECONDS )
45- .build< HashedItem , List < Target >> ()
43+ private val targetsCache = EcoCache .builder< HashedItem , List < Target >> ()
44+ .expireAfterAccess(Duration .ofSeconds( 5 ) )
45+ .build()
Original file line number Diff line number Diff line change 11# libreforge-updater
22# Sat May 30 17:57:36 BST 2026
3- eco-version =7.6 .0
3+ eco-version =7.7 .0
44kotlin.code.style =official
55libreforge-version =5.6.0
66version =2.7.0
You can’t perform that action at this time.
0 commit comments