allow to whisper easily
This commit is contained in:
parent
1df81a9219
commit
9c65e6d7ea
1 changed files with 3 additions and 1 deletions
|
@ -147,7 +147,9 @@ class Treepuncher(MinecraftClient):
|
||||||
async def write(self, packet:Packet, wait:bool=False):
|
async def write(self, packet:Packet, wait:bool=False):
|
||||||
await self.dispatcher.write(packet, wait)
|
await self.dispatcher.write(packet, wait)
|
||||||
|
|
||||||
async def chat(self, message:str, wait:bool=False):
|
async def chat(self, message:str, whisper:str=None, wait:bool=False):
|
||||||
|
if whisper:
|
||||||
|
message = f"/w {whisper} {message}"
|
||||||
await self.dispatcher.write(
|
await self.dispatcher.write(
|
||||||
PacketChat(
|
PacketChat(
|
||||||
self.dispatcher.proto,
|
self.dispatcher.proto,
|
||||||
|
|
Loading…
Reference in a new issue