File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { ComposeConfig } from "../compose" ;
22import { resolveSettings } from "../settings" ;
3- import { buildMinecraftCompose } from "./install" ;
3+ import { buildMinecraftCompose , dockerImage } from "./install" ;
44import { minecraftSettings } from "./settings" ;
55
66const buildCompose = ( config : ComposeConfig , raw : unknown ) : string =>
@@ -9,7 +9,7 @@ const buildCompose = (config: ComposeConfig, raw: unknown): string =>
99export const minecraft = {
1010 buildCompose,
1111 description : "Minecraft is a sandbox game where you can build your own world." ,
12- dockerImage : minecraftSettings . dockerImage ,
12+ dockerImage,
1313 enabled : true ,
1414 gamedigId : "minecraft" ,
1515 id : "minecraft" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import type { ComposeConfig } from "../compose";
22import { escapeComposeValue } from "../compose" ;
33import type { MinecraftSettings } from "./settings" ;
44
5+ export const dockerImage = "ghcr.io/nodebytehosting/games:minecraft-latest"
6+
57export const buildMinecraftCompose = (
68 config : ComposeConfig ,
79 settings : MinecraftSettings ,
@@ -13,7 +15,7 @@ export const buildMinecraftCompose = (
1315
1416 return `services:
1517 minecraft:
16- image: ${ settings . dockerImage }
18+ image: ${ dockerImage }
1719 container_name: nodebyte-game
1820 ports:
1921 - "25565:25565"
Original file line number Diff line number Diff line change @@ -2,17 +2,16 @@ import { defineSettings } from "../settings";
22import type { SettingsValues } from "../settings" ;
33
44export const minecraftSettings = defineSettings ( {
5- dockerImage : {
6- default : "ghcr.io/pterodactyl/yolks:java_25 " ,
7- label : "Docker Image " ,
5+ javaVersion : {
6+ default : "25 " ,
7+ label : "Java Version " ,
88 options : [
9- { value : "ghcr.io/pterodactyl/yolks:java_25" } ,
10- { value : "ghcr.io/pterodactyl/yolks:java_22" } ,
11- { value : "ghcr.io/pterodactyl/yolks:java_21" } ,
12- { value : "ghcr.io/pterodactyl/yolks:java_17" } ,
13- { value : "ghcr.io/pterodactyl/yolks:java_16" } ,
14- { value : "ghcr.io/pterodactyl/yolks:java_11" } ,
15- { value : "ghcr.io/pterodactyl/yolks:java_8" } ,
9+ { value : "25" } ,
10+ { value : "21" } ,
11+ { value : "17" } ,
12+ { value : "11" } ,
13+ { value : "8" } ,
14+
1615 ] ,
1716 type : "select" ,
1817 } ,
You can’t perform that action at this time.
0 commit comments