Skip to content

Commit

Permalink
Merge pull request #489 from THEXN/master
Browse files Browse the repository at this point in the history
更新:i18n完成到Chameleon
  • Loading branch information
THEXN authored Sep 30, 2024
2 parents 19ab058 + 44e4f30 commit 989ff7b
Show file tree
Hide file tree
Showing 45 changed files with 809 additions and 82 deletions.
4 changes: 2 additions & 2 deletions src/AutoBroadcast/AutoBroadcast.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class AutoBroadcast : TerrariaPlugin
public override string Name => "AutoBroadcast";
public override string Author => "Scavenger";
public override string Description => "自动广播插件";
public override Version Version => new Version(1, 0, 4);
public override Version Version => new Version(1, 0, 5);
public string ConfigPath => Path.Combine(TShock.SavePath, "AutoBroadcastConfig.json");
public ABConfig Config = new ABConfig();
public DateTime LastCheck = DateTime.UtcNow;
Expand Down Expand Up @@ -40,7 +40,7 @@ public void OnInitialize(EventArgs args)
this.autobc();
TShockAPI.Hooks.GeneralHooks.ReloadEvent += (_) =>
{
TSPlayer.Server.SendSuccessMessage(GetString("自定广播配置已重读!"));
TSPlayer.Server.SendSuccessMessage(GetString("自定义广播配置已重读!"));
this.autobc();
};
}
Expand Down
4 changes: 3 additions & 1 deletion src/AutoBroadcast/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# AutoBroadcast 自动广播

- 作者: Scavenger,Zaicon,GK 小改良,肝帝熙恩更新至1449
- 出处:
- 出处: [github](https://github.com/Scavenger3/AutoBroadcast)
- 定时在服务器中广播,或执行命令。

## 更新日志

```
v1.0.5
i18n 和 README_EN.md
v1.0.4
i18n预定
```
Expand Down
63 changes: 63 additions & 0 deletions src/AutoBroadcast/README_EN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# AutoBroadcast

- Authors: Scavenger,Zaicon,GK 小改良,肝帝熙恩更新至1449
- Source: [github](https://github.com/Scavenger3/AutoBroadcast)
- Schedule broadcasts in the server or execute commands.


## Commands
```
None
```

## Config
> Configuration file location:tshock/AutoBroadcast.json
```json
{
"广播列表": [
{
"广播名称": "实例广播",
"启用": false,
"广播消息": [
"这是一条广播",
"每五分钟执行一次",
"可以执行命令",
"/time noon"
],
"RGB颜色": [255.0, 0.0, 0.0],
"时间间隔": 300,
"延迟执行": 60,
"广播组": [],
"触发词语": [], //可以设置聊天消息关键词触发此广播
"触发整个组": false //开启后将会对'广播组'内所有玩家执行此广播
}
]
}

// You can refer to this:
{
"Broadcasts": [
{
"Name": "Example Broadcast",
"Enabled": false,
"Messages": [
"This is an example broadcast",
"It will broadcast every 5 minutes",
"Broadcasts can also execute commands",
"/time noon"
],
"ColorRGB": [255.0, 0.0, 0.0],
"Interval": 300,
"StartDelay": 60,
"Groups"": [],
"TriggerWords": [], // You can set chat message keywords to trigger this broadcast.
"TriggerToWholeGroup": false // When enabled, this broadcast will be executed for all players in the 'broadcast group'
}
]
}
```

## FeedBack
- Github Issue -> TShockPlugin Repo: https://github.com/UnrealMultiple/TShockPlugin
- TShock QQ Group: 816771079
- China Terraria Forum: trhub.cn, bbstr.net, tr.monika.love
24 changes: 24 additions & 0 deletions src/AutoBroadcast/i18n/en-US.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
msgid ""
msgstr ""
"Project-Id-Version: AutoBroadcast\n"
"POT-Creation-Date: 2024-09-28 12:11:56+0000\n"
"PO-Revision-Date: 2024-09-28 23:49+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.5\n"

#: ../../AutoBroadcast.cs:57
msgid ""
"[AutoBroadcast]配置读取发生错误!\n"
"{0}"
msgstr ""
"[AutoBroadcast] Configuration read error!\n"
"{0}"

#: ../../AutoBroadcast.cs:43
msgid "自定义广播配置已重读!"
msgstr "AutoBroadcast configuration has been reloaded!"
2 changes: 1 addition & 1 deletion src/AutoBroadcast/i18n/template.pot
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ msgid ""
msgstr ""

#: ../../AutoBroadcast.cs:43
msgid "自定广播配置已重读!"
msgid "自定义广播配置已重读!"
msgstr ""

2 changes: 1 addition & 1 deletion src/AutoPluginManager/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- Source: Here
- Use the command to automatically update the server’s plugins (only from this repository).

## 指令
## Commands

| Command | Permission | Details |
|-------------------------| :-----------------: |:------------------------------------------------------------------------------------------------------------------------------------:|
Expand Down
8 changes: 4 additions & 4 deletions src/BanNpc/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Plugin : TerrariaPlugin

public override string Name => "禁止怪物";

public override Version Version => new(1, 0, 0, 2);
public override Version Version => new(1, 0, 0, 3);

private static Config Config { get; set; } = new();

Expand Down Expand Up @@ -131,7 +131,7 @@ private void BanCommand(CommandArgs args)
}
default:
{
args.Player.SendErrorMessage(GetString("语法错误: /bm <add/del> [name or ID]"));
args.Player.SendErrorMessage(GetString("语法错误: /bm <add/del> [名称 或 ID]"));
break;
}
}
Expand All @@ -140,8 +140,8 @@ private void BanCommand(CommandArgs args)
{
args.Player.SendInfoMessage("/bm");
args.Player.SendInfoMessage("/bm list");
args.Player.SendInfoMessage(GetString("/bm add [name or ID]"));
args.Player.SendInfoMessage(GetString("/bm del [name or ID]"));
args.Player.SendInfoMessage(GetString("/bm add [名称 或 ID]"));
args.Player.SendInfoMessage(GetString("/bm del [名称 或 ID]"));
return;
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/BanNpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
## 更新日志

```
v1.0.0.3
i18n和README_EN.md
v1.0.0.2
i18n预备
v1.0.0.1
Expand Down
24 changes: 24 additions & 0 deletions src/BanNpc/README_EN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# BanNpc

- Authors: GK
- Source: GK

## Commands

| Command | Permission | Details |
| ------------ | :--------: | :--------------: |
| /bm add [ID] | bannpc.use | Add NPC to block list |
| /bm del [ID] | bannpc.use | Remove NPC from Block List |
| /bm list | bannpc.use | View Block List |

## Config
> Configuration file location:tshock/禁止怪物表.json
```json
{
"阻止怪物生成表": [] //Block List
}
```
## FeedBack
- Github Issue -> TShockPlugin Repo: https://github.com/UnrealMultiple/TShockPlugin
- TShock QQ Group: 816771079
- China Terraria Forum: trhub.cn, bbstr.net, tr.monika.love
64 changes: 64 additions & 0 deletions src/BanNpc/i18n/en-US.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
msgid ""
msgstr ""
"Project-Id-Version: BanNpc\n"
"POT-Creation-Date: 2024-09-28 12:12:00+0000\n"
"PO-Revision-Date: 2024-09-29 11:50+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.5\n"

#: ../../Plugin.cs:143
msgid "/bm add [名称 或 ID]"
msgstr "/bm add [name or ID]"

#: ../../Plugin.cs:144
msgid "/bm del [名称 或 ID]"
msgstr "/bm del [name or ID]"

#: ../../Plugin.cs:124
msgid "NPC ID {0} 不在筛选列表中!"
msgstr "NPC ID {0} is not in the filter list!"

#: ../../Plugin.cs:110
msgid "NPC ID {0} 已在阻止列表中!"
msgstr "NPC ID {0} is already in the block list!"

#: ../../Plugin.cs:129
msgid "已成功从阻止列表中删除NPC ID: {0}!"
msgstr "NPC ID: {0} has been successfully removed from the block list!"

#: ../../Plugin.cs:115
msgid "已成功将NPC ID添加到阻止列表: {0}!"
msgstr "NPC ID: {0} has been successfully added to the block list!"

#: ../../Plugin.cs:77
msgid "当前阻止表为空."
msgstr "The current block list is empty."

#: ../../Plugin.cs:92
msgid "无效NPC: {0} !"
msgstr "Invalid NPC: {0}!"

#: ../../Plugin.cs:37
msgid ""
"未找到禁止怪物表,已为您创建!\n"
"修改配置后输入/bm reload可以应用新的配置。"
msgstr ""
"he block list for monsters was not found and has been created for you!\n"
"After modifying the configuration, enter /bm reload to apply the new settings."

#: ../../Plugin.cs:43
msgid "禁止怪物表读取错误:"
msgstr "Error reading the monster block list:"

#: ../../Plugin.cs:134
msgid "语法错误: /bm <add/del> [名称 或 ID]"
msgstr "Syntax error: /bm <add/del> [name or ID]"

#: ../../Plugin.cs:81
msgid "阻止怪物表: "
msgstr "Monster Block List: "
6 changes: 3 additions & 3 deletions src/BanNpc/i18n/template.pot
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ msgstr ""
"X-Generator: GetText.NET Extractor\n"

#: ../../Plugin.cs:143
msgid "/bm add [name or ID]"
msgid "/bm add [名称 或 ID]"
msgstr ""

#: ../../Plugin.cs:144
msgid "/bm del [name or ID]"
msgid "/bm del [名称 或 ID]"
msgstr ""

#: ../../Plugin.cs:124
Expand Down Expand Up @@ -53,7 +53,7 @@ msgid "禁止怪物表读取错误:"
msgstr ""

#: ../../Plugin.cs:134
msgid "语法错误: /bm <add/del> [name or ID]"
msgid "语法错误: /bm <add/del> [名称 或 ID]"
msgstr ""

#: ../../Plugin.cs:81
Expand Down
2 changes: 1 addition & 1 deletion src/BridgeBuilder/BridgeBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace BridgeBuilder;
public class BridgeBuilder : TerrariaPlugin
{
public override string Name => "BridgeBuilder";
public override Version Version => new Version(1, 0, 9);
public override Version Version => new Version(1, 1, 0);
public override string Author => "Soofa,肝帝熙恩汉化1449";
public override string Description => "铺桥!";
public static Configuration Config;
Expand Down
5 changes: 4 additions & 1 deletion src/BridgeBuilder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
## 更新日志

```
1.1.0
i18n和README_EN.md
1.0.9
i18n预备
1.0.8
Expand All @@ -33,7 +35,7 @@ i18n预备
> 配置文件位置:tshock/铺桥配置.json
```json
{
"允许快速铺路方块id": [//注意!是图格id,不是物品id,可以在wiki上搜到图格id
"允许快速铺路方块id": [
19,
380,
427,
Expand All @@ -43,6 +45,7 @@ i18n预备
438,
439
],
"允许快速铺路墙壁id": [],
"一次性最长铺多少格": 256
}
```
Expand Down
39 changes: 39 additions & 0 deletions src/BridgeBuilder/README_EN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# BridgeBuilder

- Authors: Soofa,肝帝熙恩
- Source: [github](https://github.com/Soof4/BridgeBuilder)
- Quickly pave in the parallel direction facing the player, stopping when encountering a block, and stopping when a wall encounters another wall.
- Customizable bridge blocks are available, with default configurations including: platforms, planter boxes, and team blocks.
- It can now be placed vertically, and walls are allowed.
- Did you know: `<>` indicates required fields, while `[]` indicates optional fields.


## Commands

| Command | Permission | Details |
| -------------- | :-----------------: | :------: |
| /bridge [up/down] or /桥来 [up/down]| bridgebuilder.bridge | Quick bridge placement command |

## Config
> Configuration file location:tshock/铺桥配置.json
```json
{
"允许快速铺路方块id": [ // Allow quick placement of tile ID
19,
380,
427,
435,
436,
437,
438,
439
],
"允许快速铺路墙壁id": [], // Allow quick placement of wall ID
"一次性最长铺多少格": 256 // The maximum number of tiles that can be placed at once
}
```

## FeedBack
- Github Issue -> TShockPlugin Repo: https://github.com/UnrealMultiple/TShockPlugin
- TShock QQ Group: 816771079
- China Terraria Forum: trhub.cn, bbstr.net, tr.monika.love
Loading

0 comments on commit 989ff7b

Please sign in to comment.