Process client arguments, Auto login option (#506)

* Process client arguments, Auto login

1st argument = server IP
2nd argument = username
3rd argument = password

* Simplify

* Fixup server XP rate
This commit is contained in:
Danial
2021-10-03 06:38:17 +13:00
committed by GitHub
parent bbe1587e20
commit 865ef4ed29
4 changed files with 39 additions and 27 deletions
+2 -18
View File
@@ -1,22 +1,6 @@
import java.net.InetAddress;
import java.net.UnknownHostException;
public final class Client {
public static void main(String[] args) {
ClientSettings.SERVER_IP = "127.0.0.1";
try {
Game game = new Game();
Game.nodeID = 10;
Game.portOff = 0;
Game.setHighMem();
Game.isMembers = true;
Signlink.storeid = 32;
Signlink.startpriv(InetAddress.getLocalHost());
game.createClientFrame(503, 765);
} catch (UnknownHostException e) {
e.printStackTrace();
}
ClientSettings.SERVER_IP = "localhost";
Main.main(args);
}
}