mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Updated libreforge
This commit is contained in:
parent
a2474e6943
commit
61f131b480
@ -3,6 +3,6 @@ version rootProject.version
|
|||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.willfp:libreforge:3.13.1'
|
implementation 'com.willfp:libreforge:3.14.2'
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,7 @@
|
|||||||
package com.willfp.ecoenchants;
|
package com.willfp.ecoenchants;
|
||||||
|
|
||||||
import com.willfp.eco.core.command.impl.PluginCommand;
|
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.display.DisplayModule;
|
||||||
import com.willfp.eco.core.fast.FastItemStack;
|
import com.willfp.eco.core.fast.FastItemStack;
|
||||||
import com.willfp.eco.core.integrations.IntegrationLoader;
|
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.EcoEnchant;
|
||||||
import com.willfp.ecoenchants.enchantments.EcoEnchants;
|
import com.willfp.ecoenchants.enchantments.EcoEnchants;
|
||||||
import com.willfp.ecoenchants.enchantments.custom.CustomEcoEnchantRequirementListeners;
|
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.CustomEnchantEnableListeners;
|
||||||
import com.willfp.ecoenchants.enchantments.custom.CustomEnchantLookup;
|
import com.willfp.ecoenchants.enchantments.custom.CustomEnchantLookup;
|
||||||
import com.willfp.ecoenchants.enchantments.support.merging.anvil.AnvilListeners;
|
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.IntegrationCMI;
|
||||||
import com.willfp.ecoenchants.integrations.registration.plugins.IntegrationEssentials;
|
import com.willfp.ecoenchants.integrations.registration.plugins.IntegrationEssentials;
|
||||||
import com.willfp.libreforge.LibReforgePlugin;
|
import com.willfp.libreforge.LibReforgePlugin;
|
||||||
|
import com.willfp.libreforge.chains.EffectChains;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.event.HandlerList;
|
import org.bukkit.event.HandlerList;
|
||||||
@ -88,6 +89,10 @@ public class EcoEnchantsPlugin extends LibReforgePlugin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handleEnableAdditional() {
|
public void handleEnableAdditional() {
|
||||||
|
for (Config config : customEnchantsYml.getSubsections("chains")) {
|
||||||
|
EffectChains.compile(config, "Custom Enchant Chains");
|
||||||
|
}
|
||||||
|
|
||||||
this.getLogger().info(EcoEnchants.values().size() + " Enchantments Loaded");
|
this.getLogger().info(EcoEnchants.values().size() + " Enchantments Loaded");
|
||||||
|
|
||||||
TelekinesisUtils.registerTest(player -> FastItemStack.wrap(player.getInventory().getItemInMainHand()).getLevelOnItem(EcoEnchants.TELEKINESIS, false) > 0);
|
TelekinesisUtils.registerTest(player -> FastItemStack.wrap(player.getInventory().getItemInMainHand()).getLevelOnItem(EcoEnchants.TELEKINESIS, false) > 0);
|
||||||
|
@ -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:
|
enchants:
|
||||||
- id: escape
|
- id: escape
|
||||||
type: normal
|
type: normal
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
version = 8.35.1
|
version = 8.36.0
|
||||||
plugin-name = EcoEnchants
|
plugin-name = EcoEnchants
|
Loading…
Reference in New Issue
Block a user