Skip to content

Commit

Permalink
Merge pull request #114 from antonok-edm/rename-retries-in-script
Browse files Browse the repository at this point in the history
Rename retries argument in CLI
  • Loading branch information
kevinkjt2000 authored Mar 18, 2021
2 parents d8e68c3 + c4bd45f commit a063eea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mcstatus/scripts/mcstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def json():
data['online'] = True
data['ping'] = ping_res

status_res = server.status(retries=1)
status_res = server.status(tries=1)
data['version'] = status_res.version.name
data['protocol'] = status_res.version.protocol
data['motd'] = status_res.description
Expand All @@ -94,7 +94,7 @@ def json():
if status_res.players.sample is not None:
data['players'] = [{'name': player.name, 'id': player.id} for player in status_res.players.sample]

query_res = server.query(retries=1)
query_res = server.query(tries=1)
data['host_ip'] = query_res.raw['hostip']
data['host_port'] = query_res.raw['hostport']
data['map'] = query_res.map
Expand Down

0 comments on commit a063eea

Please sign in to comment.