mirror of
https://github.com/Dinnerbone/mcstatus.git
synced 2026-04-06 03:51:23 +08:00
query.query_server() doesn't work, fixed README
This commit is contained in:
@@ -18,7 +18,7 @@ print("The server has %d players" % (status.players.online))
|
|||||||
|
|
||||||
# 'query' has to be enabled in a servers' server.properties file.
|
# 'query' has to be enabled in a servers' server.properties file.
|
||||||
# It may give more information than a ping, such as a full player list or mod information.
|
# It may give more information than a ping, such as a full player list or mod information.
|
||||||
query = query.query_server()
|
query = server.query_server()
|
||||||
print("The server has the following players online: " % (string.join(query.players.names, ", ")))
|
print("The server has the following players online: " % (string.join(query.players.names, ", ")))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user