TitleCommand: fix off-by-one bug in "times" subcommand

This commit is contained in:
Dylan K. Taylor 2019-01-02 21:04:21 +00:00
parent d34f3f1af3
commit 658786f2f6

View File

@ -82,7 +82,7 @@ class TitleCommand extends VanillaCommand{
$player->addActionBarMessage(implode(" ", array_slice($args, 2)));
break;
case "times":
if(count($args) < 4){
if(count($args) < 5){
throw new InvalidCommandSyntaxException();
}