Deathimminent Posted September 2, 2017 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.
Deathimminent Posted September 2, 2017 Author 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.
Alek Posted September 2, 2017 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?
Deathimminent Posted September 2, 2017 Author 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.
Alek Posted September 2, 2017 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.
progamerz Posted September 2, 2017 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