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 SaveOnCommand extends VanillaCommand{
@ -31,7 +32,7 @@ class SaveOnCommand extends VanillaCommand{
parent::__construct(
$name,
"Enables server autosaving",
"/save-on"
"%commands.save-on.usage"
);
$this->setPermission("pocketmine.command.save.enable");
}
@ -43,7 +44,7 @@ class SaveOnCommand extends VanillaCommand{
$sender->getServer()->setAutoSave(true);
Command::broadcastCommandMessage($sender, "Enabled level saving");
Command::broadcastCommandMessage($sender, new TranslationContainer("commands.save.enabled"));
return true;
}