feat: Configuration par défaut accepte comptes crack

- 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)
This commit is contained in:
y.campiontrebouta@innotexnas.ovh
2026-02-04 00:17:47 +01:00
parent 6357df2f2c
commit 2589fc7859
3 changed files with 38 additions and 0 deletions

1
.gitignore vendored
View File

@@ -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

View File

@@ -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:

View File

@@ -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