fix: Ajoute libraries essentielles pour démarrage serveur
- Inclut libraries/*.jar dans Git (21 MB) - Ajoute Scala 2.10.2 (library + compiler) - Ajoute launchwrapper, asm-all, jopt-simple, lzma - Corrige .gitignore pour versionner libraries - Corrige configuration RCON dans conteneur - Met à jour .env.example avec avertissement sécurité Résout: ClassNotFoundException au démarrage
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
# Configuration Docker NationsGlory
|
||||
# Copier ce fichier vers .env et ajuster les valeurs
|
||||
|
||||
# Mot de passe RCON (généré automatiquement si non défini)
|
||||
RCON_PASSWORD=minecraft
|
||||
# Mot de passe RCON
|
||||
# ⚠️ IMPORTANT: Définir un mot de passe sécurisé
|
||||
# Après modification, redémarrer: docker-compose restart
|
||||
RCON_PASSWORD=ChangerCeMotDePasse
|
||||
|
||||
# Port Minecraft
|
||||
SERVER_PORT=25565
|
||||
|
||||
7
.gitignore
vendored
7
.gitignore
vendored
@@ -43,14 +43,15 @@ ngcore_cache/
|
||||
customnpcs/
|
||||
|
||||
# === FICHIERS JAR ===
|
||||
# Ignorer tous les .jar SAUF ceux dans mods/ et plugins/ ET mcpc.jar
|
||||
# Ignorer tous les .jar SAUF ceux dans mods/, plugins/, libraries/ ET mcpc.jar
|
||||
*.jar
|
||||
!mods/*.jar
|
||||
!plugins/*.jar
|
||||
!libraries/**/*.jar
|
||||
!mcpc.jar
|
||||
|
||||
# === LIBRARIES (Seront téléchargées) ===
|
||||
libraries/
|
||||
# === LIBRARIES (Incluses dans Git pour éviter les téléchargements) ===
|
||||
# Note: Les libraries sont maintenant versionnées pour garantir le démarrage
|
||||
|
||||
# === DONNÉES PLUGINS ===
|
||||
plugins/Essentials/userdata/
|
||||
|
||||
@@ -39,16 +39,13 @@ echo "rcon.password=VotreMotDePasseSecurise" >> server.properties
|
||||
echo "enable-rcon=true" >> server.properties
|
||||
```
|
||||
|
||||
**Méthode 2: Serveur en cours**
|
||||
**Méthode 2: Serveur en cours (modification dans le conteneur)**
|
||||
```bash
|
||||
# Arrêter le serveur
|
||||
docker-compose down
|
||||
# Modifier directement dans le conteneur
|
||||
docker exec mc-nationsglory sed -i 's/^rcon.password=.*/rcon.password=NouveauMotDePasse/' /data/server.properties
|
||||
|
||||
# Modifier la configuration
|
||||
sed -i 's/^rcon.password=.*/rcon.password=NouveauMotDePasse/' server.properties
|
||||
|
||||
# Redémarrer
|
||||
docker-compose up -d
|
||||
# Redémarrer pour appliquer
|
||||
docker-compose restart
|
||||
```
|
||||
|
||||
### 2. Tester RCON
|
||||
|
||||
BIN
libraries/lzma/lzma/0.0.1/lzma-0.0.1.jar
Normal file
BIN
libraries/lzma/lzma/0.0.1/lzma-0.0.1.jar
Normal file
Binary file not shown.
BIN
libraries/net/minecraft/launchwrapper/1.8/launchwrapper-1.8.jar
Normal file
BIN
libraries/net/minecraft/launchwrapper/1.8/launchwrapper-1.8.jar
Normal file
Binary file not shown.
BIN
libraries/net/sf/jopt-simple/jopt-simple/4.5/jopt-simple-4.5.jar
Normal file
BIN
libraries/net/sf/jopt-simple/jopt-simple/4.5/jopt-simple-4.5.jar
Normal file
Binary file not shown.
BIN
libraries/org/ow2/asm/asm-all/4.1/asm-all-4.1.jar
Normal file
BIN
libraries/org/ow2/asm/asm-all/4.1/asm-all-4.1.jar
Normal file
Binary file not shown.
BIN
libraries/org/scala-lang/scala-compiler/2.10.2/scala-compiler-2.10.2.jar
Executable file
BIN
libraries/org/scala-lang/scala-compiler/2.10.2/scala-compiler-2.10.2.jar
Executable file
Binary file not shown.
BIN
libraries/org/scala-lang/scala-library/2.10.2/scala-library-2.10.2.jar
Executable file
BIN
libraries/org/scala-lang/scala-library/2.10.2/scala-library-2.10.2.jar
Executable file
Binary file not shown.
Reference in New Issue
Block a user