# Boss Battle Player Joined

```lua
function yourEvent(user, class_name)
   
    log('boss player: ' .. user.displayName .. ' has joined as ' .. class_name);
end

return function()
    addEvent('bossBattlePlayerJoined', 'yourEvent');
    keepAlive();
end
```

{% hint style="info" %}
Events are asynchronous coroutines.
{% endhint %}
