Skip to content

Commit

Permalink
Add -w/-world arg to client
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark98 committed Nov 23, 2021
1 parent bdd5297 commit 8a10201
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 2006Scape Client/src/main/java/ClientSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ClientSettings {
* World 1 Will Connect On Port 43594
* 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
*/
Expand Down
4 changes: 4 additions & 0 deletions 2006Scape Client/src/main/java/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public static void main(String[] args) {
case "-password":
game.myPassword = args[++i];
break;
case "-w":
case "-world":
ClientSettings.SERVER_WORLD = Integer.parseInt(args[++i]);
break;
}
}
}
Expand Down

2 comments on commit 8a10201

@RedSparr0w
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which has priority? the config or this?

@RedSparr0w
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, nvm, this is the client 😓

Please sign in to comment.