mirror of
https://github.com/Auxilor/EcoArmor.git
synced 2025-12-27 02:49:22 +00:00
Updated libreforge
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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: []
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
version = 7.28.1
|
||||
version = 7.29.0
|
||||
plugin-name = EcoArmor
|
||||
Reference in New Issue
Block a user