mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
TimingsCommand: fixed silence when using a nonexisting subcommand
This commit is contained in:
parent
e32180ce93
commit
88c1014f03
@ -174,6 +174,8 @@ class TimingsCommand extends VanillaCommand{
|
|||||||
fclose($fileTimings);
|
fclose($fileTimings);
|
||||||
Command::broadcastCommandMessage($sender, new TranslationContainer("pocketmine.command.timings.timingsWrite", [$timings]));
|
Command::broadcastCommandMessage($sender, new TranslationContainer("pocketmine.command.timings.timingsWrite", [$timings]));
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
throw new InvalidCommandSyntaxException();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user