9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-27 02:49:08 +00:00

Removed all bosses on reload and disable

This commit is contained in:
Auxilor
2022-02-06 14:06:53 +00:00
parent aee2b376c4
commit 87ca7e3718

View File

@@ -32,11 +32,17 @@ class EcoBossesPlugin : LibReforgePlugin(525, 10635, "&9") {
}
override fun handleReloadAdditional() {
Bosses.getAllAlive().forEach { it.remove() }
logger.info(Bosses.values().size.toString() + " Bosses Loaded")
AutospawnHandler.startSpawning(this)
}
override fun handleDisableAdditional() {
Bosses.getAllAlive().forEach { it.remove() }
}
override fun loadPluginCommands(): List<PluginCommand> {
return listOf(
CommandEcobosses(this)