Hello, i am making GTA 5 roleplay server in pocketmine and im figuring out how to make plugin that looks like /say but i want to make it /tweet. So if i run /tweet and message it will be "[Twitter] [Name] (Message)" just like /say. Thanks and sorry for terribe english
$this->getServer()->sendbroadcastmessage("[TWITER]"); and use args to send you msg, setprefix to solved if you dont need more help
If you also want to get the player’s name, use: PHP: $this->getServer()->sendbroadcastmessage(“[Twitter] “. <$player>->getName() .” [args]”); Replace “<$player>” with your player variable