mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-21 09:02:07 -07:00
59 lines
1.3 KiB
Java
59 lines
1.3 KiB
Java
package org.runite;
|
|
|
|
import org.runite.jagex.GameShell;
|
|
|
|
/**
|
|
* Handles the launching of our Game Client.
|
|
* @author Keldagrim Development Team
|
|
*
|
|
*/
|
|
|
|
/*
|
|
|
|
NOTICE: THIS IS THE LIVESERVER CLIENT. For development purposes, use GameLaunch.java instead!!!
|
|
|
|
*/
|
|
public class Client {
|
|
|
|
public static final String PUBLIC_IP_ADDRESS = "198.52.151.60";
|
|
|
|
/**
|
|
* The game settings.
|
|
*/
|
|
public static GameSetting SETTINGS = new GameSetting("2009Scape", PUBLIC_IP_ADDRESS, 1, "live", false, false);
|
|
|
|
/**
|
|
* The main method.
|
|
r @param args the arguments casted on runtime.
|
|
r_game
|
|
|
|
*/
|
|
public static void main(String[]args) {
|
|
System.out.println("Running liveserver client");
|
|
Configurations.LOCAL_SERVER = false;
|
|
Configurations.LOCAL_MS = false;
|
|
Configurations.MS_IP = Configurations.LOCAL_MS ? "127.0.0.1" : PUBLIC_IP_ADDRESS; //Needs to be done because of order it's otherwise set
|
|
|
|
for (int i = 0; i < args.length; i++) {
|
|
String[] cmd = args[i].split("=");
|
|
switch (cmd[0]) {
|
|
case "ip":
|
|
SETTINGS.setIp(cmd[1]);
|
|
break;
|
|
case "world":
|
|
SETTINGS.setWorld(Integer.parseInt(cmd[1]));
|
|
break;
|
|
}
|
|
}
|
|
launch(false);
|
|
}
|
|
|
|
/**
|
|
* Launches the client in a determined mode.
|
|
* @param swiftkit If we're launching swift kit.
|
|
*/
|
|
public static void launch(boolean swiftkit) {
|
|
GameShell.launchDesktop();
|
|
}
|
|
|
|
}
|