Skip to content

Bug with handling chat #3582

Open
Open
@Rilliat

Description

@Rilliat
  • The FAQ doesn't contain a resolution to my issue

Versions

  • mineflayer: 4.26.0
  • server: paper 1.21.1
  • node: 22.13.1

Detailed description of a problem

If message is sent by someone playing with Geyser (his nickname starts with "."), if I log his username in function, the dot in the beginning disappears.

What did you try yet?

I tried to log all args that come in the function and in "complete chat message" that dot exists, but in username it doesn't.

Your current code

from javascript import require, On, Once
from config import bot_config

mineflayer = require('mineflayer')

bot = mineflayer.createBot(bot_config)


@On(bot, 'chat')
def onChat(username, *args):
    print(username)
    print(args)

Expected behavior

username argument has the dot in the beginning

Additional context

Image
Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stage1just created by someone new to the project, we don't know yet if it deserves an implementation / a fpossible bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions