Skip to content

Commit

Permalink
feat: Add health scoreboard objective and display
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Labeyrie <[email protected]>
  • Loading branch information
Razano26 committed Aug 28, 2024
1 parent 8da0cbe commit 1cf01a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hardloop/hardloop/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ async def start_server(server_port=25565):
try:
with MCRcon("hardloop", "password", port=25575) as client:
client.command("/scoreboard objectives add Deaths deathCount")
client.command("/scoreboard objectives add health health")
client.command("/scoreboard objectives setdisplay list health")
break
except Exception:
await asyncio.sleep(1)
Expand Down

0 comments on commit 1cf01a3

Please sign in to comment.