mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +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 SaveCommand extends VanillaCommand{
|
||||
@ -31,7 +32,7 @@ class SaveCommand extends VanillaCommand{
|
||||
parent::__construct(
|
||||
$name,
|
||||
"Saves the server to disk",
|
||||
"/save-all"
|
||||
"%commands.save.usage"
|
||||
);
|
||||
$this->setPermission("pocketmine.command.save.perform");
|
||||
}
|
||||
@ -41,7 +42,7 @@ class SaveCommand extends VanillaCommand{
|
||||
return true;
|
||||
}
|
||||
|
||||
Command::broadcastCommandMessage($sender, "Forcing save...");
|
||||
Command::broadcastCommandMessage($sender, new TranslationContainer("commands.save.start"));
|
||||
|
||||
foreach($sender->getServer()->getOnlinePlayers() as $player){
|
||||
$player->save();
|
||||
@ -51,7 +52,7 @@ class SaveCommand extends VanillaCommand{
|
||||
$level->save(true);
|
||||
}
|
||||
|
||||
Command::broadcastCommandMessage($sender, "Save complete.");
|
||||
Command::broadcastCommandMessage($sender, new TranslationContainer("commands.save.success"));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user