Hey there! I try to use sendChat in a command handler, but that doesn't work... PHP: $data["issuer"]->sendChat("VOTING"); The commands are registered of course. How do i use sendChat correctly? Thanks ~Niki
PHP: $issuer->sendChat("VOTING"); But I would advice you to return a string when using the command handler, because sendChat doesn't work in the console
You may use like this: PHP: public function commandHandler($cmd, $param, $issuer, $alias){$output = ""; // Set the variable $outputswitch($cmd){case "vote":$output .= "Voted successfully."; // Set the messagebreak;}return $output; // Returns message to ConsoleAPI} It can used by Console and also Players