PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Public Member Functions | |
__construct (private NetworkSession $connectingSession, private NetworkSession $existingSession, private Translatable|string $disconnectReason, private Translatable|string|null $disconnectScreenMessage) | |
call () | |
getConnectingSession () | |
getEventName () | |
getExistingSession () | |
isCancelled () | |
Static Public Member Functions | |
static | hasHandlers () |
Protected Attributes | |
string | $eventName = null |
Called when a player connects with a username or UUID that is already used by another player on the server. If cancelled, the newly connecting session will be disconnected; otherwise, the existing player will be disconnected.
Definition at line 36 of file PlayerDuplicateLoginEvent.php.
pocketmine\event\player\PlayerDuplicateLoginEvent::__construct | ( | private NetworkSession | $connectingSession, |
private NetworkSession | $existingSession, | ||
private Translatable|string | $disconnectReason, | ||
private Translatable|string|null | $disconnectScreenMessage ) |
Definition at line 40 of file PlayerDuplicateLoginEvent.php.
|
inherited |
pocketmine\event\player\PlayerDuplicateLoginEvent::getConnectingSession | ( | ) |
Definition at line 47 of file PlayerDuplicateLoginEvent.php.
pocketmine\event\player\PlayerDuplicateLoginEvent::getExistingSession | ( | ) |
Definition at line 51 of file PlayerDuplicateLoginEvent.php.
|
staticinherited |
|
inherited |
Returns whether this instance of the event is currently cancelled.
If it is cancelled, only downstream handlers that declare @handleCancelled
will be called with this event.
|
protectedinherited |