This commit is contained in:
AverageGithub 2024-03-16 19:04:55 +01:00
parent 0944160d2a
commit 6a07ef8988
3 changed files with 10 additions and 11 deletions

View File

@ -146,7 +146,7 @@ class AxMinionsPlugin : AxPlugin() {
}
}
}
}, 0, Config.AUTO_SAVE_MINUTES() * 20 * 60)
}, 1, Config.AUTO_SAVE_MINUTES() * 20 * 60)
}
override fun disable() {

View File

@ -301,7 +301,7 @@ class Minion(
} else if (it.equals("charge")) {
if (Config.CHARGE_ENABLED()) {
val charge = Placeholder.parsed("charge", TimeUtils.format(charge - System.currentTimeMillis()))
item = ItemBuilder(type.getConfig().getSection("gui.$it"), charge).storePersistentData(
item = ItemBuilder(AxMinionsAPI.INSTANCE.getConfig().getConfig().getSection("gui.items.$it"), charge).storePersistentData(
Keys.GUI, PersistentDataType.STRING, it
).get()
} else {

View File

@ -105,12 +105,6 @@ gui:
item:
type: "air"
slot: 13
# These settings are minion-specific, you can edit them in each minion's file!
upgrade:
slot: 15
statistics:
slot: 16
charge:
type: "lava_bucket"
name: "<#FB8E08><b>Charge"
@ -118,9 +112,14 @@ gui:
- ""
- " <gray>- <white>Current charge: <#FFCC00><charge>"
- ""
- "<#FB8E08><b>(!)</b> Click here to charge your minion for <white>10 minutes</white> for <white>$10,000</white>!"
- "<#FB8E08><b>(!)</b> Click here to charge your minion for <white>30 minutes</white>!"
slot: 9
# These settings are minion-specific, you can edit them in each minion's file!
upgrade:
slot: 15
statistics:
slot: 16
# Only change this, if you are asked to! This will make your performance worse, and will spam messages in your console!
# Requires restart!
debug: false