player speccount methods

This commit is contained in:
kremsy authored and Steffen Schröder committed 2014-05-01 17:35:15 +02:00
1 parent 0e118840fe
commit de54e45b59
2 files changed
+31 -2

No files matched your search

+1 -1
View File
@@ -53,7 +53,7 @@ class UsageReporter implements TimerListener {
$properties['ServerLogin'] = $this->maniaControl->server->login;
$properties['TitleId'] = $this->maniaControl->server->titleId;
$properties['ServerName'] = $this->maniaControl->server->getName();
$properties['PlayerCount'] = count($this->maniaControl->playerManager->getPlayers());
$properties['PlayerCount'] = $this->maniaControl->playerManager->getPlayerCount();
try {
$maxPlayers = $this->maniaControl->client->getMaxPlayers();
$properties['MaxPlayers'] = $maxPlayers["CurrentValue"];