Skip to content

Commit

Permalink
Add version display
Browse files Browse the repository at this point in the history
  • Loading branch information
elsell committed Feb 1, 2022
1 parent f2517b1 commit 062f7cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mcserver_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import requests
from mcstatus import MinecraftServer

_VERSION = "v0.0.2"


class MinecraftConnector:
"""mcstatus wrapper that adds the ability to get
Expand Down Expand Up @@ -34,7 +36,7 @@ def cleanup(self):
shutil.rmtree(self._temp_dir)

def _init_logging(self):
self._log.info("Init Minecraft Connector")
self._log.info("Init Minecraft Connector %s", _VERSION)
self._log.info("{}{:<30}{}".format(" " * 4, "Server IP:", self._server_ip))
self._log.info("{}{:<30}{}".format(" " * 4, "Server Port:", self._server_port))
self._log.info("{}{:<30}{}".format(" " * 4, "Temp Dir", self._temp_dir))
Expand Down

0 comments on commit 062f7cf

Please sign in to comment.