Open
Description
- 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