Skip to content

Commit

Permalink
feature(Kubernetes) : added config constructor to personalize server …
Browse files Browse the repository at this point in the history
…and proxy config
  • Loading branch information
mrallan140 committed Dec 7, 2023
1 parent 9774144 commit a5fb1de
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions app/server/utils/Shulker_utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { integer } from "vscode-languageserver-types";

const config = useRuntimeConfig();
// ProxyFleet classes

Expand All @@ -10,7 +12,7 @@ class ShulkerMetadata {
class ProxyFleetSpecTemplateSpec {
constructor(
public version: object = { channel: "Velocity", name: "latest" },
public config: object = {},
public config: Config = new Config(),
) {}
}
class ProxyFleetSpecTemplate {
Expand Down Expand Up @@ -74,7 +76,7 @@ class MinecraftServerFleetSpecTemplateSpec {
public clusterRef: ClusterRef,
public tags: [] = [],
public version: MinecraftServerFleetSpecTemplateSpecVersion = new MinecraftServerFleetSpecTemplateSpecVersion(),
public config: object = {},
public config: Config = new Config(),
) {}
}

Expand Down Expand Up @@ -120,6 +122,14 @@ class MinecraftCluster {
) {}
}

class Config {
constructor(
public plugins?: object,
public world?: object,
public patches?: object,
public maxPlayers: integer = 25,
) {}
}
export {
ShulkerMetadata,
ProxyFleet,
Expand Down

0 comments on commit a5fb1de

Please sign in to comment.