public function dropIn($player) { $this->represent = $player; StormCore::callEvent(new FuturePlayerLoadEvent($player, $this)); }
public function handleAuthCallback($result) { if ($result->code != 200) { $this->authenticated = false; StormCore::callEvent(new PlayerAuthenticationErrorEvent($this, StormClient::teaseError($result->response))); return; } $this->loadJson($result->response); }