-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathtest-integration.sh
More file actions
executable file
·39 lines (34 loc) · 1.09 KB
/
test-integration.sh
File metadata and controls
executable file
·39 lines (34 loc) · 1.09 KB
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
33
34
35
36
37
38
39
#!/bin/bash
# Simple verification script to ensure the ServerUtils integration works
# This script will start the test server briefly to verify all plugins load correctly
echo "=== Medieval Factions Test Server Integration Test ==="
echo
# Check if required files exist
echo "Checking required files..."
required_files=(
".testcontainer/jars/ServerUtils-Bukkit-3.5.4.jar"
".testcontainer/post-create.sh"
"sample.env"
"compose.yml"
"reload-plugin.sh"
)
for file in "${required_files[@]}"; do
if [ -f "$file" ]; then
echo "✓ $file exists"
else
echo "✗ $file missing"
exit 1
fi
done
echo
echo "ServerUtils integration is ready!"
echo
echo "To test the full integration:"
echo "1. Create .env file: cp sample.env .env"
echo "2. Set SERVERUTILS_ENABLED=true in .env"
echo "3. Start test server: ./up.sh"
echo "4. Check server logs to confirm ServerUtils loads"
echo "5. Use /serverutils list in-game to verify"
echo "6. Test plugin reloading with: ./reload-plugin.sh"
echo
echo "Note: The test server requires a successful build first: ./gradlew build"