mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
Player: fix documented type of kick $quitMessage
This commit is contained in:
parent
49d611168f
commit
945a2598b7
@ -1925,7 +1925,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
|||||||
/**
|
/**
|
||||||
* Kicks a player from the server
|
* Kicks a player from the server
|
||||||
*
|
*
|
||||||
* @param TranslationContainer|string $quitMessage
|
* @param TranslationContainer|string|null $quitMessage
|
||||||
*/
|
*/
|
||||||
public function kick(string $reason = "", $quitMessage = null) : bool{
|
public function kick(string $reason = "", $quitMessage = null) : bool{
|
||||||
$ev = new PlayerKickEvent($this, $reason, $quitMessage ?? $this->getLeaveMessage());
|
$ev = new PlayerKickEvent($this, $reason, $quitMessage ?? $this->getLeaveMessage());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user