diff --git a/core/Callbacks/Structures/ShootMania/OnCaptureStructure.php b/core/Callbacks/Structures/ShootMania/OnCaptureStructure.php index 0e73f889..9b9d23b3 100644 --- a/core/Callbacks/Structures/ShootMania/OnCaptureStructure.php +++ b/core/Callbacks/Structures/ShootMania/OnCaptureStructure.php @@ -42,8 +42,6 @@ class OnCaptureStructure extends BaseStructure { $position->setZ($jsonObj->landmark->position->z); $this->landMark->setPosition($position); - - $this->shooter = $this->maniaControl->getPlayerManager()->getPlayer($this->getPlainJsonObject()->shooter); } /** Dumps the Object with some Information */ diff --git a/core/Callbacks/Structures/ShootMania/OnPlayerRequestRespawnStructure.php b/core/Callbacks/Structures/ShootMania/OnPlayerRequestRespawnStructure.php index dcf98c07..ec086fe9 100644 --- a/core/Callbacks/Structures/ShootMania/OnPlayerRequestRespawnStructure.php +++ b/core/Callbacks/Structures/ShootMania/OnPlayerRequestRespawnStructure.php @@ -25,7 +25,7 @@ class OnPlayerRequestRespawnStructure extends BaseStructure { parent::__construct($maniaControl, $data); $this->time = $this->getPlainJsonObject()->time; - $this->player = $this->maniaControl->getPlayerManager()->getPlayer($this->getPlainJsonObject()->victim); + $this->player = $this->maniaControl->getPlayerManager()->getPlayer($this->getPlainJsonObject()->login); } /**