diff --git a/build.gradle b/build.gradle index 88ba4f6..0a972d8 100644 --- a/build.gradle +++ b/build.gradle @@ -62,7 +62,7 @@ allprojects { dependencies { compileOnly 'com.willfp:eco:6.20.0' - implementation 'com.willfp:libreforge:3.13.1' + implementation 'com.willfp:libreforge:3.14.2' compileOnly 'org.jetbrains:annotations:23.0.0' diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoarmor/EcoArmorPlugin.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoarmor/EcoArmorPlugin.kt index 98c6949..ce6005e 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoarmor/EcoArmorPlugin.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoarmor/EcoArmorPlugin.kt @@ -16,6 +16,7 @@ import com.willfp.ecoarmor.upgrades.Tiers import com.willfp.ecoarmor.util.DiscoverRecipeListener import com.willfp.ecoarmor.util.EffectListener import com.willfp.libreforge.LibReforgePlugin +import com.willfp.libreforge.chains.EffectChains import org.bukkit.event.Listener class EcoArmorPlugin : LibReforgePlugin(687, 10002, "&c") { @@ -27,6 +28,11 @@ class EcoArmorPlugin : LibReforgePlugin(687, 10002, "&c") { registerHolderProvider { ListUtils.toSingletonList(ArmorUtils.getActiveSet(it)) } } + override fun handleEnableAdditional() { + ecoArmorYml.getSubsections("chains").mapNotNull { + EffectChains.compile(it, "Effect Chains") + } + } override fun handleReloadAdditional() { logger.info(Tiers.values().size.toString() + " Tiers Loaded") diff --git a/eco-core/core-plugin/src/main/resources/ecoarmor.yml b/eco-core/core-plugin/src/main/resources/ecoarmor.yml index 639e756..5fa3dad 100644 --- a/eco-core/core-plugin/src/main/resources/ecoarmor.yml +++ b/eco-core/core-plugin/src/main/resources/ecoarmor.yml @@ -1,3 +1,23 @@ +chains: + - id: example_chain + effects: + - id: teleport + - id: potion_effect + args: + effect: blindness + level: 3 + duration: 30 + apply_to_player: true + - id: send_message + args: + message: "&fYou have been teleported!" + action_bar: true + - id: play_sound + args: + sound: entity_dragon_fireball_explode + pitch: 1.5 + volume: 4 + sets: - id: reaper conditions: [] diff --git a/gradle.properties b/gradle.properties index 8e553fc..8da9a34 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version = 7.28.1 +version = 7.29.0 plugin-name = EcoArmor \ No newline at end of file