-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·32 lines (27 loc) · 843 Bytes
/
build.sh
File metadata and controls
executable file
·32 lines (27 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
set -e
echo "Minecraft FluxCraft - Building with Docker"
echo "============================================="
echo ""
echo "Building plugin using Docker Maven..."
docker run --rm -v "$(pwd)":/usr/src/app -w /usr/src/app maven:3.9.11-eclipse-temurin-21 mvn clean package
if [ $? -ne 0 ]; then
echo ""
echo "Error: Failed to build plugin"
echo ""
echo "Alternative: Install Java 21 and Maven locally"
exit 1
fi
echo ""
echo "Copying plugin to plugins folder..."
mkdir -p plugins
cp target/fluxcraft-*.jar plugins/
echo ""
echo "============================================="
echo "Plugin built and copied successfully!"
echo ""
echo "Restarting Minecraft server to load the new plugin..."
docker compose restart paper-server
echo ""
echo "✅ Server restarted! The new plugin is now active."
echo ""