MCPcopy Index your code
hub / github.com/MatrixTM/MHDDoS / login

Method login

start.py:400–406  ·  view source on GitHub ↗
(protocol: int, username: str)

Source from the content-addressed store, hash-verified

398
399 @staticmethod
400 def login(protocol: int, username: str) -> bytes:
401 if isinstance(username, str):
402 username = username.encode()
403 return Minecraft.data(Minecraft.varint(0x00 if protocol >= 391 else \
404 0x01 if protocol >= 385 else \
405 0x00),
406 Minecraft.data(username))
407
408 @staticmethod
409 def keepalive(protocol: int, num_id: int) -> bytes:

Callers 1

MCBOTMethod · 0.80

Calls 2

dataMethod · 0.80
varintMethod · 0.80

Tested by

no test coverage detected