Updated libreforge

This commit is contained in:
Auxilor 2022-02-05 13:21:56 +00:00
parent a2474e6943
commit 61f131b480
4 changed files with 28 additions and 3 deletions

View File

@ -3,6 +3,6 @@ version rootProject.version
subprojects {
dependencies {
implementation 'com.willfp:libreforge:3.13.1'
implementation 'com.willfp:libreforge:3.14.2'
}
}

View File

@ -1,6 +1,7 @@
package com.willfp.ecoenchants;
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.fast.FastItemStack;
import com.willfp.eco.core.integrations.IntegrationLoader;
@ -15,7 +16,6 @@ import com.willfp.ecoenchants.display.EnchantDisplay;
import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.custom.CustomEcoEnchantRequirementListeners;
import com.willfp.ecoenchants.enchantments.custom.CustomEcoEnchants;
import com.willfp.ecoenchants.enchantments.custom.CustomEnchantEnableListeners;
import com.willfp.ecoenchants.enchantments.custom.CustomEnchantLookup;
import com.willfp.ecoenchants.enchantments.support.merging.anvil.AnvilListeners;
@ -32,6 +32,7 @@ import com.willfp.ecoenchants.integrations.registration.RegistrationManager;
import com.willfp.ecoenchants.integrations.registration.plugins.IntegrationCMI;
import com.willfp.ecoenchants.integrations.registration.plugins.IntegrationEssentials;
import com.willfp.libreforge.LibReforgePlugin;
import com.willfp.libreforge.chains.EffectChains;
import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.event.HandlerList;
@ -88,6 +89,10 @@ public class EcoEnchantsPlugin extends LibReforgePlugin {
@Override
public void handleEnableAdditional() {
for (Config config : customEnchantsYml.getSubsections("chains")) {
EffectChains.compile(config, "Custom Enchant Chains");
}
this.getLogger().info(EcoEnchants.values().size() + " Enchantments Loaded");
TelekinesisUtils.registerTest(player -> FastItemStack.wrap(player.getInventory().getItemInMainHand()).getLevelOnItem(EcoEnchants.TELEKINESIS, false) > 0);

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
enchants:
- id: escape
type: normal

View File

@ -1,2 +1,2 @@
version = 8.35.1
version = 8.36.0
plugin-name = EcoEnchants