mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 06:25:32 +00:00
Merge branch 'next-minor' into next-major
This commit is contained in:
commit
365cce9d0c
@ -65,8 +65,8 @@ class PlayerPreLoginEvent extends Event implements Cancellable{
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an object containing self-proclaimed information about the connecting player.
|
* Returns an object containing self-proclaimed information about the connecting player.
|
||||||
* WARNING: THE PLAYER IS NOT VERIFIED DURING THIS EVENT. At this point, it's unknown if the player is real or a
|
* WARNING: THE PLAYER IS NOT VERIFIED DURING THIS EVENT. At this point, this could be a hacker posing as another
|
||||||
* hacker.
|
* player.
|
||||||
*/
|
*/
|
||||||
public function getPlayerInfo() : PlayerInfo{
|
public function getPlayerInfo() : PlayerInfo{
|
||||||
return $this->playerInfo;
|
return $this->playerInfo;
|
||||||
@ -105,7 +105,7 @@ class PlayerPreLoginEvent extends Event implements Cancellable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets a reason to disallow the player to continue continue authenticating, with a message.
|
* Sets a reason to disallow the player to continue authenticating, with a message.
|
||||||
* This can also be used to change kick messages for already-set flags.
|
* This can also be used to change kick messages for already-set flags.
|
||||||
*/
|
*/
|
||||||
public function setKickReason(int $flag, Translatable|string $message) : void{
|
public function setKickReason(int $flag, Translatable|string $message) : void{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user