Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ LABEL description="Servidor Minecraft Paper 1.21.8 com suporte multi-versão"

# ─── Variáveis ───
ENV PAPER_VERSION=1.21.8
ENV VIAVERSION_VER=5.12.1
ENV VIABACKWARDS_VER=5.12.1
ENV VIAREWIND_VER=4.2.0
ENV MIN_RAM=2G
ENV MAX_RAM=4G
ENV SERVER_DIR=/server
Expand All @@ -27,11 +30,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends curl && \
# ─── Baixar Plugins ───
RUN apt-get update && apt-get install -y --no-install-recommends curl && \
curl -L -o plugins/ViaVersion.jar \
"https://github.com/ViaVersion/ViaVersion/releases/download/5.3.0/ViaVersion-5.3.0.jar" && \
"https://github.com/ViaVersion/ViaVersion/releases/download/${VIAVERSION_VER}/ViaVersion-${VIAVERSION_VER}.jar" && \
curl -L -o plugins/ViaBackwards.jar \
"https://github.com/ViaVersion/ViaBackwards/releases/download/5.3.0/ViaBackwards-5.3.0.jar" && \
"https://github.com/ViaVersion/ViaBackwards/releases/download/${VIABACKWARDS_VER}/ViaBackwards-${VIABACKWARDS_VER}.jar" && \
curl -L -o plugins/ViaRewind.jar \
"https://github.com/ViaVersion/ViaRewind/releases/download/4.0.4/ViaRewind-4.0.4.jar" && \
"https://github.com/ViaVersion/ViaRewind/releases/download/${VIAREWIND_VER}/ViaRewind-${VIAREWIND_VER}.jar" && \
apt-get purge -y curl && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*

# ─── Copiar configs ───
Expand Down
6 changes: 3 additions & 3 deletions scripts/setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ REM setup.bat — Baixa e configura o servidor Minecraft 1.21.8 (Paper) com mult
setlocal enabledelayedexpansion

set "PAPER_VERSION=1.21.8"
set "VIAVERSION_VER=5.3.0"
set "VIABACKWARDS_VER=5.3.0"
set "VIAREWIND_VER=4.0.4"
set "VIAVERSION_VER=5.12.1"
set "VIABACKWARDS_VER=5.12.1"
set "VIAREWIND_VER=4.2.0"

set "ROOT_DIR=%~dp0.."
cd /d "%ROOT_DIR%"
Expand Down
6 changes: 3 additions & 3 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ error() { echo -e "${RED}[ERROR]${NC} $*"; exit 1; }

# ─── Versões ───
PAPER_VERSION="1.21.8"
VIAVERSION_VER="5.11.0"
VIABACKWARDS_VER="5.11.0"
VIAREWIND_VER="4.1.3"
VIAVERSION_VER="5.12.1"
VIABACKWARDS_VER="5.12.1"
VIAREWIND_VER="4.2.0"

# ─── Diretórios ───
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
Expand Down