Merge remote-tracking branch 'origin/master'

This commit is contained in:
PeratX 2016-04-09 13:56:18 +08:00
commit f01f86f1fe
7 changed files with 32 additions and 4 deletions

View file

@ -25,7 +25,7 @@ class CaveCommand extends VanillaCommand{
parent::__construct(
$name,
"Generate a cave",
"/cave <旋转角度> <洞穴长度> <分叉数> <洞穴强度> <X> <Y> <Z> <LevelName> | /cave getmypos"
"%commands.cave.usage"
);
$this->setPermission("pocketmine.command.cave");
}
@ -57,11 +57,11 @@ class CaveCommand extends VanillaCommand{
$caves[2] = isset($args[2]) ? $args[2] : mt_rand(1, 6);
$caves[4] = isset($args[3]) ? $args[3] : mt_rand(1, 10);
$caves[3] = [false, true, true];
$sender->sendMessage("旋转角度:{$caves[0]} 洞穴长度:{$caves[1]} 分叉数:{$caves[2]} 洞穴强度:{$caves[4]}");
$sender->sendMessage("[Caves] " . TextFormat::YELLOW . "开始生成矿洞,可能需要较多时间");
$sender->sendMessage(new TranslationContainer("commands.cave.info", [$caves[0], $caves[1], $caves[2], $caves[3]]));
$sender->sendMessage("[Caves] " . TextFormat::YELLOW . "%commands.cave.start");
$sender->sendMessage($pos->x . " " . $pos->y . " " . $pos->z);
$this->caves($pos, $caves);
$sender->sendMessage("[Caves] " . TextFormat::GREEN . "矿洞生成完毕啦");
$sender->sendMessage("[Caves] " . TextFormat::GREEN . "%commands.cave.success");
return true;
}

View file

@ -207,6 +207,11 @@ commands.setworldspawn.usage=/setworldspawn [<x> <y> <z>]
commands.setworldspawn.success=设定世界重生点为 ({%0}{%1}{%2})
commands.summon.usage=/summon [实体名] [<x> <y> <z>] [数据标签]
commands.cave.usage=/cave <旋转角度> <洞穴长度> <分叉数> <洞穴强度> <X> <Y> <Z> <LevelName> | /cave getmypos
commands.cave.info=旋转角度:{%0} 洞穴长度:{%1} 分叉数:{%2} 洞穴强度:{%3}
commands.cave.start=开始生成矿洞,可能需要较多时间
commands.cave.success=矿洞生成完毕啦
# -------------------- PocketMine language files, only for console --------------------
pocketmine.data.playerNotFound=无法找到玩家数据 "{%0}",创建新的配置文件
pocketmine.data.playerCorrupted=发现损坏的数据 "{%0}",创建新的配置文件

View file

@ -204,6 +204,11 @@ commands.setworldspawn.usage=/setworldspawn [<x> <y> <z>]
commands.setworldspawn.success=Set the world spawn point to ({%0}, {%1}, {%2})
commands.summon.usage=/summon [entity] [<x> <y> <z>] [NBTTag]
commands.cave.usage=/cave <angle of rotation> <length> <Branch Number> <strength> <X> <Y> <Z> <LevelName> | /cave getmypos
commands.cave.info=Angle of rotation:{%0} Length:{%1} Branch Number:{%2} Strength:{%3}
commands.cave.start=Start to generate caveplease wait
commands.cave.success=Finished generating cave
# -------------------- PocketMine language files, only for console --------------------
pocketmine.data.playerNotFound=Player data not found for "{%0}", creating new profile
pocketmine.data.playerCorrupted=Corrupted data found for "{%0}", creating new profile

View file

@ -204,6 +204,10 @@ commands.setworldspawn.usage=/setworldspawn [<x> <y> <z>]
commands.setworldspawn.success=({%0},{%1},{%2}) にワールドのスポーンポイントを設定します
commands.summon.usage=/summon [実体名] [<x> <y> <z>] [データタグ]
commands.cave.usage=/cave <angle of rotation> <length> <Branch Number> <strength> <X> <Y> <Z> <LevelName> | /cave getmypos
commands.cave.info=Angle of rotation:{%0} Length:{%1} Branch Number:{%2} Strength:{%3}
commands.cave.start=Start to generate caveplease wait
# -------------------- PocketMine language files, only for console --------------------
pocketmine.data.playerNotFound={%0} のプレイヤーデータが見つからないため、新たに作成します
pocketmine.data.playerCorrupted={%0} のデータの破損が見つかったため、新たに作成します

View file

@ -196,6 +196,10 @@ commands.spawnpoint.success=Установлена точка респауна
commands.setworldspawn.usage=/setworldspawn [<x> <y> <z>]
commands.setworldspawn.success=Установлен респаун мира на ({%0}, {%1}, {%2})
commands.summon.usage=/summon [сущность] [<x> <y> <z>] [Имя]
commands.cave.usage=/cave <angle of rotation> <length> <Branch Number> <strength> <X> <Y> <Z> <LevelName> | /cave getmypos
commands.cave.info=Angle of rotation:{%0} Length:{%1} Branch Number:{%2} Strength:{%3}
commands.cave.start=Start to generate caveplease wait
# -------------------- PocketMine language files, only for console --------------------
pocketmine.data.playerNotFound=Информация об игроке "{%0}" не найдена, создаётся новый профиль
pocketmine.data.playerCorrupted=Повреждённые данные у игрока "{%0}", создание нового профиля

View file

@ -196,6 +196,10 @@ commands.spawnpoint.success=Đặt điểm spawn {%0} ở ({%1}, {%2}, {%3})
commands.setworldspawn.usage=/setworldspawn [<x> <y> <z>]
commands.setworldspawn.success=Đặt điểm mặc định ở ({%0}, {%1}, {%2})
commands.summon.usage=/summon [tên mob] [<x> <y> <z>] [đặt tên cho mob]
commands.cave.usage=/cave <angle of rotation> <length> <Branch Number> <strength> <X> <Y> <Z> <LevelName> | /cave getmypos
commands.cave.info=Angle of rotation:{%0} Length:{%1} Branch Number:{%2} Strength:{%3}
commands.cave.start=Start to generate caveplease wait
# -------------------- PocketMine language files, only for console --------------------
pocketmine.data.playerNotFound=Player data not found for "{%0}", creating new profile
pocketmine.data.playerCorrupted=Corrupted data found for "{%0}", creating new profile

View file

@ -204,6 +204,12 @@ commands.setworldspawn.usage=/setworldspawn [<x> <y> <z>]
commands.setworldspawn.success=設定世界重生點為 ({%0}, {%1}, {%2})
commands.summon.usage=/summon <實體名稱> [<x> <y> <z>] [數據標籤]
commands.cave.usage=/cave <旋转角度> <洞穴长度> <分叉数> <洞穴强度> <X> <Y> <Z> <LevelName> | /cave getmypos
commands.cave.info=旋转角度:{%0} 洞穴长度:{%1} 分叉数:{%2} 洞穴强度:{%3}
commands.cave.start=开始生成矿洞,可能需要较多时间
commands.cave.success=矿洞生成完毕啦
# -------------------- PocketMine language files, only for console --------------------
pocketmine.data.playerNotFound=無法找到玩家數據 "{%0}",正在創建新的數據檔
pocketmine.data.playerCorrupted=發現損壞的數據 "{%0}",創建新的設定檔