libreforge-updater

This commit is contained in:
Auxilor
2022-10-24 17:05:46 +01:00
parent b5e9ff67bc
commit 52e81864ab
8 changed files with 33 additions and 214 deletions

View File

@@ -68,10 +68,6 @@ class BoostersPlugin : LibReforgePlugin(supportsLrcdb = false) {
)
}
override fun getMinimumEcoVersion(): String {
return "6.35.1"
}
init {
instance = this
}

View File

@@ -1,5 +1,6 @@
package com.willfp.boosters.boosters
import com.sun.tools.javac.jvm.Items
import com.willfp.boosters.BoostersPlugin
import com.willfp.boosters.getAmountOfBooster
import com.willfp.eco.core.config.interfaces.Config
@@ -108,13 +109,15 @@ class Booster(
val guiColumn = config.getInt("gui.position.column")
override val conditions = config.getSubsections("conditions").mapNotNull {
Conditions.compile(it, "Booster $id")
}.toSet()
override val conditions = Conditions.compile(
config.getSubsections("conditions"),
"Booster $id"
)
override val effects = config.getSubsections("effects").mapNotNull {
Effects.compile(it, "Booster $id")
}.toSet()
override val effects = Effects.compile(
config.getSubsections("effects"),
"Booster $id"
)
init {
Boosters.addNewBooster(this)

View File

@@ -35,6 +35,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"

View File

@@ -4,6 +4,19 @@ messages:
not-player: "&cThis command must be run by a player"
invalid-command: "&cUnknown subcommand!"
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%"
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%"
lrcdb-import-success: "&fImported &a%name%&f! Reload the plugin to install it"
must-specify-config-name: "&cYou must specify the config name!"
invalid-config-name: "&cInvalid config name!"
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%"
requires-player: "&cYou must specify a player!"
invalid-player: "&cInvalid player!"
requires-booster: "&cYou must specify a booster!"
@@ -11,11 +24,7 @@ messages:
gave-booster: "Gave %player% %booster% &fx%amount%!"
already-active: "&cThis booster is already active!"
dont-have: "&cYou don't have any of these boosters! Get some at &astore.ecomc.net"
on-cooldown: "&cThis effect is on cooldown! &fTime left: &a%seconds% seconds"
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%"
cancelled: "Cancelled the active boosters"
cannot-transmit: "&cYou can't transmit here!"
no-currently-active: "&cNot Active!"
no-currently-active-list: "&cThere isn't any booster active!"