small fix
This commit is contained in:
parent
859c57e111
commit
765b20d39c
@ -306,8 +306,8 @@ class StatisticCollector implements CallbackListener {
|
||||
$paramsObject = json_decode($callback[1][1]);
|
||||
$victim = $this->maniaControl->playerManager->getPlayer($paramsObject->Event->Victim->Login);
|
||||
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_DEATH, $victim);
|
||||
if (isset($paramsObject->Event->Shooter->Login)) {
|
||||
$shooter = $this->maniaControl->playerManager->getPlayer($paramsObject->Event->Shooter->Login);
|
||||
if ($shooter != null) {
|
||||
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_KILL, $shooter);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user