This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
tazerman2
how to make after string targetName get nextToken from list switch. I try enything and is not come to list. i am not good in java
and i ask if someone can help tnx
else if (comnd.startsWith("MatchingInvite")) { try { String targetName = comnd.substring(20); String type = st1.nextToken(); switch(type) { case "FKeepers": RuleSet = 1; System.out.print("im here " + RuleSet); break; case "Random": RuleSet = 2; System.out.print("im here " + RuleSet); break; case "RanSpoil": RuleSet = 3; System.out.print("im here " + RuleSet); break; case "ByTurn": RuleSet = 4; System.out.print("im here " + RuleSet); break; case "ByTurnSpoil": RuleSet = 5; System.out.print("im here " + RuleSet); break; } System.out.println("Command is " + st1.nextToken()); PcInstance receiver = World.getInstance().getPlayer(targetName);and bypass
Project l2jAcis
Edited by tazerman22 answers to this question
Recommended Posts