Updated PluginID DynamicPointlimit
This commit is contained in:
parent
745f930f0c
commit
c90a6b40b6
@ -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) {
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user