permission levels for settings

This commit is contained in:
kremsy
2014-04-13 19:05:54 +02:00
committed by Steffen Schröder
parent 5ad45d3b6f
commit 2bbcbf1d72
5 changed files with 41 additions and 16 deletions

View File

@ -7,6 +7,7 @@ use ManiaControl\Formatter;
use ManiaControl\ManiaControl;
use ManiaControl\Plugins\Plugin;
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
use Maniaplanet\DedicatedServer\Xmlrpc\FatalException;
/**
* Class reporting ManiaControl Usage for the Server
@ -57,6 +58,7 @@ class UsageReporter implements TimerListener {
$properties['ServerLogin'] = $this->maniaControl->server->login;
$properties['TitleId'] = $this->maniaControl->server->titleId;
$properties['ServerName'] = Formatter::stripDirtyCodes($this->maniaControl->client->getServerName());
$properties['PlayerCount'] = $this->maniaControl->playerManager->getPlayerCount();
$properties['MemoryUsage'] = memory_get_usage();
$properties['MemoryPeakUsage'] = memory_get_peak_usage();