small bugfix
This commit is contained in:
parent
73cd13228d
commit
e7eebe3981
@ -95,27 +95,27 @@ class StatisticCollector implements CallbackListener {
|
|||||||
case 'LibXmlRpc_OnShoot': //TODO
|
case 'LibXmlRpc_OnShoot': //TODO
|
||||||
break;
|
break;
|
||||||
case 'LibXmlRpc_OnHit':
|
case 'LibXmlRpc_OnHit':
|
||||||
$shooter = $this->maniaControl->playerManager->getPlayer($callback[1][0]);
|
$shooter = $this->maniaControl->playerManager->getPlayer($callback[1][1][0]);
|
||||||
$victim = $this->maniaControl->playerManager->getPlayer($callback[1][1]);
|
$victim = $this->maniaControl->playerManager->getPlayer($callback[1][1][1]);
|
||||||
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_HIT, $shooter, $serverLogin);
|
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_HIT, $shooter, $serverLogin);
|
||||||
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_GOT_HIT, $victim, $serverLogin);
|
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_GOT_HIT, $victim, $serverLogin);
|
||||||
break;
|
break;
|
||||||
case 'LibXmlRpc_OnNearMiss':
|
case 'LibXmlRpc_OnNearMiss':
|
||||||
$player = $this->maniaControl->playerManager->getPlayer($callback[1][0]);
|
$player = $this->maniaControl->playerManager->getPlayer($callback[1][1][0]);
|
||||||
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_NEARMISS, $player, $serverLogin);
|
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_NEARMISS, $player, $serverLogin);
|
||||||
break;
|
break;
|
||||||
case 'LibXmlRpc_OnCapture':
|
case 'LibXmlRpc_OnCapture':
|
||||||
$player = $this->maniaControl->playerManager->getPlayer($callback[1][0]);
|
$player = $this->maniaControl->playerManager->getPlayer($callback[1][1][0]);
|
||||||
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_CAPTURE, $player, $serverLogin);
|
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_CAPTURE, $player, $serverLogin);
|
||||||
break;
|
break;
|
||||||
case 'LibXmlRpc_OnArmorEmpty':
|
case 'LibXmlRpc_OnArmorEmpty':
|
||||||
$shooter = $this->maniaControl->playerManager->getPlayer($callback[1][0]);
|
$shooter = $this->maniaControl->playerManager->getPlayer($callback[1][1][0]);
|
||||||
$victim = $this->maniaControl->playerManager->getPlayer($callback[1][1]);
|
$victim = $this->maniaControl->playerManager->getPlayer($callback[1][1][1]);
|
||||||
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_KILL, $shooter, $serverLogin);
|
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_KILL, $shooter, $serverLogin);
|
||||||
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_DEATH, $victim, $serverLogin);
|
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_DEATH, $victim, $serverLogin);
|
||||||
break;
|
break;
|
||||||
case 'LibXmlRpc_OnPlayerRequestRespawn':
|
case 'LibXmlRpc_OnPlayerRequestRespawn':
|
||||||
$player = $this->maniaControl->playerManager->getPlayer($callback[1][0]);
|
$player = $this->maniaControl->playerManager->getPlayer($callback[1][1][0]);
|
||||||
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_PLAYER_REQUEST_RESPAWN, $player, $serverLogin);
|
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_PLAYER_REQUEST_RESPAWN, $player, $serverLogin);
|
||||||
break;
|
break;
|
||||||
case 'OnShoot': //TODO
|
case 'OnShoot': //TODO
|
||||||
|
Loading…
Reference in New Issue
Block a user