goldKeeper Posted April 7, 2018 Share Posted April 7, 2018 So I have a little problem Sometimes my bots just get randomly kicked with the error "Error connecting to server". OSBOT recognizes this as error code -2 and doesnt know what to do --> stops the script I was able to disable the random solver from OSBOT and write my own login code. But now when i get kicked i don't know how i can check in the script if i got kicked so I can reactivate my login routine. Thanks in advance Quote Link to comment Share on other sites More sharing options...
Muffins Posted April 7, 2018 Share Posted April 7, 2018 Im not sure if disabling random solver negates this, but im sure you could do a check such as getClient().getLoginState() != LoginState.LOGGED_IN I believe thats it. 1 Quote Link to comment Share on other sites More sharing options...
goldKeeper Posted April 7, 2018 Author Share Posted April 7, 2018 works wonderfully. Thank you very much mate 1 Quote Link to comment Share on other sites More sharing options...