Update Main.php

You should use $this->getServer()->broadcastMessage to broadcast messages :)