PlayerDuplicateLoginEvent: remove dead code

This commit is contained in:
Dylan K. Taylor 2023-01-23 20:21:06 +00:00
parent 06ad1a2d2b
commit 002f7d6826
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -38,16 +38,12 @@ class PlayerDuplicateLoginEvent extends Event implements Cancellable{
use CancellableTrait;
use PlayerDisconnectEventTrait;
private Translatable|string $disconnectMessage;
public function __construct(
private NetworkSession $connectingSession,
private NetworkSession $existingSession,
private Translatable|string $disconnectReason,
private Translatable|string|null $disconnectScreenMessage
){
$this->disconnectMessage = KnownTranslationFactory::disconnectionScreen_loggedinOtherLocation();
}
){}
public function getConnectingSession() : NetworkSession{
return $this->connectingSession;
@ -56,15 +52,4 @@ class PlayerDuplicateLoginEvent extends Event implements Cancellable{
public function getExistingSession() : NetworkSession{
return $this->existingSession;
}
/**
* Returns the message shown to the session which gets disconnected.
*/
public function getDisconnectMessage() : Translatable|string{
return $this->disconnectMessage;
}
public function setDisconnectMessage(Translatable|string $message) : void{
$this->disconnectMessage = $message;
}
}