For a Player object: $player->sendMessage($msg); For all players in a Server object: $this->getServer()->broadcastMessage($msg);
No, $sender may be other types such as ConsoleCommandSender. There may be other command sender classes too, such as those from plugins. And not everyone calls it $sender. $event->getPlayer() is only the doer of the event.