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 ?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Lineage II Classic Einhovant new project is looking for a skilled Java Developer to join our team!
If you're passionate about game development and eager to contribute to this project, we'd love to hear from you.
For more details, feel free to send us a message. Let’s create something amazing together!
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.
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.
Note: Your post will require moderator approval before it will be visible.