Use Chat::formatMessage in Plugins/*

This commit is contained in:
Alexander Nell 2020-05-30 22:45:43 +02:00
parent 74dc8182bf
commit ec93e56869
1 changed files with 5 additions and 1 deletions

View File

@ -465,7 +465,11 @@ class PluginManager {
//Unload the Plugin and all its features
$this->unloadPlugin($plugin);
$message = "Error during Plugin Activation of '{$pluginClass}': '{$e->getMessage()}'";
$this->maniaControl->getChat()->sendException($e, $adminLogin);
$message = $this->maniaControl->getChat()->formatMessage(
'Error during Plugin Activation of %s!',
$pluginClass
);
$this->maniaControl->getChat()->sendError($message, $adminLogin);
Logger::logError($message);
$this->savePluginStatus($pluginClass, false);