SubServers-2/SubServers.Host/src/net/ME1312/SubServers/Host/Launch.java
ME1312 bccbfb39c9
Add a grace period on rogue SubServer detection
Async subdata shenanigans made rogue SubServer detection a little inacurrate. Specifically in regards to the last commit.

This is the fix to that
2019-08-30 15:44:54 -04:00

31 lines
907 B
Java

package net.ME1312.SubServers.Host;
/**
* SubServers/GalaxiEngine Launch Class
*/
public final class Launch {
/**
* Launch SubServers/GalaxiEngine
*
* @param args Launch Arguments
* @throws Exception
*/
public static void main(String[] args) throws Exception {
System.setProperty("apple.laf.useScreenMenuBar", "true");
boolean exists = false;
try {
exists = Class.forName("net.ME1312.Galaxi.Engine.GalaxiEngine") != null;
} catch (Throwable e) {}
if (!exists) {
System.out.println(">> GalaxiEngine.jar Doesn't Exist");
System.out.println(">> ");
System.out.println(">> Please download a build from:");
System.out.println(">> https://github.com/ME1312/GalaxiEngine/releases");
System.exit(1);
} else {
ExHost.main(args);
}
}
}