mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
More language files
This commit is contained in:
@@ -23,6 +23,7 @@ namespace pocketmine\command\defaults;
|
||||
|
||||
use pocketmine\command\Command;
|
||||
use pocketmine\command\CommandSender;
|
||||
use pocketmine\event\TranslationContainer;
|
||||
|
||||
|
||||
class SaveOffCommand extends VanillaCommand{
|
||||
@@ -31,7 +32,7 @@ class SaveOffCommand extends VanillaCommand{
|
||||
parent::__construct(
|
||||
$name,
|
||||
"Disables server autosaving",
|
||||
"/save-off"
|
||||
"%commands.save-off.usage"
|
||||
);
|
||||
$this->setPermission("pocketmine.command.save.disable");
|
||||
}
|
||||
@@ -43,7 +44,7 @@ class SaveOffCommand extends VanillaCommand{
|
||||
|
||||
$sender->getServer()->setAutoSave(false);
|
||||
|
||||
Command::broadcastCommandMessage($sender, "Disabled level saving");
|
||||
Command::broadcastCommandMessage($sender, new TranslationContainer("commands.save.disabled"));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user