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

Fixed reforge GUI

This commit is contained in:
Auxilor
2023-03-28 17:20:56 +01:00
parent 0b6652ef4e
commit b4c70a5e11
2 changed files with 5 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ import com.willfp.eco.core.sound.PlayableSound
import com.willfp.ecomponent.CaptiveItem
import com.willfp.ecomponent.menuStateVar
import com.willfp.ecomponent.setSlot
import com.willfp.libreforge.LibreforgeSpigotPlugin
import com.willfp.reforges.reforges.PriceMultipliers
import com.willfp.reforges.reforges.PriceMultipliers.reforgePriceMultiplier
import com.willfp.reforges.reforges.Reforge
@@ -129,7 +130,9 @@ private class ActivatorSlot(
if (!price.canAfford(player)) {
player.sendMessage(
plugin.langYml.getMessage("cannot-afford-price").replace("%price%", price.getDisplay(player))
// Not clean but hey ho
EcoPlugin.getPlugin(LibreforgeSpigotPlugin::class.java)
.langYml.getMessage("cannot-afford-price").replace("%price%", price.getDisplay(player))
)
if (plugin.configYml.getBool("gui.cannot-afford-sound.enabled")) {

View File

@@ -1,5 +1,5 @@
#libreforge-updater
#Tue Mar 28 15:57:47 BST 2023
#Tue Mar 28 16:07:54 BST 2023
kotlin.code.style=official
libreforge-version=4.0.0
version=6.0.0