TimingsCommand: fixed silence when using a nonexisting subcommand

This commit is contained in:
Dylan K. Taylor 2020-06-20 23:04:08 +01:00
parent e32180ce93
commit 88c1014f03

View File

@ -174,6 +174,8 @@ class TimingsCommand extends VanillaCommand{
fclose($fileTimings);
Command::broadcastCommandMessage($sender, new TranslationContainer("pocketmine.command.timings.timingsWrite", [$timings]));
}
}else{
throw new InvalidCommandSyntaxException();
}
return true;