Skip to content

Commit

Permalink
trans: translate all
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 committed Jul 8, 2023
1 parent 8b329e9 commit d4e0e45
Show file tree
Hide file tree
Showing 11 changed files with 217 additions and 80 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.java @SlimefunGuguProject/code-reviewers
@ybw0014
33 changes: 0 additions & 33 deletions .github/ISSUE_TEMPLATE/bug-report.md

This file was deleted.

138 changes: 138 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
name: Bug汇报
description: 反馈本插件的Bug或问题
labels: ["bug"]
assignees:
- ybw0014
body:
- type: markdown
attributes:
value: |
## 欢迎来到 SlimefunGuguProject 的问题追踪器
你正在反馈 DyedBackpacks 汉化版出现的 Bug。
任何意见,建议请前往[QQ群](https://ybw0014.net/go/sf-qgroup)进行反馈。
建议先阅读[这篇文章](https://slimefun-wiki.guizhanss.cn/How-to-report-bugs)了解如何正确地汇报Bug。
<strong><i>你必须填写标注为星号(*)的表单项</i></strong>
- type: checkboxes
id: checklist
attributes:
label: 检查项目
description: 在汇报之前,你需要确认
options:
- label: 你使用的是从构建站下载的版本 (https://builds.guizhanss.net)
required: true
- label: 你已经检验过下载的文件的校验和,确认已完整下载文件
required: false
- label: 你没有对下载的文件内容进行任何更改
required: true
- label: 你已经寻找过[已知问题列表](https://github.com/SlimefunGuguProject/DyedBackpacks/issues),且没有找到相同的问题
required: true

- type: textarea
id: description
attributes:
label: 问题描述
description: |
详细描述你要汇报的问题
提供详细的信息能让我们更快地处理问题
placeholder: 只说"不能用"没法让开发者定位问题。
validations:
required: true

- type: textarea
id: reproduction
attributes:
label: 复现步骤
description: |
请详细描述如何才能复现该问题
如果有视频,请在此提供视频链接
placeholder: |
1. xxx
2. xxx
validations:
required: true

- type: textarea
id: expected-behavior
attributes:
label: 预期行为
description: |
你觉得应该发生什么
有时候,问题的原因是你误解了某个功能。
validations:
required: true

- type: input
id: server-log
attributes:
label: 服务器日志
description: |
请查看服务器日志中是否包含任何报错,如果有请上传至 [https://paste.guizhanss.net/](https://paste.guizhanss.net/) 并在此填入链接。
**不要直接在这里粘贴日志**
placeholder: https://paste.guizhanss.net/...
validations:
required: false

- type: input
id: error-report
attributes:
label: 错误报告
description: |
如果服务器日志中提到了`/plugins/Slimefun/error-reports`中的文件(即错误报告)
请上传至 [https://paste.guizhanss.net/](https://paste.guizhanss.net/) 并在此填入链接。
**不要直接在这里粘贴错误报告**
placeholder: https://paste.guizhanss.net/...
validations:
required: false

- type: dropdown
id: server-software
attributes:
label: 服务端软件
description: 请选择你服务端所使用的软件
options:
- Spigot
- Paper
- Purpur
- Airplane
- 其他 (请在问题描述里写明)
validations:
required: true

- type: dropdown
id: minecraft-version
attributes:
label: Minecraft 版本
description: 请选择你的 Minecraft 版本
options:
- 1.20.x
- 1.19.x
- 1.18.x
- 1.17.x
- 1.16.x
- 本插件不支持旧版本
validations:
required: true

- type: textarea
id: slimefun-version
attributes:
label: Slimefun版本
description: |
请填写Slimefun版本
(例如 v4.9-canary-08120db)
如果你有管理员权限,建议运行`/sf versions`指令,截图并在此上传指令输出的**所有内容**。
validations:
required: true

- type: input
id: version-plugin
attributes:
label: 插件版本
description: |
请填写插件版本
只需填写Build后面的数字版本即可
(`Build 7 zh-CN(ybw0014) (git 9ef7fee)`只需填写`7`即可)
validations:
required: true
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 没有 Github 账号? 不会使用 Github?
url: https://ybw0014.net/go/sf-qgroup
about: 点击右侧按钮加入QQ群进行反馈
10 changes: 10 additions & 0 deletions .github/pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "1"
rules:
- base: master
upstream: TheBusyBiscuit:master
mergeMethod: merge
assignees:
- ybw0014
conflictReviewers:
- ybw0014

25 changes: 13 additions & 12 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@ name: Java CI
on:
push:
branches:
- master
- master
- dev
pull_request:
branches:
- master
- master

jobs:
build:

if: startsWith(github.event.head_commit.message, '[CI skip]') == false
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- name: Set up JDK 1.8
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '8'
- name: Build with Maven
run: mvn package --file pom.xml
- uses: actions/[email protected]
- name: Set up JDK 16
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 16
cache: 'maven'
- name: Build with Maven
run: mvn package --file pom.xml
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
# DyedBackpacks
A brand new Slimefun addon adding the ability to dye your beloved backpacks!
- Dye all your backpacks by using the wools with the wanted color.
- Supports all 16 Minecraft default colors.
- Extensive configuration options! Disable/Enable backpack coloring per level.
# DyedBackpacks 染色背包
一个 Slimefun 附属,允许你为背包加上颜色!
- 使用各种颜色的羊毛来为背包染色。
- 支持所有16种 Minecraft 颜色。
- 丰富的配置项,可支持启用/禁用每一级的染色背包。

## Download DyedBackpacks
You can download DyedBackpacks right here: [Development Builds](https://thebusybiscuit.github.io/builds/TheBusyBiscuit/DyedBackpacks/master/)
## 下载

点击下方图片下载:

<p align="center">
<a href="https://thebusybiscuit.github.io/builds/TheBusyBiscuit/DyedBackpacks/master/">
<a href="https://builds.guizhanss.com/SlimefunGuguProject/DyedBackpacks/master">
<img src="https://thebusybiscuit.github.io/builds/TheBusyBiscuit/DyedBackpacks/master/badge.svg" alt="Build Server"/>
</a>
</p>

## Discord
You can find Slimefun's community on Discord!
Click the badge down below to join the server for suggestions/questions or other discussions about this plugin.

你可以找到 Slimefun 的社区 Discord 服务器!
点击下方的图片加入服务器,提出意见、问题或者讨论该插件。

<p align="center">
<a href="https://discord.gg/slimefun">
<img src="https://discordapp.com/api/guilds/565557184348422174/widget.png?style=banner3" alt="Discord Invite"/>
<img src="https://discordapp.com/api/guilds/565557184348422174/widget.png?style=banner3" alt="Discord 邀请"/>
</a>
</p>

## Open Source
This Project is open-source and licensed under the [MIT License](https://github.com/TheBusyBiscuit/DyedBackpacks/blob/master/LICENSE)
## 开源
该项目以 [MIT 协议](https://github.com/TheBusyBiscuit/DyedBackpacks/blob/master/LICENSE) 开源。
9 changes: 8 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>3.5.0</version>

<configuration>

Expand Down Expand Up @@ -124,5 +124,12 @@
<version>2.2.1</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>net.guizhanss</groupId>
<artifactId>GuizhanLibPlugin</artifactId>
<version>1.2.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,23 @@
*/
public enum BackpackColor {

WHITE(ChatColor.WHITE + "White", Material.WHITE_WOOL, "ebdf8d53bdb932c223c627bbb8c1e0c5e351a616cd8056929c66e6dce44433db"),
ORANGE(ChatColor.GOLD + "Orange", Material.ORANGE_WOOL, "a37a35522f67b2af92345592846b702b9afb9d7c8dbad5ea150673c9e44de3"),
MAGENTA(ChatColor.LIGHT_PURPLE + "Magenta", Material.MAGENTA_WOOL, "36575fcccadae87c0842f53de5e0ffa75851696866d81e1b72828348db5256"),
LIGHT_BLUE(ChatColor.AQUA + "Light Blue", Material.LIGHT_BLUE_WOOL, "a3c153c391c34e2d328a60839e683a9f82ad3048299d8bc6a39e6f915cc5a"),
YELLOW(ChatColor.YELLOW + "Yellow", Material.YELLOW_WOOL, "a254aacbf623175ff98df7ae366e0b89e91713441752f3cdf965f038b174b5"),
LIME(ChatColor.GREEN + "Lime", Material.LIME_WOOL, "a9909a9779b946b9787442fa483af4de4b2f19fd40dc2370f7a9b8f521f21ddc"),
PINK(ChatColor.LIGHT_PURPLE + "Pink", Material.PINK_WOOL, "bddafdcb1a8df426229d7879b1e4a336fc9ab3bdc146bb4ed3be4bbf7b5b835"),
DARK_GRAY(ChatColor.DARK_GRAY + "Dark Gray", Material.GRAY_WOOL, "6536ad978e1ce5050f43b7a6b3859eb49406b4f1043802a711cdc80c090c35d"),
LIGHT_GRAY(ChatColor.GRAY + "Light Gray", Material.LIGHT_GRAY_WOOL, "5a5fc7635296ca183fd30b0fb5f4c18cfc216768f0fbebb865e0211ab43b7b"),
CYAN(ChatColor.DARK_AQUA + "Cyan", Material.CYAN_WOOL, "df70fab3246fe027ce0bba885a73c6e82d8ff8f358231e8461f956560cfa58f"),
PURPLE(ChatColor.DARK_PURPLE + "Purple", Material.PURPLE_WOOL, "5eb65bbe744945841e9234a33b5ce5cc236f6a2fc93a1a3ae42df77c9084df1e"),
BLUE(ChatColor.DARK_BLUE + "Blue", Material.BLUE_WOOL, "8224b2c7391eb5bfcb278431d5c827cb26349526c7bc535b1e95f6df9f3fdf3"),
BROWN(ChatColor.GOLD + "Brown", Material.BROWN_WOOL, "efb6a3d7dba97bb6e7f79a15627aec6369791233f833fa749ef21bed79e59e98"),
GREEN(ChatColor.DARK_GREEN + "Green", Material.GREEN_WOOL, "28a127f1cfd79986e7bd95d92de4f4f68040e4f899f81b1f8f3ca15b64f50f3"),
RED(ChatColor.DARK_RED + "Red", Material.RED_WOOL, "85e4f9da68c81fa481eecdca48a138cecde2cddffeeae84ab1afd24a363e028"),
BLACK(ChatColor.DARK_GRAY + "Black", Material.BLACK_WOOL, "a9ab1fdcbe878d1e55bdd43cebc5e43836a6da69541f4a233fe88f1305668");
WHITE(ChatColor.WHITE + "白色", Material.WHITE_WOOL, "ebdf8d53bdb932c223c627bbb8c1e0c5e351a616cd8056929c66e6dce44433db"),
ORANGE(ChatColor.GOLD + "橙色", Material.ORANGE_WOOL, "a37a35522f67b2af92345592846b702b9afb9d7c8dbad5ea150673c9e44de3"),
MAGENTA(ChatColor.LIGHT_PURPLE + "品红色", Material.MAGENTA_WOOL, "36575fcccadae87c0842f53de5e0ffa75851696866d81e1b72828348db5256"),
LIGHT_BLUE(ChatColor.AQUA + "淡蓝色", Material.LIGHT_BLUE_WOOL, "a3c153c391c34e2d328a60839e683a9f82ad3048299d8bc6a39e6f915cc5a"),
YELLOW(ChatColor.YELLOW + "黄色", Material.YELLOW_WOOL, "a254aacbf623175ff98df7ae366e0b89e91713441752f3cdf965f038b174b5"),
LIME(ChatColor.GREEN + "绿色", Material.LIME_WOOL, "a9909a9779b946b9787442fa483af4de4b2f19fd40dc2370f7a9b8f521f21ddc"),
PINK(ChatColor.LIGHT_PURPLE + "粉红色", Material.PINK_WOOL, "bddafdcb1a8df426229d7879b1e4a336fc9ab3bdc146bb4ed3be4bbf7b5b835"),
DARK_GRAY(ChatColor.DARK_GRAY + "深灰色", Material.GRAY_WOOL, "6536ad978e1ce5050f43b7a6b3859eb49406b4f1043802a711cdc80c090c35d"),
LIGHT_GRAY(ChatColor.GRAY + "浅灰色", Material.LIGHT_GRAY_WOOL, "5a5fc7635296ca183fd30b0fb5f4c18cfc216768f0fbebb865e0211ab43b7b"),
CYAN(ChatColor.DARK_AQUA + "青色", Material.CYAN_WOOL, "df70fab3246fe027ce0bba885a73c6e82d8ff8f358231e8461f956560cfa58f"),
PURPLE(ChatColor.DARK_PURPLE + "紫色", Material.PURPLE_WOOL, "5eb65bbe744945841e9234a33b5ce5cc236f6a2fc93a1a3ae42df77c9084df1e"),
BLUE(ChatColor.DARK_BLUE + "蓝色", Material.BLUE_WOOL, "8224b2c7391eb5bfcb278431d5c827cb26349526c7bc535b1e95f6df9f3fdf3"),
BROWN(ChatColor.GOLD + "棕色", Material.BROWN_WOOL, "efb6a3d7dba97bb6e7f79a15627aec6369791233f833fa749ef21bed79e59e98"),
GREEN(ChatColor.DARK_GREEN + "绿色", Material.GREEN_WOOL, "28a127f1cfd79986e7bd95d92de4f4f68040e4f899f81b1f8f3ca15b64f50f3"),
RED(ChatColor.DARK_RED + "红色", Material.RED_WOOL, "85e4f9da68c81fa481eecdca48a138cecde2cddffeeae84ab1afd24a363e028"),
BLACK(ChatColor.DARK_GRAY + "黑色", Material.BLACK_WOOL, "a9ab1fdcbe878d1e55bdd43cebc5e43836a6da69541f4a233fe88f1305668");


private final String name;
private final Material wool;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import javax.annotation.ParametersAreNonnullByDefault;

import net.guizhanss.guizhanlibplugin.updater.GuizhanUpdater;
import org.bstats.bukkit.Metrics;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;
Expand Down Expand Up @@ -33,12 +34,13 @@ public void onEnable() {
Config cfg = new Config(this);
new Metrics(this, 5778);

if (cfg.getBoolean("options.auto-update") && getDescription().getVersion().startsWith("DEV - ")) {
new GitHubBuildsUpdater(this, getFile(), "TheBusyBiscuit/DyedBackpacks/master").start();
if (cfg.getBoolean("options.auto-update") && getDescription().getVersion().startsWith("Build")) {
GuizhanUpdater.start(this, getFile(), "SlimefunGuguProject", "DyedBackpacks", "master");
}

Research research = new Research(new NamespacedKey(this, "dyed_backpacks"), 17200, "Dyed Backpacks", 24);
ItemGroup itemGroup = new ItemGroup(new NamespacedKey(this, "dyed_backpacks"), new CustomItemStack(PlayerHead.getItemStack(PlayerSkin.fromHashCode(BackpackColor.RED.getTexture())), "&4Dyed Backpacks"), 2);
Research research = new Research(new NamespacedKey(this, "dyed_backpacks"), 17200, "染色背包", 24);
ItemGroup itemGroup = new ItemGroup(new NamespacedKey(this, "dyed_backpacks"), new CustomItemStack(PlayerHead.getItemStack(PlayerSkin.fromHashCode(BackpackColor.RED.getTexture())),
"&4染色背包"), 2);

if (cfg.getBoolean("backpacks.small")) {
createBackpacks(itemGroup, research, SlimefunItems.BACKPACK_SMALL, 9);
Expand Down Expand Up @@ -74,7 +76,7 @@ private void createBackpacks(ItemGroup itemGroup, Research research, SlimefunIte

@Override
public String getBugTrackerURL() {
return "https://github.com/TheBusyBiscuit/DyedBackpacks/issues";
return "https://github.com/SlimefunGuguProject/DyedBackpacks/issues";
}

@Override
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ website: https://github.com/TheBusyBiscuit/DyedBackpacks

main: io.github.thebusybiscuit.dyedbackpacks.DyedBackpacks
depend: [Slimefun]
softdepend:
- GuizhanLibPlugin

api-version: 1.14

0 comments on commit d4e0e45

Please sign in to comment.