Elfocrash / L2Autobots

The most advanced L2j bots engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dess command

valanths1990 opened this issue · comments

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()`            

Committed thanks!