diff --git a/README.md b/README.md index c51123d..8d7bd40 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ print("The server has %d players" % (status.players.online)) # '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. -query = query.query_server() +query = server.query_server() print("The server has the following players online: " % (string.join(query.players.names, ", "))) ```