From 09480c14ebcf63b654f9a542d45ef78cc8d5a281 Mon Sep 17 00:00:00 2001 From: beu Date: Thu, 6 Jun 2024 10:48:23 +0200 Subject: [PATCH] disable ToggleUIFeature for the widget --- MatchManagerSuite/MatchManagerReadyButton.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MatchManagerSuite/MatchManagerReadyButton.php b/MatchManagerSuite/MatchManagerReadyButton.php index 7a46f9b..aefdf24 100644 --- a/MatchManagerSuite/MatchManagerReadyButton.php +++ b/MatchManagerSuite/MatchManagerReadyButton.php @@ -230,13 +230,13 @@ class MatchManagerReadyButton implements ManialinkPageAnswerListener, CommandLis $this->closeReadyWidget($player->login); } else if (!$player->isSpectator && !isset($this->playersreadystate[$player->login])) { $this->playersreadystate[$player->login] = 0; - $this->maniaControl->getManialinkManager()->sendManialink($this->MLisNotReady, $player->login); + $this->maniaControl->getManialinkManager()->sendManialink($this->MLisNotReady, $player->login, ToggleUIFeature: false); $this->maniaControl->getChat()->sendSuccess($this->chatprefix . 'You can now set you $<$f00Ready$> by clicking on the button', $player); } else if (!$player->isSpectator && isset($this->playersreadystate[$player->login])) { if ($this->playersreadystate[$player->login] == 1) { - $this->maniaControl->getManialinkManager()->sendManialink($this->MLisReady, $player->login); + $this->maniaControl->getManialinkManager()->sendManialink($this->MLisReady, $player->login, ToggleUIFeature: false); } else { - $this->maniaControl->getManialinkManager()->sendManialink($this->MLisNotReady, $player->login); + $this->maniaControl->getManialinkManager()->sendManialink($this->MLisNotReady, $player->login, ToggleUIFeature: false); } } }