diff --git a/Dockerfile b/Dockerfile index 6c23a59..9f963de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ COPY . . RUN gradle clean :bot:build :plugin-paper:build --no-daemon # We use a jammy image because we need some more stuff than alpine provides -FROM eclipse-temurin:21-jammy as runtime +FROM eclipse-temurin:22-jammy as runtime WORKDIR /app RUN apt update diff --git a/bot/src/main/java/de/chojo/gamejam/server/TeamServer.java b/bot/src/main/java/de/chojo/gamejam/server/TeamServer.java index 7800a3f..2f34332 100644 --- a/bot/src/main/java/de/chojo/gamejam/server/TeamServer.java +++ b/bot/src/main/java/de/chojo/gamejam/server/TeamServer.java @@ -182,6 +182,7 @@ public boolean start() { command.add("-Dpluginjam.team.name=" + teamName()); command.add("-Djavalin.port=" + apiPort); command.add("-Dcom.mojang.eula.agree=true"); + command.add("--enable-preview"); command.add("-jar"); command.add("server.jar"); command.add("--max-players");