mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-08 04:38:35 +00:00
DumpMemoryCommand: use localized description
This commit is contained in:
parent
91ac47ecba
commit
fc487b17be
@ -24,6 +24,7 @@ declare(strict_types=1);
|
|||||||
namespace pocketmine\command\defaults;
|
namespace pocketmine\command\defaults;
|
||||||
|
|
||||||
use pocketmine\command\CommandSender;
|
use pocketmine\command\CommandSender;
|
||||||
|
use pocketmine\lang\KnownTranslationFactory;
|
||||||
use pocketmine\permission\DefaultPermissionNames;
|
use pocketmine\permission\DefaultPermissionNames;
|
||||||
use Symfony\Component\Filesystem\Path;
|
use Symfony\Component\Filesystem\Path;
|
||||||
use function date;
|
use function date;
|
||||||
@ -33,7 +34,7 @@ class DumpMemoryCommand extends VanillaCommand{
|
|||||||
public function __construct(string $name){
|
public function __construct(string $name){
|
||||||
parent::__construct(
|
parent::__construct(
|
||||||
$name,
|
$name,
|
||||||
"Dumps the memory",
|
KnownTranslationFactory::pocketmine_command_dumpmemory_description(),
|
||||||
"/$name [path]"
|
"/$name [path]"
|
||||||
);
|
);
|
||||||
$this->setPermission(DefaultPermissionNames::COMMAND_DUMPMEMORY);
|
$this->setPermission(DefaultPermissionNames::COMMAND_DUMPMEMORY);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user