actions menu fix
This commit is contained in:
parent
f6894f79e5
commit
83f3ea35f7
@ -119,7 +119,8 @@ class ActionsMenu implements CallbackListener, ManialinkPageAnswerListener {
|
|||||||
*
|
*
|
||||||
* @param array $callback
|
* @param array $callback
|
||||||
*/
|
*/
|
||||||
public function handlePlayerJoined(array $callback, Player $player) {
|
public function handlePlayerJoined(array $callback) {
|
||||||
|
$player = $callback[1];
|
||||||
$manialinkText = $this->buildMenuIconsManialink()->render()->saveXML();
|
$manialinkText = $this->buildMenuIconsManialink()->render()->saveXML();
|
||||||
$this->maniaControl->manialinkManager->sendManialink($manialinkText, $player->login);
|
$this->maniaControl->manialinkManager->sendManialink($manialinkText, $player->login);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user