Updated PluginID DynamicPointlimit

This commit is contained in:
Max Klaversma 2014-02-25 18:28:53 +01:00 committed by Steffen Schröder
parent 745f930f0c
commit c90a6b40b6
2 changed files with 15 additions and 1 deletions

View File

@ -72,9 +72,23 @@ class UsageReporter implements TimerListener {
}
}
$activePlugins = array();
if(is_array($this->maniaControl->pluginManager->getActivePlugins())) {
foreach($this->maniaControl->pluginManager->getActivePlugins() as $plugin) {
if(!is_null($plugin->getId()) && is_numeric($plugin->getId())) {
$activePlugins[] = $plugin->getId();
}
}
}
$properties['ActivePlugins'] = $activePlugins;
$json = json_encode($properties);
$info = base64_encode($json);
echo ManiaControl::URL_WEBSERVICE . "/usagereport?info=" . urlencode($info);
$this->maniaControl->fileReader->loadFile(ManiaControl::URL_WEBSERVICE . "/usagereport?info=" . urlencode($info), function ($response, $error) {
$response = json_decode($response);
if ($error || !$response) {

View File

@ -19,7 +19,7 @@ class DynamicPointlimitPlugin implements CallbackListener, CommandListener, Plug
/**
* Constants
*/
const ID = 13;
const ID = 43;
const VERSION = 0.1;
const DYNPNT_MULTIPLIER = 'Pointlimit multiplier';