How could I create a command to say disable a text message? So far I have: Also, how could I add an alias to the command construction? PHP: public function __construct(){ parent::__construct("chatmessage"); $this->setDescription("Chat Message"); } public function execute(CommandSender $sender, string $label, array $args){ if($sender instanceof Player){ $sender->sendMessage("You have [disable/enabled-here] command"); for aliases, would i do: PHP: $this->setDescription("desc");$this->setAliases(["alias"]); ?
https://jenkins.pmmp.io/job/PocketM...ayer_1_1_player_command_preprocess_event.html Keep track of the commands that are blocked in an array, and persist them inside a config. P.S. I might be wrong, but shouldn't be there type hinted return value as boolean?