Skip to content

Commit

Permalink
Updated libreforge
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Jan 12, 2022
1 parent 96410c5 commit 525feec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 23 deletions.
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,11 @@ allprojects {

shadowJar {
relocate('com.willfp.libreforge', 'com.willfp.ecoarmor.libreforge')
relocate('redempt.crunch', 'com.willfp.ecoarmor.libreforge.crunch')
}

dependencies {
compileOnly 'io.auxilor:eco:6.18.1'
implementation 'com.willfp:libreforge:2.18.1'
implementation 'com.willfp:libreforge:3.0.0'

compileOnly 'org.jetbrains:annotations:23.0.0'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package com.willfp.ecoarmor

import com.willfp.eco.core.EcoPlugin
import com.willfp.eco.core.command.impl.PluginCommand
import com.willfp.eco.core.display.DisplayModule
import com.willfp.eco.core.integrations.IntegrationLoader
import com.willfp.eco.util.ListUtils
import com.willfp.ecoarmor.commands.CommandEcoarmor
import com.willfp.ecoarmor.config.EcoArmorYml
Expand All @@ -17,31 +15,22 @@ import com.willfp.ecoarmor.upgrades.CrystalListener
import com.willfp.ecoarmor.upgrades.Tiers
import com.willfp.ecoarmor.util.DiscoverRecipeListener
import com.willfp.ecoarmor.util.EffectListener
import com.willfp.libreforge.LibReforge
import com.willfp.libreforge.LibReforgePlugin
import org.bukkit.event.Listener

class EcoArmorPlugin : EcoPlugin(687, 10002, "&c") {
class EcoArmorPlugin : LibReforgePlugin(687, 10002, "&c") {
val ecoArmorYml: EcoArmorYml

init {
instance = this
ecoArmorYml = EcoArmorYml(this)
LibReforge.init(this)
LibReforge.registerHolderProvider { ListUtils.toSingletonList(ArmorUtils.getActiveSet(it)) }
registerHolderProvider { ListUtils.toSingletonList(ArmorUtils.getActiveSet(it)) }
}

override fun handleEnable() {
LibReforge.enable(this)
}

override fun handleDisable() {
LibReforge.disable(this)
}

override fun handleReload() {
override fun handleReloadAdditional() {
logger.info(Tiers.values().size.toString() + " Tiers Loaded")
logger.info(ArmorSets.values().size.toString() + " Sets Loaded")
LibReforge.reload(this)
}

override fun loadPluginCommands(): List<PluginCommand> {
Expand All @@ -61,16 +50,12 @@ class EcoArmorPlugin : EcoPlugin(687, 10002, "&c") {
)
}

override fun loadIntegrationLoaders(): List<IntegrationLoader> {
return LibReforge.getIntegrationLoaders()
}

override fun createDisplayModule(): DisplayModule {
return ArmorDisplay(this)
}

override fun getMinimumEcoVersion(): String {
return "6.17.0"
return "6.19.0"
}

companion object {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = 7.14.3
version = 7.15.0
plugin-name = EcoArmor

0 comments on commit 525feec

Please sign in to comment.