Trigger callback on change of local records

This commit is contained in:
Max Klaversma 2014-04-17 01:02:55 +02:00 committed by Steffen Schröder
parent 46e2ef18e4
commit ff9ec89491

View File

@ -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);