mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 01:09:44 +00:00
Player: fix documented type of disconnect $quitMessage
This commit is contained in:
parent
b172c93e45
commit
49d611168f
@ -1950,8 +1950,8 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
||||
* Note for plugin developers: Prefer kick() instead of this method.
|
||||
* 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 string $reason Shown to the player, usually this will appear on their disconnect screen.
|
||||
* @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