Skip to content

Commit

Permalink
Disabled filters on HungerMultiplier, RegenMultiplier, and XpMultiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Nov 25, 2021
1 parent 1839105 commit 8218a13
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ 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

abstract class Effect(
id: String,
val supportsFilters: Boolean = false,
val applicableTriggers: Collection<Trigger> = emptyList()
) : ConfigurableProperty(id) {
) : ConfigurableProperty(id), Listener {
private val cooldownTracker = mutableMapOf<UUID, Long>()

init {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import kotlin.math.ceil

class EffectHungerMultiplier : Effect(
"hunger_multiplier",
supportsFilters = true,
supportsFilters = false,
applicableTriggers = Triggers.withParameters(
TriggerParameter.EVENT
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import kotlin.math.ceil

class EffectXpMultiplier : Effect(
"xp_multiplier",
supportsFilters = true,
supportsFilters = false,
applicableTriggers = Triggers.withParameters(
TriggerParameter.EVENT
)
Expand Down

0 comments on commit 8218a13

Please sign in to comment.