pmmp / PocketMine-MP

A server software for Minecraft: Bedrock Edition in PHP
https://pmmp.io
GNU Lesser General Public License v3.0
3.28k stars 1.55k forks source link

Player->kick() and /kick do not show kick reason. #4588

Closed aderoian closed 2 years ago

aderoian commented 2 years ago

Issue description

Steps to reproduce the issue

/kick Player->kick()

class Main extends PluginBase {

    protected function onEnable(): void {
        $this->getServer()->getPluginManager()->registerEvents(new class() implements Listener {
            public function onJoin(PlayerJoinEvent $event): void {
                $event->getPlayer()->kick("This is a test kick, can you see me?");
            }
        }, $this);
    }
}

OS and versions

Plugins

dktapps commented 2 years ago

This has already been fixed in latest master.