From 2589fc7859474ba9a0d95d074ae51b865644dc20 Mon Sep 17 00:00:00 2001 From: "y.campiontrebouta@innotexnas.ovh" Date: Wed, 4 Feb 2026 00:17:47 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20Configuration=20par=20d=C3=A9faut=20acc?= =?UTF-8?q?epte=20comptes=20crack?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ajoute server.properties.template avec online-mode=false - docker-compose copie le template au premier démarrage - Configuration: FLAT, créatif, PvP désactivé, vol autorisé - Template versionné dans Git (.gitignore mis à jour) --- .gitignore | 1 + docker-compose.yml | 4 ++++ server.properties.template | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 server.properties.template diff --git a/.gitignore b/.gitignore index 204a3b3..54a9a8e 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,7 @@ white-list.txt permissions.yml # === FICHIERS GÉNÉRÉS AUTOMATIQUEMENT === +# Note: server.properties.template est versionné comme configuration par défaut server.properties bukkit.yml spigot.yml diff --git a/docker-compose.yml b/docker-compose.yml index e5f9b22..2065d3d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,6 +33,10 @@ services: - -c - | cd /data + # Copier le template server.properties si inexistant + if [ ! -f server.properties ]; then + cp server.properties.template server.properties 2>/dev/null || true + fi exec java -Xms1G -Xmx2G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -jar mcpc.jar nogui volumes: diff --git a/server.properties.template b/server.properties.template new file mode 100644 index 0000000..bf8c9e7 --- /dev/null +++ b/server.properties.template @@ -0,0 +1,33 @@ +#Minecraft server properties +#NationsGlory 1.6.4 - Configuration par défaut +generator-settings= +allow-nether=true +level-name=world +enable-query=false +allow-flight=true +rcon.password=ChangerMotDePasse +server-port=25565 +level-type=FLAT +enable-rcon=true +force-gamemode=false +level-seed= +server-ip= +max-build-height=256 +spawn-npcs=true +white-list=false +debug=false +spawn-animals=true +texture-pack= +snooper-enabled=true +hardcore=false +online-mode=false +pvp=false +difficulty=1 +player-idle-timeout=0 +gamemode=1 +max-players=20 +rcon.port=25575 +spawn-monsters=true +generate-structures=true +view-distance=10 +motd=Serveur NationsGlory 1.6.4