Oops - possibly fixed the cause of the lag&crash

TBMCPlugins/PluginConfigs#69
This commit is contained in:
Norbi Peti 2019-09-01 20:22:20 +02:00
parent 8310e0889b
commit 290aaca11d
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56

View file

@ -170,7 +170,7 @@ public class ServerRunner {
} }
private static Process startServer(Config config, File serverJar) throws IOException { private static Process startServer(Config config, File serverJar) throws IOException {
return Runtime.getRuntime().exec(new String[]{"java", config.serverParams, "-jar", serverJar.getPath()}); return Runtime.getRuntime().exec(("java " + config.serverParams + " -jar " + serverJar.getPath()).split(" ")); //Need to use split() because of the supplied params
} }
private static void sendMessage(PrintWriter output, String color, String text) { private static void sendMessage(PrintWriter output, String color, String text) {