Add -w/-world arg to client

This commit is contained in:
Dark98
2021-11-23 01:15:32 +00:00
parent bdd5297a94
commit 8a10201637
2 changed files with 5 additions and 1 deletions
@@ -28,7 +28,7 @@ public class ClientSettings {
* World 1 Will Connect On Port 43594 * World 1 Will Connect On Port 43594
* World 2 Will Connect On Port 43597 * World 2 Will Connect On Port 43597
*/ */
public final static int SERVER_WORLD = 1; public static int SERVER_WORLD = 1;
/** /**
* The Npc Bits for the Server * The Npc Bits for the Server
*/ */
+4
View File
@@ -45,6 +45,10 @@ public final class Main {
case "-password": case "-password":
game.myPassword = args[++i]; game.myPassword = args[++i];
break; break;
case "-w":
case "-world":
ClientSettings.SERVER_WORLD = Integer.parseInt(args[++i]);
break;
} }
} }
} }