This commit is contained in:
Auxilor
2022-10-24 17:17:32 +01:00
parent 52e81864ab
commit c4929b9af7
2 changed files with 3 additions and 5 deletions

View File

@@ -7,7 +7,6 @@ import org.bukkit.Bukkit
import org.bukkit.OfflinePlayer
import org.bukkit.Server
import java.util.*
import kotlin.contracts.contract
private val boosters = mutableSetOf<ActivatedBooster>()

View File

@@ -1,6 +1,5 @@
package com.willfp.boosters.boosters
import com.sun.tools.javac.jvm.Items
import com.willfp.boosters.BoostersPlugin
import com.willfp.boosters.getAmountOfBooster
import com.willfp.eco.core.config.interfaces.Config
@@ -33,19 +32,19 @@ class Booster(
plugin.namespacedKeyFactory.create(id),
PersistentDataKeyType.INT,
0
).player()
)
val activeDataKey: PersistentDataKey<String> = PersistentDataKey(
plugin.namespacedKeyFactory.create("${id}_active"),
PersistentDataKeyType.STRING,
""
).server()
)
val expiryTimeKey = PersistentDataKey(
plugin.namespacedKeyFactory.create("${id}_expiry_time"),
PersistentDataKeyType.DOUBLE,
0.0
).server()
)
val active: ActivatedBooster?
get() {