mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 08:39:04 +00:00
Various Changes (#523)
* Discord Bot Update Updated JavaCord To Latest Changed Some Commands To No Longer Be World Specific Added An "AdminCommands" Command * Update Some Server Libs * Added Purge & Pin/Un-Pin To Commands Discord Bot * Fixed -dev & -no-crc Client Args * Add Discord User ID Linking Support(Useless For Now) * Added Support For User's Kicking Own Accounts Through Discord Bot * Merge Website Integration Stuff Into One Var
This commit is contained in:
@@ -15,6 +15,18 @@ public final class Main {
|
||||
try {
|
||||
// Process server/ip address to connect to
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
switch(args[i]) {
|
||||
case "-dev" :
|
||||
case "-local":
|
||||
case "-offline":
|
||||
ClientSettings.SERVER_IP = "localhost";
|
||||
ClientSettings.CHECK_CRC = false;
|
||||
break;
|
||||
case "-no-crc":
|
||||
case "-no-cache-crc":
|
||||
ClientSettings.CHECK_CRC = false;
|
||||
break;
|
||||
}
|
||||
if (args[i].startsWith("-") && (i + 1) < args.length && !args[i + 1].startsWith("-")) {
|
||||
switch(args[i]) {
|
||||
case "-s":
|
||||
@@ -22,16 +34,6 @@ public final class Main {
|
||||
case "-ip":
|
||||
ClientSettings.SERVER_IP = args[++i];
|
||||
break;
|
||||
case "-no-crc":
|
||||
case "-no-cache-crc":
|
||||
ClientSettings.CHECK_CRC = false;
|
||||
break;
|
||||
case "-dev" :
|
||||
case "-local":
|
||||
case "-offline":
|
||||
ClientSettings.SERVER_IP = "localhost";
|
||||
ClientSettings.CHECK_CRC = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user