More language files

This commit is contained in:
Shoghi Cervantes
2015-04-11 12:56:38 +02:00
parent de052a79de
commit c2138aa30c
32 changed files with 311 additions and 116 deletions

View File

@ -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;
}