Hello, i made a code and basically capture tokens from bypass using StringTokenizer tk = new StringTokenizer(command, " ");
and the bypass is like
%objectId%_something $var1 $var2 $var3
the problem is that i use 3 boxes to fill (3 variables) and if a player inside box he use space to write 2 words it capture the 2nd word as another token so it end up like
4 token instead of 3.
How can i avoid this? Like if a player writes in box "Something Something" this will be captured as 1 token instead of 2 tokens ?
Great server to jump in and play. Not very difficult to level and farm your way to the top. Active GM and community with plenty to do. Come join the fun!
Question
Ο Χάρος
Hello, i made a code and basically capture tokens from bypass using StringTokenizer tk = new StringTokenizer(command, " ");
and the bypass is like
%objectId%_something $var1 $var2 $var3
the problem is that i use 3 boxes to fill (3 variables) and if a player inside box he use space to write 2 words it capture the 2nd word as another token so it end up like
4 token instead of 3.
How can i avoid this? Like if a player writes in box "Something Something" this will be captured as 1 token instead of 2 tokens ?
Thanks a lot.
Link to comment
Share on other sites
22 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.