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
@@ -7,7 +7,6 @@ import org.bukkit.Bukkit
import org.bukkit.OfflinePlayer import org.bukkit.OfflinePlayer
import org.bukkit.Server import org.bukkit.Server
import java.util.* import java.util.*
import kotlin.contracts.contract
private val boosters = mutableSetOf<ActivatedBooster>() private val boosters = mutableSetOf<ActivatedBooster>()
@@ -1,6 +1,5 @@
package com.willfp.boosters.boosters package com.willfp.boosters.boosters
import com.sun.tools.javac.jvm.Items
import com.willfp.boosters.BoostersPlugin import com.willfp.boosters.BoostersPlugin
import com.willfp.boosters.getAmountOfBooster import com.willfp.boosters.getAmountOfBooster
import com.willfp.eco.core.config.interfaces.Config import com.willfp.eco.core.config.interfaces.Config
@@ -33,19 +32,19 @@ class Booster(
plugin.namespacedKeyFactory.create(id), plugin.namespacedKeyFactory.create(id),
PersistentDataKeyType.INT, PersistentDataKeyType.INT,
0 0
).player() )
val activeDataKey: PersistentDataKey<String> = PersistentDataKey( val activeDataKey: PersistentDataKey<String> = PersistentDataKey(
plugin.namespacedKeyFactory.create("${id}_active"), plugin.namespacedKeyFactory.create("${id}_active"),
PersistentDataKeyType.STRING, PersistentDataKeyType.STRING,
"" ""
).server() )
val expiryTimeKey = PersistentDataKey( val expiryTimeKey = PersistentDataKey(
plugin.namespacedKeyFactory.create("${id}_expiry_time"), plugin.namespacedKeyFactory.create("${id}_expiry_time"),
PersistentDataKeyType.DOUBLE, PersistentDataKeyType.DOUBLE,
0.0 0.0
).server() )
val active: ActivatedBooster? val active: ActivatedBooster?
get() { get() {