mirror of
https://github.com/Dinnerbone/mcstatus.git
synced 2026-04-06 03:51:23 +08:00
add lookup classmethod
This commit is contained in:
@@ -115,6 +115,10 @@ class MinecraftBedrockServer:
|
|||||||
self.host = host
|
self.host = host
|
||||||
self.port = port
|
self.port = port
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def lookup(cls, address):
|
||||||
|
return cls(parse_address(address))
|
||||||
|
|
||||||
def status(self):
|
def status(self):
|
||||||
raise NotImplementedError # TODO: >_<
|
raise NotImplementedError # TODO: >_<
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user