mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2024-11-29 12:45:18 +01:00
Fixes
This commit is contained in:
parent
0944160d2a
commit
6a07ef8988
@ -146,7 +146,7 @@ class AxMinionsPlugin : AxPlugin() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}, 0, Config.AUTO_SAVE_MINUTES() * 20 * 60)
|
||||
}, 1, Config.AUTO_SAVE_MINUTES() * 20 * 60)
|
||||
}
|
||||
|
||||
override fun disable() {
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user