Deathimminent Posted September 2, 2017 Share Posted September 2, 2017 I'm trying to figure out if my character is logged out. I have tried: getClient().isLoggedIn() and if (getClient().getLoginState() == Client.LoginState.LOGGED_OUT) {} They both return true when I'm logged in and return nothing when I'm logged out. Quote Link to comment Share on other sites More sharing options...
Alek Posted September 2, 2017 Share Posted September 2, 2017 Why do you need to know? Quote Link to comment Share on other sites More sharing options...
Deathimminent Posted September 2, 2017 Author Share Posted September 2, 2017 1 minute ago, Alek said: Why do you need to know? So I can re-enable auto chat when I log back in. Quote Link to comment Share on other sites More sharing options...
Alek Posted September 2, 2017 Share Posted September 2, 2017 31 minutes ago, Deathiminent said: So I can re-enable auto chat when I log back in. Why not just detect if auto-chat is not enabled? Quote Link to comment Share on other sites More sharing options...
Deathimminent Posted September 2, 2017 Author Share Posted September 2, 2017 7 minutes ago, Alek said: Why not just detect if auto-chat is not enabled? Yeah there are usually multiple solutions to a problem. I just assumed Client.isLoggedIn() would return false if I'm not logged in. Quote Link to comment Share on other sites More sharing options...
Alek Posted September 2, 2017 Share Posted September 2, 2017 20 minutes ago, Deathiminent said: Yeah there are usually multiple solutions to a problem. I just assumed Client.isLoggedIn() would return false if I'm not logged in. Scripts don't execute while you are logged out. Quote Link to comment Share on other sites More sharing options...
progamerz Posted September 2, 2017 Share Posted September 2, 2017 3 minutes ago, Alek said: Scripts don't execute while you are logged out. I think he means while loading, if i am not being wrong 24 minutes ago, Deathiminent said: Yeah there are usually multiple solutions to a problem. I just assumed Client.isLoggedIn() would return false if I'm not logged in. Try to check for a widget for example health orb or something to know that it is fully loaded Quote Link to comment Share on other sites More sharing options...