fixed trackmania endround and others

This commit is contained in:
kremsy 2017-05-17 13:48:41 +02:00
parent e393bf0b4f
commit d8b82640b5

View File

@ -556,9 +556,9 @@ class ModeScriptEventManager implements UsageInformationAble {
*
* @api
* @param $eventName
* @param string $data
* @param array $data
*/
public function triggerModeScriptEvent($eventName, $data = '') {
public function triggerModeScriptEvent($eventName, $data = array()) {
$this->maniaControl->getClient()->triggerModeScriptEvent($eventName, $data, function ($exception) use ($eventName) {
if ($exception instanceof GameModeException) {
if ($exception->getMessage() != 'Not in script mode.') {