Declare built-in command names inside the constructor (#5487)

This increases code consistency by placing the name in the same place where everything else about the command is defined.
This commit is contained in:
BrandPVP
2023-01-09 23:43:08 +03:00
committed by GitHub
parent 545d18eea7
commit 9c391a6809
41 changed files with 121 additions and 121 deletions

View File

@ -57,9 +57,9 @@ use const PHP_EOL;
class TimingsCommand extends VanillaCommand{
public function __construct(string $name){
public function __construct(){
parent::__construct(
$name,
"timings",
KnownTranslationFactory::pocketmine_command_timings_description(),
KnownTranslationFactory::pocketmine_command_timings_usage()
);