22declare(strict_types=1);
 
   28trait PlayerDisconnectEventTrait{
 
   35    public function setDisconnectReason(Translatable|
string $disconnectReason) : void{
 
   36        $this->disconnectReason = $disconnectReason;
 
   43    public function getDisconnectReason() : Translatable|string{
 
   44        return $this->disconnectReason;
 
   52    public function setDisconnectScreenMessage(Translatable|
string|
null $disconnectScreenMessage) : void{
 
   53        $this->disconnectScreenMessage = $disconnectScreenMessage;
 
   61    public function getDisconnectScreenMessage() : Translatable|string|null{ return $this->disconnectScreenMessage ?? $this->disconnectReason; }