default description for commands

This commit is contained in:
kremsy 2017-06-28 12:45:20 +02:00
parent 88a5d472fa
commit 1da8b61805

View File

@ -65,7 +65,7 @@ class CommandManager implements CallbackListener, UsageInformationAble {
* @param string $description * @param string $description
* @return bool * @return bool
*/ */
public function registerCommandListener($commandName, CommandListener $listener, $method, $adminCommand = false, $description = null) { public function registerCommandListener($commandName, CommandListener $listener, $method, $adminCommand = false, $description = "No Description.") {
if (is_array($commandName)) { if (is_array($commandName)) {
$success = false; $success = false;
foreach ($commandName as $command) { foreach ($commandName as $command) {