mirror of
https://github.com/Auxilor/Reforges.git
synced 2025-12-26 10:29:11 +00:00
libreforge-updater
This commit is contained in:
@@ -277,7 +277,7 @@ object ReforgeGUI {
|
||||
)
|
||||
|
||||
onRender { player, menu ->
|
||||
menu.addState(
|
||||
menu.setState(
|
||||
player, "item_to_reforge", menu.getCaptiveItem(
|
||||
player,
|
||||
plugin.configYml.getInt("gui.item-slot.row"),
|
||||
@@ -285,7 +285,7 @@ object ReforgeGUI {
|
||||
)
|
||||
)
|
||||
|
||||
menu.addState(
|
||||
menu.setState(
|
||||
player, "reforge_stone", menu.getCaptiveItem(
|
||||
player,
|
||||
plugin.configYml.getInt("gui.stone-slot.row"),
|
||||
@@ -321,7 +321,7 @@ object ReforgeGUI {
|
||||
}
|
||||
}
|
||||
|
||||
menu.addState(player, "reforge_status", PricedReforgeStatus(status, cost))
|
||||
menu.setState(player, "reforge_status", PricedReforgeStatus(status, cost))
|
||||
}
|
||||
|
||||
onClose { event, menu ->
|
||||
|
||||
@@ -30,13 +30,15 @@ class Reforge(
|
||||
|
||||
val targets = config.getStrings("targets").mapNotNull { ReforgeTargets.getByName(it) }.toSet()
|
||||
|
||||
override val effects = config.getSubsections("effects").mapNotNull {
|
||||
Effects.compile(it, "Reforge ID $id")
|
||||
}.toSet()
|
||||
override val effects = Effects.compile(
|
||||
config.getSubsections("effects"),
|
||||
"Reforge $id"
|
||||
)
|
||||
|
||||
override val conditions = config.getSubsections("conditions").mapNotNull {
|
||||
Conditions.compile(it, "Reforge ID $id")
|
||||
}.toSet()
|
||||
override val conditions = Conditions.compile(
|
||||
config.getSubsections("conditions"),
|
||||
"Reforge $id"
|
||||
)
|
||||
|
||||
val requiresStone = config.getBool("stone.enabled")
|
||||
|
||||
|
||||
@@ -179,6 +179,13 @@ cannot-afford-type:
|
||||
sound: "BLOCK_NOTE_BLOCK_PLING"
|
||||
pitch: 0.5
|
||||
|
||||
cannot-afford-price:
|
||||
in-actionbar: true
|
||||
sound:
|
||||
enabled: true
|
||||
sound: "BLOCK_NOTE_BLOCK_PLING"
|
||||
pitch: 0.5
|
||||
|
||||
point-names: # If you have point names that look ugly (eg g_souls) then you can map them to nice names to be shown to players.
|
||||
example_point: "Nicely Formatted Point"
|
||||
|
||||
|
||||
@@ -3,20 +3,11 @@ messages:
|
||||
no-permission: "&cYou don't have permission to do this!"
|
||||
not-player: "&cThis command must be run by a player"
|
||||
invalid-command: "&cUnknown subcommand!"
|
||||
reloaded: "Reloaded! (Restart if you're removed reforges!) Took %time%ms"
|
||||
insufficient-money: "&cYou don't have enough money for this!"
|
||||
insufficient-xp: "&cYou don't have enough xp levels for this!"
|
||||
applied-reforge: "Applied %reforge%&r reforge!"
|
||||
needs-player: "&cYou must specify a player"
|
||||
invalid-player: "&cInvalid player!"
|
||||
needs-stone: "&cYou must specify a reforge stone"
|
||||
invalid-stone: "&cInvalid reforge!"
|
||||
give-success: "Gave &a%reforge%&r reforge stone to &a%recipient%"
|
||||
on-cooldown: "&cThis reforge is on cooldown! &fTime left: &a%seconds% seconds"
|
||||
reloaded: "Reloaded!"
|
||||
cannot-afford: "&cYou can't afford to do this! &fCost: &a$$%cost%"
|
||||
cannot-afford-type: "&cYou can't afford to do this! &fCost: &a%cost% %type%"
|
||||
invalid-reforge: "&cInvalid reforge!"
|
||||
needs-reforge: "&cYou must specify a reforge"
|
||||
cannot-afford-price: "&cYou can't afford to do this! &fPrice: %price%"
|
||||
on-cooldown: "&cThis effect is on cooldown! &fTime left: &a%seconds% seconds"
|
||||
cannot-transmit: "&cYou can't transmit here!"
|
||||
must-specify-lrcdb-id: "&cYou must specify the ID of the config to download! Not sure what this means? Go to &alrcdb.auxilor.io"
|
||||
lrcdb-import-error: "&cError importing config: &f%message%"
|
||||
@@ -26,6 +17,17 @@ messages:
|
||||
lrcdb-export-error: "&cError exporting config: &f%message%"
|
||||
lrcdb-export-success: "&fExported &a%name%&f! View it on &alrcdb.auxilor.io&f, or share your config ID: &f%id%"
|
||||
|
||||
insufficient-money: "&cYou don't have enough money for this!"
|
||||
insufficient-xp: "&cYou don't have enough xp levels for this!"
|
||||
applied-reforge: "Applied %reforge%&r reforge!"
|
||||
needs-player: "&cYou must specify a player"
|
||||
invalid-player: "&cInvalid player!"
|
||||
needs-stone: "&cYou must specify a reforge stone"
|
||||
invalid-stone: "&cInvalid reforge!"
|
||||
give-success: "Gave &a%reforge%&r reforge stone to &a%recipient%"
|
||||
invalid-reforge: "&cInvalid reforge!"
|
||||
needs-reforge: "&cYou must specify a reforge"
|
||||
|
||||
menu:
|
||||
title: "Reforge Item"
|
||||
close: "&cClose"
|
||||
Reference in New Issue
Block a user