Bypass new Oracle argument restrictions

This commit is contained in:
ME1312 2020-02-16 15:01:17 -05:00
parent bb975413a5
commit 4ba0489d9d
No known key found for this signature in database
GPG Key ID: FEFFE2F698E88FA8
9 changed files with 11 additions and 9 deletions

View File

@ -30,14 +30,14 @@
<dependency>
<groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiUtil</artifactId>
<version>20w04c</version>
<version>20w08a</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiEngine</artifactId>
<version>20w04c</version>
<version>20w08a</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -23,6 +23,7 @@ public final class Launch {
*/
@SuppressWarnings({"deprecation", "unchecked"})
public static void main(String[] args) throws Exception {
System.setProperty("jdk.lang.Process.allowAmbiguousCommands", "true");
System.setProperty("apple.laf.useScreenMenuBar", "true");
if (Util.getDespiteException(() -> Class.forName("net.md_5.bungee.BungeeCord") == null, true)) {

View File

@ -822,7 +822,7 @@ public final class SubProxy extends BungeeCord implements Listener {
for (String name : e.getConnection().getListener().getServerPriority()) {
ServerInfo server = api.getServer(name.toLowerCase());
if (server == null) server = getServerInfo(name);
if (server == null || server instanceof SubServer && !((SubServer) server).isRunning()) offline++;
if (server == null || (server instanceof SubServer && !((SubServer) server).isRunning())) offline++;
}
if (offline >= e.getConnection().getListener().getServerPriority().size()) {

View File

@ -48,7 +48,7 @@
<dependency>
<groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiUtil</artifactId>
<version>20w04c</version>
<version>20w08a</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>

View File

@ -30,7 +30,7 @@
<dependency>
<groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiUtil</artifactId>
<version>20w04c</version>
<version>20w08a</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>

View File

@ -20,7 +20,7 @@
<dependency>
<groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiEngine</artifactId>
<version>20w04c</version>
<version>20w08a</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>

View File

@ -12,6 +12,7 @@ public final class Launch {
* @throws Exception
*/
public static void main(String[] args) throws Exception {
System.setProperty("jdk.lang.Process.allowAmbiguousCommands", "true");
System.setProperty("apple.laf.useScreenMenuBar", "true");
boolean exists = false;
try {

View File

@ -30,14 +30,14 @@
<dependency>
<groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiUtil</artifactId>
<version>20w04c</version>
<version>20w08a</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiEngine</artifactId>
<version>20w04c</version>
<version>20w08a</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -330,7 +330,7 @@ public final class ExProxy extends BungeeCord implements Listener {
int offline = 0;
for (String name : e.getConnection().getListener().getServerPriority()) {
ServerInfo server = getServerInfo(name);
if (server == null || server instanceof SubServerImpl && !((SubServerImpl) server).isRunning()) offline++;
if (server == null || (server instanceof SubServerImpl && !((SubServerImpl) server).isRunning())) offline++;
}
if (offline >= e.getConnection().getListener().getServerPriority().size()) {