fixed plugin install

This commit is contained in:
Steffen Schröder 2014-06-15 01:31:31 +02:00
parent 630d5e82d9
commit 2408dba961

View File

@ -357,13 +357,15 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis
$self->maniaControl->chat->sendError($message, $player);
return;
}
$data = json_decode($data);
if (!isset($data[0])) {
if (!$data) {
$message = "Error loading Plugin Install Data! {$error}";
$self->maniaControl->chat->sendError($message, $player);
return;
}
$pluginUpdateData = new PluginUpdateData($data[0]);
$pluginUpdateData = new PluginUpdateData($data);
$self->installPlugin($pluginUpdateData, $player);
});
}