Skip to content

Commit

Permalink
Release v3.4.10
Browse files Browse the repository at this point in the history
* Close #93
* Confirmed working with PocketMine-MP 3.15.0 (Minecraft 1.16.20)
  • Loading branch information
fuyutsuki committed Aug 12, 2020
1 parent b0abf76 commit fb6c505
Show file tree
Hide file tree
Showing 17 changed files with 66 additions and 37 deletions.
4 changes: 4 additions & 0 deletions .github/changelogs/en_us.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 3.4.x

### 3.4.10

- Confirmed the operation of [pmmp/PocketMine-MP](https://github.com/pmmp/PocketMine-MP) with the latest release `3.15.0` of Minecraft: Bedrock Edition 1.16.20 release

### 3.4.9

- Translated by @VicoSilalahi: Added Indonesian
Expand Down
12 changes: 8 additions & 4 deletions .github/changelogs/id_id.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@

## 3.4.x

### 3.4.10

- Mengonfirmasi operasi [pmmp/PocketMine-MP](https://github.com/pmmp/PocketMine-MP) dengan rilis terbaru `3.15.0` dari Minecraft: Bedrock Edition 1.16.20 rilis perbaikan terbaru

### 3.4.9

- Diterjemahkan oleh @VicoSilalahi: Ditambahkan bahasa Indonesia

### 3.4.8

- Mengonfirmasi operasi [pmmp / PocketMine-MP] (https://github.com/pmmp/PocketMine-MP) dengan rilis terbaru `3.14.0` dari Minecraft: Bedrock Edition 1.16.0.20 rilis perbaikan terbaru
- Mengonfirmasi operasi [pmmp/PocketMine-MP](https://github.com/pmmp/PocketMine-MP) dengan rilis terbaru `3.14.0` dari Minecraft: Bedrock Edition 1.16.0.20 rilis perbaikan terbaru

### 3.4.7

- Diterjemahkan oleh @minijaham: Ditambahkan Korea

### 3.4.6

- Mengonfirmasi pengoperasian [pmmp / PocketMine-MP] (https://github.com/pmmp/PocketMine-MP) dengan rilis terbaru `3.12.0` dari Minecraft: Bedrock Edition 1.14.60 rilis perbaikan terbaru
- Mengonfirmasi pengoperasian [pmmp/PocketMine-MP](https://github.com/pmmp/PocketMine-MP) dengan rilis terbaru `3.12.0` dari Minecraft: Bedrock Edition 1.14.60 rilis perbaikan terbaru

### 3.4.5

Expand All @@ -38,11 +42,11 @@

### 3.4.1

- Mengonfirmasi pengoperasian [pmmp / PocketMine-MP] (https://github.com/pmmp/PocketMine-MP) dengan rilis terbaru `3.11.1` dari Minecraft: Bedrock Edition 1.14.0 rilis
- Mengonfirmasi pengoperasian [pmmp/PocketMine-MP](https://github.com/pmmp/PocketMine-MP) dengan rilis terbaru `3.11.1` dari Minecraft: Bedrock Edition 1.14.0 rilis

### 3.4.0

- [pmmp / PocketMine-MP] (https://github.com/pmmp/PocketMine-MP) didukung. Bersamaan dengan itu, garpu yang tidak mengikuti perubahan pmmp tidak akan berfungsi dalam rilis ini
- [pmmp/PocketMine-MP](https://github.com/pmmp/PocketMine-MP) didukung. Bersamaan dengan itu, garpu yang tidak mengikuti perubahan pmmp tidak akan berfungsi dalam rilis ini

***

Expand Down
4 changes: 4 additions & 0 deletions .github/changelogs/ja_jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 3.4.x

### 3.4.10

- Minecraft: Bedrock Edition 1.16.20 リリースに伴う [pmmp/PocketMine-MP](https://github.com/pmmp/PocketMine-MP) の最新リリース `3.15.0` での動作確認を行いました

### 3.4.9

- @VicoSilalahiによる翻訳: インドネシア語 を追加しました
Expand Down
26 changes: 15 additions & 11 deletions .github/changelogs/ko_kr.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,51 @@

## 3.4.x

### 3.4.10

- Minecraft : Bedrock Edition 1.16.20 핫픽스 릴리스의 최신 릴리스 `3.15.0` 에서 [pmmp/PocketMine-MP](https://github.com/pmmp/PocketMine-MP) 의 작동을 확인했습니다.

### 3.4.9

- @VicoSilalahi의 번역: 인도네시아어 추가

### 3.4.8

-Minecraft : Bedrock Edition 1.16.0.20 핫픽스 릴리스의 최신 릴리스 '3.14.0'에서 [pmmp / PocketMine-MP] (https://github.com/pmmp/PocketMine-MP)의 작동을 확인했습니다.
- Minecraft : Bedrock Edition 1.16.0.20 핫픽스 릴리스의 최신 릴리스 `3.14.0` 에서 [pmmp / PocketMine-MP] (https://github.com/pmmp/PocketMine-MP)의 작동을 확인했습니다.

### 3.4.7

-@minijaham 번역 : 한국어 추가
- @minijaham 번역 : 한국어 추가

### 3.4.6

-Minecraft : Bedrock Edition 1.14.60 핫픽스 릴리스의 최신 릴리스 '3.12.0'에서 [pmmp / PocketMine-MP] (https://github.com/pmmp/PocketMine-MP)의 작동을 확인했습니다.
- Minecraft : Bedrock Edition 1.14.60 핫픽스 릴리스의 최신 릴리스 `3.12.0` 에서 [pmmp / PocketMine-MP] (https://github.com/pmmp/PocketMine-MP)의 작동을 확인했습니다.

### 3.4.5

-@ SuperAdam47 번역 : 터키어 수정
- @ SuperAdam47 번역 : 터키어 수정

### 3.4.4

-언어별로 '변경 로그'추가
-@ SuperAdam47 번역 : 터키어 추가
-@SuperYYT 번역 : 중국어 수정
- 언어별로 '변경 로그'추가
- @SuperAdam47 번역 : 터키어 추가
- @SuperYYT 번역 : 중국어 수정

### 3.4.3

-@SuperYYT 번역 : 중국어 추가
- @SuperYYT 번역 : 중국어 추가

### 3.4.2

-@ No4NaMe 번역 : 러시아어 추가
- @No4NaMe 번역 : 러시아어 추가

### 3.4.1

-Minecraft : Bedrock Edition 1.14.0 릴리스의 최신 릴리스 '3.11.1'에서 [pmmp / PocketMine-MP] (https://github.com/pmmp/PocketMine-MP)의 작동을 확인했습니다.
- Minecraft : Bedrock Edition 1.14.0 릴리스의 최신 릴리스 '3.11.1'에서 [pmmp/PocketMine-MP](https://github.com/pmmp/PocketMine-MP) 의 작동을 확인했습니다.

### 3.4.0

-[pmmp / PocketMine-MP] (https://github.com/pmmp/PocketMine-MP)가 지원됩니다. 이와 함께 pmmp 변경 사항을 따르지 않는 포크는이 릴리스에서 작동하지 않습니다.
- [pmmp/PocketMine-MP](https://github.com/pmmp/PocketMine-MP) 가 지원됩니다. 이와 함께 pmmp 변경 사항을 따르지 않는 포크는이 릴리스에서 작동하지 않습니다.

***

Expand Down
4 changes: 4 additions & 0 deletions .github/changelogs/ru_ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 3.4.x

### 3.4.10

- Подтвердил работу [pmmp/PocketMine-MP](https://github.com/pmmp/PocketMine-MP) с последней версией `3.15.0` выпуска исправлений Minecraft: Bedrock Edition 1.16.20

### 3.4.9

- Перевод @VicoSilalahi: добавлен индонезийский
Expand Down
4 changes: 4 additions & 0 deletions .github/changelogs/tr_tr.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 3.4.x

### 3.4.10

- [pmmp/PocketMine-MP](https://github.com/pmmp/PocketMine-MP) çalışmasını en son Minecraft: Bedrock Edition 1.16.20 sürümü ile onayladı

### 3.4.9

- Çeviri @VicoSilalahi: Endonezce eklendi
Expand Down
4 changes: 4 additions & 0 deletions .github/changelogs/zh_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 3.4.x

### 3.4.10

- 通过Minecraft的最新版本 `3.15.0` 确认了 [pmmp/PocketMine-MP](https://github.com/pmmp/PocketMine-MP) 的操作:Bedrock Edition 1.16.20版本

### 3.4.9

- @VicoSilalahi翻译:添加了印尼语
Expand Down
2 changes: 1 addition & 1 deletion .github/readme/id_id.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Pilih bahasa lain:
## Texter

Texter adalah plugin yang menampilkan dan menghapus FloatingTextParticle yang didukung untuk multi-dunia.
Terbaru: ver **3.4.9**
Terbaru: ver **3.4.10**


<!--
Expand Down
2 changes: 1 addition & 1 deletion .github/readme/ja_jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
## Texter

TexterはFloatingTextPerticleを複数ワールドに渡り表示、編集、移動、削除ができるプラグインです。
最新バージョン: **3.4.9**
最新バージョン: **3.4.10**


<!--
Expand Down
2 changes: 1 addition & 1 deletion .github/readme/ko_kr.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
## 텍스터

텍스터 플러그인은 홀로그램 사용과 멀티월드 지원을 합니다!
최신 버전: ver **3.4.9**
최신 버전: ver **3.4.10**

<!--
**이 지점은 개발 중입니다. 많은 버그가있을 수 있습니다**
Expand Down
2 changes: 1 addition & 1 deletion .github/readme/ru_ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
## Текстер

Texter - это плагин, который позволяет вам просматривать, редактировать, перемещать и удалять FloatingTextPerticle в нескольких мирах.
Последняя версия: **3.4.9**
Последняя версия: **3.4.10**


<!--
Expand Down
2 changes: 1 addition & 1 deletion .github/readme/tr_tr.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Başka bir dil seçin:
## Texter

Texter, çoklu dünya için desteklenen FloatingTextPerticle'ı görüntüleyen ve silen eklentidir.
En son: ver **3.4.9**
En son: ver **3.4.10**


<!--
Expand Down
2 changes: 1 addition & 1 deletion .github/readme/zh_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
## Texter

Texter是一个插件,显示和删除浮动的文本且支持多世界。
最新版本: **3.4.9**
最新版本: **3.4.10**


<!--
Expand Down
5 changes: 3 additions & 2 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Texter
prefix: Texter
main: tokyo\pmmp\Texter\Core
version: 3.4.9
version: 3.4.10
api: 3.10.0 # pmmp/PocketMine-MP
mcpe-protocol:
- 388 # 1.13.x
- 389 # 1.14.x
- 390 # 1.14.60
- 407 # 1.16.0
- 407 # 1.16.x
- 408 # 1.16.20
softdepend:
- FormAPI # jojoe77777/FormAPI
virions:
Expand Down
2 changes: 1 addition & 1 deletion src/tokyo/pmmp/Texter/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private function registerCommands(): self {
if ($canUse = ConfigData::make()->canUseCommands()) {
$map = $this->getServer()->getCommandMap();
$commands = [
new TxtCommand
new TxtCommand($this),
];
$map->registerAll($this->getName(), $commands);
$message = Lang::fromConsole()->translateString("on.load.commands.on");
Expand Down
5 changes: 3 additions & 2 deletions src/tokyo/pmmp/Texter/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
use pocketmine\network\mcpe\protocol\AvailableCommandsPacket;
use pocketmine\network\mcpe\protocol\ProtocolInfo;
use pocketmine\Player;
use tokyo\pmmp\Texter\command\TxtCommand;
use tokyo\pmmp\Texter\i18n\Lang;
use tokyo\pmmp\Texter\task\SendTextsTask;
use tokyo\pmmp\Texter\text\Text;
Expand Down Expand Up @@ -64,9 +65,9 @@ public function onSendPacket(DataPacketSendEvent $ev): void {
$pk = $ev->getPacket();
if ($pk->pid() === ProtocolInfo::AVAILABLE_COMMANDS_PACKET) {
/** @var AvailableCommandsPacket $pk */
if (isset($pk->commandData["txt"])) {
if (isset($pk->commandData[TxtCommand::NAME])) {
$p = $ev->getPlayer();
$txt = $pk->commandData["txt"];
$txt = $pk->commandData[TxtCommand::NAME];
$txt->commandDescription = Lang::fromLocale($p->getLocale())->translateString("command.txt.description");
}
}
Expand Down
21 changes: 10 additions & 11 deletions src/tokyo/pmmp/Texter/command/TxtCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@

namespace tokyo\pmmp\Texter\command;

use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use pocketmine\command\PluginIdentifiableCommand;
use pocketmine\command\PluginCommand;
use pocketmine\Player;
use pocketmine\plugin\Plugin;
use pocketmine\utils\TextFormat;
use tokyo\pmmp\Texter\command\sub\TxtAdd;
use tokyo\pmmp\Texter\command\sub\TxtEdit;
Expand All @@ -46,15 +44,19 @@
* Class TxtCommand
* @package tokyo\pmmp\Texter\command
*/
class TxtCommand extends Command implements PluginIdentifiableCommand {
class TxtCommand extends PluginCommand {

public function __construct() {
$permission = ConfigData::make()->canUseOnlyOp() ? "texter.command.*" : "texter.command.txt";
$this->setPermission($permission);
public const NAME = "txt";

public function __construct(Core $plugin) {
$cl = Lang::fromConsole();
$permission = ConfigData::make()->canUseOnlyOp() ? "texter.command.*" : "texter.command.txt";
$description = $cl->translateString("command.txt.description");
$usage = $cl->translateString("command.txt.usage");
parent::__construct("txt", $description, $usage);
$this->setPermission($permission);
$this->setDescription($description);
$this->setUsage($usage);
parent::__construct(self::NAME, $plugin);
}

public function execute(CommandSender $sender, string $commandLabel, array $args) {
Expand Down Expand Up @@ -113,7 +115,4 @@ public function execute(CommandSender $sender, string $commandLabel, array $args
return true;
}

public function getPlugin(): Plugin {
return Core::get();
}
}

0 comments on commit fb6c505

Please sign in to comment.