20 public const NETWORK_ID = ProtocolInfo::PLAY_STATUS_PACKET;
22 public const LOGIN_SUCCESS = 0;
23 public const LOGIN_FAILED_CLIENT = 1;
24 public const LOGIN_FAILED_SERVER = 2;
25 public const PLAYER_SPAWN = 3;
26 public const LOGIN_FAILED_INVALID_TENANT = 4;
27 public const LOGIN_FAILED_VANILLA_EDU = 5;
28 public const LOGIN_FAILED_EDU_VANILLA = 6;
29 public const LOGIN_FAILED_SERVER_FULL = 7;
30 public const LOGIN_FAILED_EDITOR_VANILLA = 8;
31 public const LOGIN_FAILED_VANILLA_EDITOR = 9;
38 public static function create(
int $status) : self{
40 $result->status = $status;
45 $this->status = $in->getInt();
48 public function canBeSentBeforeLogin() : bool{
53 $out->putInt($this->status);
57 return $handler->handlePlayStatus($this);