mirror of
https://github.com/opus-tango/minecraft-server-discord-bot.git
synced 2026-03-20 03:55:20 +00:00
add server list json and sample script
This commit is contained in:
14
servers.json
Normal file
14
servers.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"example_json": {
|
||||
"path": "/path/to/server/folder",
|
||||
"servername": "example",
|
||||
"startcommand": "screen -S example java -Xmx1024M -Xms512M -jar /path/to/server/spigot-1.18.2.jar nogui"
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
"path": "",
|
||||
"servername": "testserver1",
|
||||
"startcommand": "./startserver.sh"
|
||||
}
|
||||
]
|
||||
}
|
||||
10
startserver.sh
Executable file
10
startserver.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
while true; do
|
||||
read -n 1 -p "" input
|
||||
if [[ $input == "q" ]]; then
|
||||
break
|
||||
fi
|
||||
echo "hello"
|
||||
sleep 3
|
||||
done
|
||||
Reference in New Issue
Block a user