Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PMMP Bedrock Servers Query #439

Merged
merged 8 commits into from
Dec 24, 2022
Merged
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion mcstatus/bedrock_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@


class BedrockServerStatus:
request_status_data = b"\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\xfe\xfe\xfe\xfe\xfd\xfd\xfd\xfd\x124Vx"
request_status_data = bytes.fromhex(
# see https://wiki.vg/Raknet_Protocol#Unconnected_Ping
"01" + "000000000000000000" + "ffff00fefefefefdfdfdfd12345678" + "a20871356d207e61" # fmt: skip
AlphaBaqpla marked this conversation as resolved.
Show resolved Hide resolved
)

def __init__(self, address: Address, timeout: float = 3):
self.address = address
Expand Down