diff --git a/.poggit.yml b/.poggit.yml index 68c23e5..1e42fce 100644 --- a/.poggit.yml +++ b/.poggit.yml @@ -8,5 +8,5 @@ projects: icon: "/assets/Logo.png" libs: - src: fuyutsuki/libform/libform - version: 0.1.2 + version: 0.2.0 ... diff --git a/README.md b/README.md index 159809b..f959dd7 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ It may have many bugs. ## Texter Texter is plugin that displays and deletes FloatingTextPerticle supported to multi-world. -Latest: ver **2.3.4** _Phyllorhiza punctata_ +Latest: ver **2.4.0** _Phyllorhiza punctata_ ### Supporting - [x] Minecraft(Bedrock) v1.2.x @@ -100,7 +100,7 @@ You may grab the plugin from [Source](https://github.com/fuyutsuki/Texter/archiv ## Texter TexterはFloatingTextPerticleを複数ワールドに渡り表示、削除ができるプラグインです。 -最新バージョン: **2.3.4** _Phyllorhiza punctata_ +最新バージョン: **2.4.0** _Phyllorhiza punctata_ ### 対応状況 - [x] Minecraft(Bedrockエンジン) v1.2.x diff --git a/resources/language/eng.ini b/resources/language/eng.ini index 3e605e0..8fe3748 100644 --- a/resources/language/eng.ini +++ b/resources/language/eng.ini @@ -23,7 +23,7 @@ on.enable.message={%0} - "{%1}" is Enabled error.config.limit=The value of "{%0}" item in config.yml is invalid. Set to initial value: {%1} command.txt.description=Manipulate floating texts -command.txt.usage=/txt +command.txt.usage=/txt command.txt.usage.indent=Please insert §6\# §fif you want line break command.txt.add=/txt a(dd) command.txt.add.success=FloatingText: {%0} created diff --git a/resources/language/jpn.ini b/resources/language/jpn.ini index 879ac48..5427b5a 100644 --- a/resources/language/jpn.ini +++ b/resources/language/jpn.ini @@ -21,7 +21,7 @@ on.enable.prepared=Crft: {%0} 個 / Ft: {%1} 個を生成しました on.enable.message={%0} - "{%1}" が有効になりました command.txt.description=浮き文字を操作します -command.txt.usage=/txt +command.txt.usage=/txt command.txt.usage.indent=改行をしたい場合は §6\# §fを挿入してください command.txt.add=/txt a(dd) command.txt.add.success=浮き文字: {%0} を作成しました diff --git a/src/tokyo/pmmp/Texter/command/TxtCommand.php b/src/tokyo/pmmp/Texter/command/TxtCommand.php index 48e6231..90dd5bc 100644 --- a/src/tokyo/pmmp/Texter/command/TxtCommand.php +++ b/src/tokyo/pmmp/Texter/command/TxtCommand.php @@ -37,6 +37,7 @@ // texter use tokyo\pmmp\Texter\{ Core, + data\FtsData, TexterApi, text\Text, text\FloatingText as FT @@ -300,7 +301,7 @@ public function editReceive(Player $player, $response): void { if (TexterApi::canEdit($player, $check)) { $ft->setTitle($title) ->sendToLevel($level, Text::SEND_TYPE_ADD); - $this->core->getFtsDataManager()->saveTextByLevel($level, $ft); + FtsData::get()->saveTextByLevel($level, $ft); $message = $this->lang->translateString("command.txt.edit.success", [ TF::clean($response[self::EDIT_KEY_FTNAME]), $this->lang->translateString("form.title") @@ -316,7 +317,7 @@ public function editReceive(Player $player, $response): void { if (TexterApi::canEdit($player, $check)) { $ft->setText($text) ->sendToLevel($level, Text::SEND_TYPE_ADD); - $this->core->getFtsDataManager()->saveTextByLevel($level, $ft); + FtsData::get()->saveTextByLevel($level, $ft); $message = $this->lang->translateString("command.txt.edit.success", [ TF::clean($response[self::EDIT_KEY_FTNAME]), $this->lang->translateString("form.text") @@ -345,7 +346,7 @@ public function moveReceive(Player $player, $response): void { if (TexterApi::canEdit($player, $ft)) { $ft->setPosition(Position::fromObject($player->add(0, 2, 0), $level)) ->sendToLevel($level, Text::SEND_TYPE_MOVE); - $this->core->getFtsDataManager()->saveTextByLevel($level, $ft); + FtsData::get()->saveTextByLevel($level, $ft); $message = $this->lang->translateString("command.txt.move.success", [ TF::clean($response[self::MOVE_KEY_FTNAME]), $this->lang->translateString("form.move.here")