The Legman Posted November 21, 2017 Share Posted November 21, 2017 Wanting to put: if (!this.client.getUsername().equals("thelegmanosbot@gmail.com")) { this.log("This script wasn't made for you."); this.stop(); into my script.. but every time I launch my client it auto stops the script. I'm logging into OSBot w/ my it as my username! https://gyazo.com/422d8d9f05864c58e3080507bd8db115 Anyone know how this works please? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Deceiver Posted November 21, 2017 Share Posted November 21, 2017 thats ur email fam ur username... Quote Link to comment Share on other sites More sharing options...
The Legman Posted November 21, 2017 Author Share Posted November 21, 2017 3 minutes ago, Deceiver said: thats ur email fam ur username... it returns false to the legman The Legman The legman Quote Link to comment Share on other sites More sharing options...
Chris Posted November 21, 2017 Share Posted November 21, 2017 Thelegmanosbot@gmail.com 1 Quote Link to comment Share on other sites More sharing options...
sonda Posted November 21, 2017 Share Posted November 21, 2017 Is it the capital letter? Or The lack of “quotations”? That makes it work, I love this idea. You can do .equalsignorecase() also correct? Quote Link to comment Share on other sites More sharing options...
Juggles Posted November 21, 2017 Share Posted November 21, 2017 (edited) Don't think spaces work with it Maybe convert your username, replace " ","" and then do if username!="TheLegman" { log("SCRIPT NOT FOR YOU, BITCH") stop(); } Edited November 21, 2017 by Juggles Quote Link to comment Share on other sites More sharing options...
sonda Posted November 21, 2017 Share Posted November 21, 2017 !username.contains(“Legman”) ? Quote Link to comment Share on other sites More sharing options...
Alek Posted November 21, 2017 Share Posted November 21, 2017 You tried numerous things, except for what the result of client.getUsername() is. Quote Link to comment Share on other sites More sharing options...
sonda Posted November 21, 2017 Share Posted November 21, 2017 (edited) nvm! Lol id cheat and drawstring(“ “+ client.getUsername(),15,15) and see what it says lol! Edited November 21, 2017 by sonda Quote Link to comment Share on other sites More sharing options...