dess command
valanths1990 opened this issue · comments
valanths1990 commented
dess command is also broken
here is the fix:
val bots = ViewStates.indexViewState(activeChar).selectedBots.filter { it.value.isOnline }
CoScopes.generalScope.launch {
bots.forEach {
innerLaunch@CoScopes.massDespawnerScope.launch {
val autobot = AutobotsManager.activeBots.getOrDefault(it.value.name, null) ?: return@innerLaunch
AdminActions.despawnAutobot(autobot)
}
}
}
ViewStates.indexViewState(activeChar).selectedBots.clear()`
Nick Chapsas commented
Committed thanks!