Expected result: When a player is kicked via /kick or Player->kick() the reason specified should show on the disconnect screen.
Actual result: Only the message Disconnected from Server appears.
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
PocketMine-MP: 4.0.0-BETA12
PHP: 8.0.12
Using JIT: no
Server OS: Linux
Game version: Win10
Plugins
If you remove all plugins, does the issue still occur? Yes
Issue description
Player->kick()
the reason specified should show on the disconnect screen.Disconnected from Server
appears.Steps to reproduce the issue
/kick
Player->kick()
OS and versions
Plugins