mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2024-11-25 12:05:56 +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 {
|
||||
@ -744,4 +744,4 @@ class Minion(
|
||||
override fun getInventory(): Inventory {
|
||||
return Bukkit.createInventory(this, 9)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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,12 +112,17 @@ 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
|
||||
|
||||
# Do not change!
|
||||
config-version: 7
|
||||
config-version: 7
|
||||
|
Loading…
Reference in New Issue
Block a user