MCPcopy
hub / github.com/PrismarineJS/mineflayer / playerJoined

Function playerJoined

examples/python/chatterbox.py:199–202  ·  view source on GitHub ↗
(this, player)

Source from the content-addressed store, hash-verified

197
198@On(bot, "playerJoined")
199def playerJoined(this, player):
200 print("joined", player)
201 if player["username"] != bot.username:
202 bot.chat(f"Hello, {player['username']}! Welcome to the server.")
203
204
205@On(bot, "playerLeft")

Callers

nothing calls this directly

Calls 1

printFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…