Spaces:
Sleeping
Sleeping
Update start.sh
Browse files
start.sh
CHANGED
|
@@ -1,4 +1,18 @@
|
|
| 1 |
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
# Start the Java Minecraft server with optimized flags
|
| 4 |
java -Xmx14336M -Xms14336M -XX:+UseG1GC -XX:+ParallelRefProcEnabled \
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
+
#!/bin/sh
|
| 3 |
+
|
| 4 |
+
# Download world data from Hugging Face
|
| 5 |
+
git lfs install
|
| 6 |
+
git clone https://huggingface.co/datasets/testdeep123/world /tmp/worlddata
|
| 7 |
+
|
| 8 |
+
# Move world folders to the server directory
|
| 9 |
+
cp -r /tmp/worlddata/world /app/
|
| 10 |
+
cp -r /tmp/worlddata/world_nether /app/
|
| 11 |
+
cp -r /tmp/worlddata/world_the_end /app/
|
| 12 |
+
|
| 13 |
+
# Cleanup (optional)
|
| 14 |
+
rm -rf /tmp/worlddata
|
| 15 |
+
|
| 16 |
|
| 17 |
# Start the Java Minecraft server with optimized flags
|
| 18 |
java -Xmx14336M -Xms14336M -XX:+UseG1GC -XX:+ParallelRefProcEnabled \
|