From 8cfe46e32fcaec6ebb47aa5e3a9a956bc4cdc72c Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 20 May 2017 10:10:39 +0200 Subject: [PATCH] dedimania small update --- plugins/MCTeam/Dedimania/DedimaniaData.php | 2 +- plugins/MCTeam/Dedimania/DedimaniaPlugin.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/MCTeam/Dedimania/DedimaniaData.php b/plugins/MCTeam/Dedimania/DedimaniaData.php index 6d3ec688..5b7fc468 100644 --- a/plugins/MCTeam/Dedimania/DedimaniaData.php +++ b/plugins/MCTeam/Dedimania/DedimaniaData.php @@ -116,7 +116,7 @@ class DedimaniaData { * Unsets all existing Records */ public function unsetRecords() { - unset($this->records); + $this->records = array(); } /** diff --git a/plugins/MCTeam/Dedimania/DedimaniaPlugin.php b/plugins/MCTeam/Dedimania/DedimaniaPlugin.php index 008387f9..d329cd7f 100644 --- a/plugins/MCTeam/Dedimania/DedimaniaPlugin.php +++ b/plugins/MCTeam/Dedimania/DedimaniaPlugin.php @@ -238,8 +238,6 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene */ public function handleEveryHalfMinute() { if ($this->webHandler->getDedimaniaData()->sessionId == "") { - var_dump("Debug test Dedimania 2, will be removed soon!"); //TODO - var_dump($this->webHandler->getDedimaniaData()->sessionId); return; } $this->webHandler->checkDedimaniaSession(); @@ -307,7 +305,7 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene /** * Handle Finish Callback * - * @param OnWayPointEventStructure $callback + * @param \ManiaControl\Callbacks\Structures\TrackMania\OnWayPointEventStructure $structure */ public function handleFinishCallback(OnWayPointEventStructure $structure) { if ($structure->getRaceTime() <= 0) {