9
0
mirror of https://github.com/Auxilor/Reforges.git synced 2025-12-27 19:09:15 +00:00

Updated libreforge

This commit is contained in:
Auxilor
2022-02-05 13:40:01 +00:00
parent a03d0c8e4c
commit 49dfaaa893
4 changed files with 28 additions and 2 deletions

View File

@@ -1,10 +1,12 @@
package com.willfp.reforges;
import com.willfp.eco.core.command.impl.PluginCommand;
import com.willfp.eco.core.config.interfaces.Config;
import com.willfp.eco.core.display.DisplayModule;
import com.willfp.eco.core.integrations.IntegrationLoader;
import com.willfp.eco.core.items.Items;
import com.willfp.libreforge.LibReforgePlugin;
import com.willfp.libreforge.chains.EffectChains;
import com.willfp.reforges.commands.CommandReforge;
import com.willfp.reforges.commands.CommandReforges;
import com.willfp.reforges.config.ReforgesYml;
@@ -58,6 +60,10 @@ public class ReforgesPlugin extends LibReforgePlugin {
@Override
public void handleEnableAdditional() {
Items.registerArgParser(new ReforgeArgParser());
for (Config config : reforgesYml.getSubsections("chains")) {
EffectChains.compile(config, "Chains");
}
}
@Override

View File

@@ -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
reforges:
- id: acute
name: "<gradient:#4776E6>Acute</gradient:#8E54E9>"