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