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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user