mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-16 16:34:05 +00:00
TitleCommand: fix off-by-one bug in "times" subcommand
This commit is contained in:
parent
d34f3f1af3
commit
658786f2f6
@ -82,7 +82,7 @@ class TitleCommand extends VanillaCommand{
|
|||||||
$player->addActionBarMessage(implode(" ", array_slice($args, 2)));
|
$player->addActionBarMessage(implode(" ", array_slice($args, 2)));
|
||||||
break;
|
break;
|
||||||
case "times":
|
case "times":
|
||||||
if(count($args) < 4){
|
if(count($args) < 5){
|
||||||
throw new InvalidCommandSyntaxException();
|
throw new InvalidCommandSyntaxException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user