Finished minecraftSignalBridge
This commit is contained in:
parent
8d20e77f85
commit
d78dcfc4f2
1 changed files with 1 additions and 2 deletions
|
|
@ -14,11 +14,10 @@ async def onMinecraftMessage(player: str, message: str):
|
||||||
),
|
),
|
||||||
RSChat,
|
RSChat,
|
||||||
)
|
)
|
||||||
await minecraft.command("say hi")
|
|
||||||
|
|
||||||
|
|
||||||
@signal.onMessage()
|
@signal.onMessage()
|
||||||
async def onSignalMessage(message: Message):
|
async def onSignalMessage(message: Message):
|
||||||
if message.user and message.user.note and "!rserver" in message.user.note:
|
if message.user and message.user.note and "!rserver" in message.user.note:
|
||||||
username = message.user.last_nickname
|
username = message.user.last_nickname
|
||||||
await minecraft.command(f"tellraw @a <{username}> {message.text}")
|
await minecraft.command(f'tellraw @a "<{username}> {message.text}"')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue