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