From c4929b9af7832e716764c24c410c96f2fccaed46 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Mon, 24 Oct 2022 17:17:32 +0100 Subject: [PATCH] Fix --- .../com/willfp/boosters/boosters/ActivatedBooster.kt | 1 - .../main/kotlin/com/willfp/boosters/boosters/Booster.kt | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/boosters/ActivatedBooster.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/boosters/ActivatedBooster.kt index 6268229..f26cf9d 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/boosters/ActivatedBooster.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/boosters/ActivatedBooster.kt @@ -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() diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/boosters/Booster.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/boosters/Booster.kt index 9ca8109..3fb12ce 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/boosters/Booster.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/boosters/Booster.kt @@ -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 = 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() {