mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +00:00
Player: fix documented type of disconnect $quitMessage
This commit is contained in:
parent
b172c93e45
commit
49d611168f
@ -1951,7 +1951,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
||||
* That way other plugins can have a say in whether the player is removed or not.
|
||||
*
|
||||
* @param string $reason Shown to the player, usually this will appear on their disconnect screen.
|
||||
* @param TranslationContainer|string $quitMessage Message to broadcast to online players (null will use default)
|
||||
* @param TranslationContainer|string|null $quitMessage Message to broadcast to online players (null will use default)
|
||||
*/
|
||||
public function disconnect(string $reason, $quitMessage = null, bool $notify = true) : void{
|
||||
if(!$this->isConnected()){
|
||||
|
Loading…
x
Reference in New Issue
Block a user