From f42e12e7a2b25f433fe0b7c6f05ce1f340b48c5c Mon Sep 17 00:00:00 2001 From: beu Date: Fri, 21 Feb 2025 23:17:16 +0100 Subject: [PATCH] fix missing argument in the callback --- MatchManagerSuite/MatchManagerCore.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MatchManagerSuite/MatchManagerCore.php b/MatchManagerSuite/MatchManagerCore.php index b836d6c..4eb3d52 100644 --- a/MatchManagerSuite/MatchManagerCore.php +++ b/MatchManagerSuite/MatchManagerCore.php @@ -38,7 +38,7 @@ use ManiaControl\Callbacks\TimerListener; // for pause class MatchManagerCore implements CallbackListener, CommandListener, TimerListener, CommunicationListener, Plugin { const PLUGIN_ID = 152; - const PLUGIN_VERSION = 5.5; + const PLUGIN_VERSION = 5.6; const PLUGIN_NAME = 'MatchManager Core'; const PLUGIN_AUTHOR = 'Beu'; @@ -773,8 +773,8 @@ class MatchManagerCore implements CallbackListener, CommandListener, TimerListen $this->matchrecover = false; $this->pauseon = false; $this->pointstorecover = array(); - $this->currentscore = array(); - $this->preendroundscore = array(); + $this->currentscore = array(); // TODO CHECK + $this->preendroundscore = null; $this->settingsloaded = false; $this->mapsshuffled = false; $this->mapshidden = false; @@ -2096,7 +2096,7 @@ class MatchManagerCore implements CallbackListener, CommandListener, TimerListen if (isset($login)) { $player = $this->maniaControl->getPlayerManager()->getPlayer($login,true); if ($player) { - $this->maniaControl->getModeScriptEventManager()->setTrackmaniaPlayerPoints($player, "", "", $matchpoints); + $this->maniaControl->getModeScriptEventManager()->setTrackmaniaPlayerPoints($player, $roundpoints, $mappoints, $matchpoints); $this->maniaControl->getChat()->sendSuccess($this->chatprefix . 'Player $<$ff0' . $player->nickname . '$> now has $<$ff0' . $matchpoints . '$> points!'); } else { $this->maniaControl->getChat()->sendError($this->chatprefix . 'Player ' . $target . " isn't connected", $adminplayer);