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'
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.willfp.eco.core.command.impl.PluginCommand
|
||||
import com.willfp.eco.core.display.DisplayModule
|
||||
import com.willfp.eco.core.items.CustomItem
|
||||
import com.willfp.libreforge.LibReforgePlugin
|
||||
import com.willfp.libreforge.chains.EffectChains
|
||||
import com.willfp.talismans.command.CommandTalismans
|
||||
import com.willfp.talismans.config.TalismansYml
|
||||
import com.willfp.talismans.display.TalismanDisplay
|
||||
@@ -26,6 +27,12 @@ class TalismansPlugin : LibReforgePlugin(611, 9865, "&6") {
|
||||
registerHolderProvider { TalismanChecks.getTalismansOnPlayer(it) }
|
||||
}
|
||||
|
||||
override fun handleEnableAdditional() {
|
||||
talismansYml.getSubsections("chains").mapNotNull {
|
||||
EffectChains.compile(it, "Chains")
|
||||
}
|
||||
}
|
||||
|
||||
override fun handleReloadAdditional() {
|
||||
logger.info("${Talismans.values().size} Talismans Loaded")
|
||||
CustomItem(
|
||||
|
||||
@@ -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
|
||||
|
||||
talismans:
|
||||
- id: archery_1
|
||||
name: "&aArchery Talisman I"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
version = 5.21.1
|
||||
version = 5.22.0
|
||||
plugin-name = Talismans
|
||||
Reference in New Issue
Block a user