From ff9ec894919125baa2056c36794f589710b02bbb Mon Sep 17 00:00:00 2001 From: Max Klaversma Date: Thu, 17 Apr 2014 01:02:55 +0200 Subject: [PATCH] Trigger callback on change of local records --- application/plugins/LocalRecords.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/plugins/LocalRecords.php b/application/plugins/LocalRecords.php index 828041d2..bde29b5e 100644 --- a/application/plugins/LocalRecords.php +++ b/application/plugins/LocalRecords.php @@ -44,6 +44,7 @@ class LocalRecordsPlugin implements CallbackListener, CommandListener, TimerList const SETTING_NOTIFY_ONLY_DRIVER = 'Notify only the Driver on New Records'; const SETTING_NOTIFY_BEST_RECORDS = 'Notify Publicly only for the X Best Records'; const SETTING_ADJUST_OUTER_BORDER = 'Adjust outer Border to Number of actual Records'; + const CB_LOCALRECORDS_CHANGE = 'LocalRecords.Change'; /* * Private Properties @@ -268,6 +269,7 @@ class LocalRecordsPlugin implements CallbackListener, CommandListener, TimerList return; } $this->updateManialink = true; + $this->maniaControl->callbackManager->triggerCallback(self::CB_LOCALRECORDS_CHANGE); // Announce record $newRecord = $this->getLocalRecord($map, $player);