update readme
This commit is contained in:
parent
d66b12caff
commit
d2fb78108e
1 changed files with 9 additions and 4 deletions
13
README.md
13
README.md
|
@ -7,9 +7,14 @@ For more information, see https://minecraft.wiki/w/Query
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
McStatusFace can be run as a web server with `mcstatusface serve`. This will
|
McStatusFace can simply be run with `mcstatusface <address:[port]>`.
|
||||||
provide server information in JSON format to requests on `GET /?s=<address[:port]>`.
|
|
||||||
(e.g. `curl -sS "127.0.0.1:8080?s=127.0.0.1:25565" | jq .`)
|
|
||||||
|
|
||||||
Alternatively, you can simply run `mcstatusface <address[:port]>`, and the
|
Alternatively, you can start a web interface with
|
||||||
|
`mcstatusface serve [address:[port]]`.
|
||||||
|
|
||||||
|
This provides a web interface to query server information via a frontend, or
|
||||||
|
in JSON format if the request is cURLed.
|
||||||
|
|
||||||
|
The server queries Minecraft servers when a `GET /?s=<address[:port]>` request
|
||||||
|
is received. (e.g. `curl -sS "127.0.0.1:8080?s=127.0.0.1:25565" | jq .`)
|
||||||
tool will provide server details in plain-text format.
|
tool will provide server details in plain-text format.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue