https://github.com/networkexception/multimc-wrapper
a webserver that handles instance events from multimc
https://github.com/networkexception/multimc-wrapper
discord mulitmc
Last synced: 12 months ago
JSON representation
a webserver that handles instance events from multimc
- Host: GitHub
- URL: https://github.com/networkexception/multimc-wrapper
- Owner: networkException
- License: apache-2.0
- Created: 2020-09-25T15:10:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-29T18:06:59.000Z (about 5 years ago)
- Last Synced: 2025-01-07T21:47:00.902Z (about 1 year ago)
- Topics: discord, mulitmc
- Language: Java
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# multimc-wrapper
a webserver that handles instance events from multimc
# commands
```sh
# launch
curl http://127.0.0.1:20240/launch/?name=$INST_NAME&id=$INST_ID&dir=$INST_DIR&mcDir=$INST_MC_DIR
# exit
curl http://127.0.0.1:20240/exit/?name=$INST_NAME&id=$INST_ID&dir=$INST_DIR&mcDir=$INST_MC_DIR
# change function in /opt/multimc/run.sh
runmmc() {
wrapper="/path/to/your/multimc-wrapper-0.0.1.jar"
cd ${INSTDIR}
trap "pkill -f 'java -jar $wrapper'" INT TERM ERR
trap "pkill -f 'java -jar $wrapper'" EXIT
java -jar $wrapper &
./MultiMC "$@"
}
```