mirror of
https://github.com/Auxilor/EcoSkills.git
synced 2026-01-04 15:41:36 +00:00
Updated EcoEnchantsEnchantingLeveller
This commit is contained in:
@@ -5,7 +5,7 @@ dependencies {
|
||||
compileOnly 'org.spigotmc:spigot-api:1.19.1-R0.1-SNAPSHOT'
|
||||
compileOnly 'com.gmail.filoghost.holographicdisplays:holographicdisplays-api:2.4.0'
|
||||
compileOnly 'com.comphenix.protocol:ProtocolLib:4.7.0'
|
||||
compileOnly 'com.willfp:EcoEnchants:8.2.0'
|
||||
compileOnly 'com.willfp:EcoEnchants:9.0.0-b37'
|
||||
compileOnly 'net.kyori:adventure-api:4.10.1'
|
||||
compileOnly 'net.essentialsx:EssentialsX:2.19.0'
|
||||
compileOnly 'com.github.ben-manes.caffeine:caffeine:3.0.6'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.willfp.ecoskills.integrations
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.EcoEnchants
|
||||
import com.willfp.ecoenchants.enchantments.meta.EnchantmentType
|
||||
import com.willfp.eco.core.fast.fast
|
||||
import com.willfp.ecoenchants.enchants.wrap
|
||||
import com.willfp.ecoskills.EcoSkillsPlugin
|
||||
import com.willfp.ecoskills.giveSkillExperience
|
||||
import com.willfp.ecoskills.skills.Skills
|
||||
@@ -23,7 +23,7 @@ class EcoEnchantsEnchantingLeveller(
|
||||
}
|
||||
|
||||
this.plugin.scheduler.runLater({
|
||||
if (EcoEnchants.hasAnyOfType(event.item, EnchantmentType.SPECIAL)) {
|
||||
if (event.item.fast().enchants.keys.any { it.wrap().type.id == "special" }) {
|
||||
val toGive = Skills.ENCHANTING.config.getDouble("ecoenchants.xp-for-special")
|
||||
|
||||
player.giveSkillExperience(Skills.ENCHANTING, toGive)
|
||||
|
||||
Reference in New Issue
Block a user