diff --git a/eco-api/src/main/kotlin/com/willfp/libreforge/effects/Effect.kt b/eco-api/src/main/kotlin/com/willfp/libreforge/effects/Effect.kt index 28223e8a1..6f7a22ca7 100644 --- a/eco-api/src/main/kotlin/com/willfp/libreforge/effects/Effect.kt +++ b/eco-api/src/main/kotlin/com/willfp/libreforge/effects/Effect.kt @@ -9,6 +9,7 @@ import com.willfp.libreforge.triggers.TriggerData import org.bukkit.NamespacedKey import org.bukkit.Sound import org.bukkit.entity.Player +import org.bukkit.event.Listener import java.util.* import kotlin.math.ceil @@ -16,7 +17,7 @@ abstract class Effect( id: String, val supportsFilters: Boolean = false, val applicableTriggers: Collection = emptyList() -) : ConfigurableProperty(id) { +) : ConfigurableProperty(id), Listener { private val cooldownTracker = mutableMapOf() init { diff --git a/eco-api/src/main/kotlin/com/willfp/libreforge/effects/effects/EffectHungerMultiplier.kt b/eco-api/src/main/kotlin/com/willfp/libreforge/effects/effects/EffectHungerMultiplier.kt index c6d82cb43..2c8f4b892 100644 --- a/eco-api/src/main/kotlin/com/willfp/libreforge/effects/effects/EffectHungerMultiplier.kt +++ b/eco-api/src/main/kotlin/com/willfp/libreforge/effects/effects/EffectHungerMultiplier.kt @@ -12,7 +12,7 @@ import kotlin.math.ceil class EffectHungerMultiplier : Effect( "hunger_multiplier", - supportsFilters = true, + supportsFilters = false, applicableTriggers = Triggers.withParameters( TriggerParameter.EVENT ) diff --git a/eco-api/src/main/kotlin/com/willfp/libreforge/effects/effects/EffectRegenMultiplier.kt b/eco-api/src/main/kotlin/com/willfp/libreforge/effects/effects/EffectRegenMultiplier.kt index 4ed86fd9f..89e901334 100644 --- a/eco-api/src/main/kotlin/com/willfp/libreforge/effects/effects/EffectRegenMultiplier.kt +++ b/eco-api/src/main/kotlin/com/willfp/libreforge/effects/effects/EffectRegenMultiplier.kt @@ -10,7 +10,7 @@ import com.willfp.libreforge.triggers.wrappers.WrappedRegenEvent class EffectRegenMultiplier : Effect( "regen_multiplier", - supportsFilters = true, + supportsFilters = false, applicableTriggers = Triggers.withParameters( TriggerParameter.EVENT ) diff --git a/eco-api/src/main/kotlin/com/willfp/libreforge/effects/effects/EffectXpMultiplier.kt b/eco-api/src/main/kotlin/com/willfp/libreforge/effects/effects/EffectXpMultiplier.kt index 0e85405cf..18ce59c46 100644 --- a/eco-api/src/main/kotlin/com/willfp/libreforge/effects/effects/EffectXpMultiplier.kt +++ b/eco-api/src/main/kotlin/com/willfp/libreforge/effects/effects/EffectXpMultiplier.kt @@ -12,7 +12,7 @@ import kotlin.math.ceil class EffectXpMultiplier : Effect( "xp_multiplier", - supportsFilters = true, + supportsFilters = false, applicableTriggers = Triggers.withParameters( TriggerParameter.EVENT )