mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Added typehints and PhpDoc for events API
excluded blocks and entities events API to avoid merge conflicts
This commit is contained in:
@ -35,16 +35,26 @@ class PlayerPreLoginEvent extends PlayerEvent implements Cancellable{
|
||||
/** @var string */
|
||||
protected $kickMessage;
|
||||
|
||||
public function __construct(Player $player, $kickMessage){
|
||||
/**
|
||||
* @param Player $player
|
||||
* @param string $kickMessage
|
||||
*/
|
||||
public function __construct(Player $player, string $kickMessage){
|
||||
$this->player = $player;
|
||||
$this->kickMessage = $kickMessage;
|
||||
}
|
||||
|
||||
public function setKickMessage($kickMessage){
|
||||
/**
|
||||
* @param string $kickMessage
|
||||
*/
|
||||
public function setKickMessage(string $kickMessage){
|
||||
$this->kickMessage = $kickMessage;
|
||||
}
|
||||
|
||||
public function getKickMessage(){
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getKickMessage() : string{
|
||||
return $this->kickMessage;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user