Public Constants
This commit is contained in:
parent
9c4b5eb9a8
commit
95781daa91
3 changed files with 40 additions and 17 deletions
15
README.md
15
README.md
|
@ -48,20 +48,9 @@ C:\Program Files (x86)\Launch4j
|
|||
|
||||
### Plugging In Your Data
|
||||
|
||||
To get started with the code and plug in your own data, you need to create a src/main/java/com/atlauncher/data/Constants.java file. Below is a starter to get you going:
|
||||
To get started with the code and plug in your own data, you need to edit the src/main/java/com/atlauncher/data/Constants.java file.
|
||||
|
||||
package com.atlauncher.data;
|
||||
|
||||
public class Constants {
|
||||
|
||||
public static final LauncherVersion VERSION = new LauncherVersion(1, 0, 0, 0, 1);
|
||||
public static final String API_BASE_URL = "";
|
||||
public static final String PASTE_CHECK_URL = "";
|
||||
public static final String PASTE_API_URL = "";
|
||||
public static final Server[] SERVERS = new Server[] { new Server("Test", "my.file.server.com", true, true) };
|
||||
public static final String LAUNCHER_NAME = "MyLauncher";
|
||||
|
||||
}
|
||||
By using this source code you don't get permissions to use our CDN/files/assets/modpacks. See the License section at the bottom for more.
|
||||
|
||||
See below for explanations as to what each constant means.
|
||||
|
||||
|
|
4
src/main/java/com/atlauncher/data/.gitignore
vendored
4
src/main/java/com/atlauncher/data/.gitignore
vendored
|
@ -1,4 +0,0 @@
|
|||
# Don't remove this, this is necessary to generate correct server details for the Launcher
|
||||
# Please read the README.md at the base of the repo for more information
|
||||
|
||||
Constants.java
|
38
src/main/java/com/atlauncher/data/Constants.java
Normal file
38
src/main/java/com/atlauncher/data/Constants.java
Normal file
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
* ATLauncher - https://github.com/ATLauncher/ATLauncher
|
||||
* Copyright (C) 2013 ATLauncher
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.atlauncher.data;
|
||||
|
||||
public class Constants {
|
||||
public static final LauncherVersion VERSION = new LauncherVersion(3, 2, 3, 2, 0);
|
||||
public static final String LAUNCHER_NAME = "ATLauncher";
|
||||
public static final String API_BASE_URL = "https://api.atlauncher.com/v1/launcher/";
|
||||
public static final String PASTE_CHECK_URL = "http://paste.atlauncher.com";
|
||||
public static final String PASTE_API_URL = "http://paste.atlauncher.com/api/create";
|
||||
public static final Server[] SERVERS = new Server[]{
|
||||
new Server("Auto", "download.nodecdn.net/containers/atl", true, false),
|
||||
new Server("Backup Server", "anne.nodeservers.net:8080/containers/atl", false, false),
|
||||
new Server("EU - Amsterdam 1", "bob.nodeservers.net/containers/atl", true, false),
|
||||
new Server("EU - Amsterdam 2", "emma.nodeservers.net/containers/atl", true, false),
|
||||
new Server("EU - Amsterdam 3", "lisa.nodeservers.net/containers/atl", true, false),
|
||||
new Server("US East - Ashburn 1", "anne.nodeservers.net/containers/atl", true, false),
|
||||
new Server("US East - Ashburn 2", "bruce.nodeservers.net/containers/atl", true, false),
|
||||
new Server("US East - Ashburn 3", "dave.nodeservers.net/containers/atl", true, false),
|
||||
new Server("US West - Phoenix 1", "adam.nodeservers.net/containers/atl", true, false),
|
||||
new Server("Master Server (Testing Only)", "master.atlcdn.net", false, true)
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue