[PR #506] [MERGED] Process client arguments, Auto login option #6125

Closed
opened 2026-05-28 12:21:56 +00:00 by Dark98 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/2006-Scape/2006Scape/pull/506
Author: @RedSparr0w
Created: 10/1/2021
Status: Merged
Merged: 10/2/2021
Merged by: @dginovker

Base: masterHead: client-args


📝 Commits (3)

📊 Changes

4 files changed (+39 additions, -27 deletions)

View changed files

📝 2006Scape Client/src/main/java/Client.java (+2 -18)
📝 2006Scape Client/src/main/java/Game.java (+3 -0)
📝 2006Scape Client/src/main/java/Main.java (+33 -8)
📝 2006Scape Server/src/main/java/com/rs2/GameConstants.java (+1 -1)

📄 Description

Info:

Added three possible arguments for launching client:
server, username, password.

Aliases:

  • server:
    • -s
    • -server
  • username:
    • -u
    • -user
    • -username
  • password:
    • -p
    • -pass
    • -password

Example:

Testing on local:

java -jar client.jar -server localhost -u myusername -p mypassword

NOTE:
Also fixed up the server XP rate, must have changed it by accident in one of the other PRs 😅


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/2006-Scape/2006Scape/pull/506 **Author:** [@RedSparr0w](https://github.com/RedSparr0w) **Created:** 10/1/2021 **Status:** ✅ Merged **Merged:** 10/2/2021 **Merged by:** [@dginovker](https://github.com/dginovker) **Base:** `master` ← **Head:** `client-args` --- ### 📝 Commits (3) - [`71cfbdb`](https://github.com/2006-Scape/2006Scape/commit/71cfbdb25d71a44fd629742d7936920d6fa4096f) Process client arguments, Auto login - [`f0eba8e`](https://github.com/2006-Scape/2006Scape/commit/f0eba8e45dd769458725ff134cb87fd07d085783) Simplify - [`a26265b`](https://github.com/2006-Scape/2006Scape/commit/a26265b9eeb9db99a7e813ad5e52042df95c15f1) Fixup server XP rate ### 📊 Changes **4 files changed** (+39 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `2006Scape Client/src/main/java/Client.java` (+2 -18) 📝 `2006Scape Client/src/main/java/Game.java` (+3 -0) 📝 `2006Scape Client/src/main/java/Main.java` (+33 -8) 📝 `2006Scape Server/src/main/java/com/rs2/GameConstants.java` (+1 -1) </details> ### 📄 Description ### Info: Added three possible arguments for launching client: `server`, `username`, `password`. ### Aliases: - server: - `-s` - `-server` - username: - `-u` - `-user` - `-username` - password: - `-p` - `-pass` - `-password` ### Example: **_Testing on local:_** ``` java -jar client.jar -server localhost -u myusername -p mypassword ``` **NOTE:** Also fixed up the server XP rate, must have changed it by accident in one of the other PRs 😅 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Dark98 added the pull-request label 2026-05-28 12:21:56 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 2006-Scape/2006Scape#6125