Fix bad query example

This commit is contained in:
Peter Urda
2014-09-16 13:14:35 -07:00
parent 7d3c926a3a
commit e7ac2f24f6

View File

@@ -19,7 +19,7 @@ print("The server has {0} players".format(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 = server.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: %s" % (", ".join(query.players.names)))
``` ```
Installation Installation