From d51e7750e9345014e7024829b1a7ad071a748b5b Mon Sep 17 00:00:00 2001 From: kremsy Date: Thu, 11 May 2017 23:34:51 +0200 Subject: [PATCH] small fix --- plugins/MCTeam/LocalRecordsPlugin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/MCTeam/LocalRecordsPlugin.php b/plugins/MCTeam/LocalRecordsPlugin.php index fb9c2917..afa9d6a8 100644 --- a/plugins/MCTeam/LocalRecordsPlugin.php +++ b/plugins/MCTeam/LocalRecordsPlugin.php @@ -361,10 +361,10 @@ class LocalRecordsPlugin implements CallbackListener, CommandListener, TimerList /** * Handle Checkpoint Callback * - * @param RecordCallback $callback + * @param OnWayPointEventStructure $callback */ public function handleCheckpointCallback(OnWayPointEventStructure $structure) { - $playerLogin = $structure->getPlayer()->login; + $playerLogin = $structure->getLogin(); if (!isset($this->checkpoints[$playerLogin])) { $this->checkpoints[$playerLogin] = array(); } @@ -374,7 +374,7 @@ class LocalRecordsPlugin implements CallbackListener, CommandListener, TimerList /** * Handle Finish Callback * - * @param RecordCallback $callback + * @param \ManiaControl\Callbacks\Structures\TrackMania\OnWayPointEventStructure $structure */ public function handleFinishCallback(OnWayPointEventStructure $structure) { if ($structure->getRaceTime() <= 0) {