From 4fd0a76d77eaf9a1a6ca8f6f3f5c093b6b0e74a8 Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Sun, 19 Mar 2023 22:33:49 -0400 Subject: [PATCH] Add support for Java options. (#59) --- package-lock.json | 8 ++++---- package.json | 2 +- src/model/nebula/ServerMeta.ts | 1 + src/structure/spec_model/Server.struct.ts | 1 + 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 863aa620..985317bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "dotenv": "^16.0.3", "fs-extra": "^11.1.0", "got": "^12.6.0", - "helios-distribution-types": "^1.1.0", + "helios-distribution-types": "^1.2.0", "luxon": "^3.3.0", "minimatch": "^7.4.2", "node-stream-zip": "^1.15.0", @@ -1403,9 +1403,9 @@ } }, "node_modules/helios-distribution-types": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/helios-distribution-types/-/helios-distribution-types-1.1.0.tgz", - "integrity": "sha512-mxZPvPIBTltWUGzMzj/8LuG/UPwIEf7ZCE9h9o7pj1QCsMsctQIDu8bv91HDUEH0MByghe+t5Pi5XCHTHhzayg==" + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/helios-distribution-types/-/helios-distribution-types-1.2.0.tgz", + "integrity": "sha512-C8mRJGK0zAc7rRnA06Sj0LYwVqhY445UYNTmXU876AmfBirRR2F+A3LsD3osdgTxRMzrgkxBXvYZ0QbYW6j+6Q==" }, "node_modules/http-cache-semantics": { "version": "4.1.1", diff --git a/package.json b/package.json index 306ff1e4..b2300986 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "dotenv": "^16.0.3", "fs-extra": "^11.1.0", "got": "^12.6.0", - "helios-distribution-types": "^1.1.0", + "helios-distribution-types": "^1.2.0", "luxon": "^3.3.0", "minimatch": "^7.4.2", "node-stream-zip": "^1.15.0", diff --git a/src/model/nebula/ServerMeta.ts b/src/model/nebula/ServerMeta.ts index 0cd36020..1ecb03de 100644 --- a/src/model/nebula/ServerMeta.ts +++ b/src/model/nebula/ServerMeta.ts @@ -61,6 +61,7 @@ export interface ServerMeta { discord?: Server['discord'] mainServer: Server['mainServer'] autoconnect: Server['autoconnect'] + javaOptions?: Server['javaOptions'] } /** diff --git a/src/structure/spec_model/Server.struct.ts b/src/structure/spec_model/Server.struct.ts index 24060bd5..e907ae3b 100644 --- a/src/structure/spec_model/Server.struct.ts +++ b/src/structure/spec_model/Server.struct.ts @@ -192,6 +192,7 @@ export class ServerStructure extends BaseModelStructure { ...(serverMeta.meta.discord ? {discord: serverMeta.meta.discord} : {}), mainServer: serverMeta.meta.mainServer, autoconnect: serverMeta.meta.autoconnect, + javaOptions: serverMeta.meta.javaOptions, modules })