From dcb3417f802591e088a0141ff5a10727faac552a Mon Sep 17 00:00:00 2001 From: Aruvelut <2502474438@qq.com> Date: Tue, 21 May 2024 22:10:24 +0800 Subject: [PATCH 01/15] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20issues=20=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/ISSUES.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/ISSUES.md diff --git a/.github/ISSUE_TEMPLATE/ISSUES.md b/.github/ISSUE_TEMPLATE/ISSUES.md new file mode 100644 index 0000000..7b1b6a3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/ISSUES.md @@ -0,0 +1,8 @@ +### What's the problem? +Input your problem here. +### Is plugin up-to-date? +If yes say yes, or enter version number here. +###Screenshot or/and logs +Put screenshots or logs here. +### How to reproduce +Method to reproduce, if u don't know then leave blank is ok. \ No newline at end of file From b18c02fc448d38466d3acb23d26c97008b75862a Mon Sep 17 00:00:00 2001 From: Aruvelut <2502474438@qq.com> Date: Tue, 21 May 2024 22:12:49 +0800 Subject: [PATCH 02/15] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20FEATURE=20=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/FEATURE.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/FEATURE.md diff --git a/.github/ISSUE_TEMPLATE/FEATURE.md b/.github/ISSUE_TEMPLATE/FEATURE.md new file mode 100644 index 0000000..bf7aefa --- /dev/null +++ b/.github/ISSUE_TEMPLATE/FEATURE.md @@ -0,0 +1,4 @@ +### Feature name +Enter the feature names that u want us to add here. +### About to work like +Tell us how this feature will about to work like so that we will not make it in the wrong place. \ No newline at end of file From e10b3caea66758e79b115280338cfc8ef7133a76 Mon Sep 17 00:00:00 2001 From: Aruvelut <2502474438@qq.com> Date: Tue, 21 May 2024 22:13:03 +0800 Subject: [PATCH 03/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20ISSUES.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/ISSUES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/ISSUES.md b/.github/ISSUE_TEMPLATE/ISSUES.md index 7b1b6a3..3d4dbe1 100644 --- a/.github/ISSUE_TEMPLATE/ISSUES.md +++ b/.github/ISSUE_TEMPLATE/ISSUES.md @@ -2,7 +2,7 @@ Input your problem here. ### Is plugin up-to-date? If yes say yes, or enter version number here. -###Screenshot or/and logs +### Screenshot or/and logs Put screenshots or logs here. ### How to reproduce Method to reproduce, if u don't know then leave blank is ok. \ No newline at end of file From 6fdab8795fba562e633666c1d32ef5e8a792899e Mon Sep 17 00:00:00 2001 From: Aruvelut <2502474438@qq.com> Date: Tue, 21 May 2024 22:22:28 +0800 Subject: [PATCH 04/15] Update issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 33 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 20 ++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..77e35d3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,33 @@ +--- +name: Bug report +about: Create a report to help us improve +title: Bug name here +labels: bug +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Server info (please complete the following information):** + - OS: [e.g. Windows] + - Server Type: [e.g. banner, cardboard, mohist, paper] + - Server Version: [e.g. 1.20.1] + - Plugin Version: [e.g. 1.0.0] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..0c44ec5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: Feature name here +labels: Feature +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. From 98f5e86006b183945181325a3235a39994d7659c Mon Sep 17 00:00:00 2001 From: Aruvelut <2502474438@qq.com> Date: Wed, 22 May 2024 21:50:20 +0800 Subject: [PATCH 05/15] Create main.yml --- .github/workflows/main.yml | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f2f8d41 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,47 @@ +name: 发布到 Github #你的 github.com 上的 GitHub Action 的名称 + +on: [ pull_request, workflow_dispatch ] #何时执行你的 GitHub Action,'pull_request' -> 在每次合并(拉取)请求,'workflow_dispatch' -> 允许通过 github.com 手动执行 + +env: #环境变量,后续可以使用 ${{ env.MINECRAFT_VERSION }} 引用,可以用作重复的信息并允许后续模组新的更新中快速更改 + VERSION: 1.2-pre3 + JAVA_VERSION: 17 + GITHUB_TOKEN: 114514 + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: 检查环境变量 + run: env + + - name: 签出存储库 + uses: actions/checkout@v3 + with: + submodules: true + + - name: 设置 Java + uses: actions/setup-java@v2 + with: + distribution: "temurin" + java-version: 17 + + - name: 使 Gradle Wrapper 可执行 + if: ${{ runner.os != 'Windows' }} + run: chmod +x ./gradlew + + - name: 构建 + run: ./gradlew clean build + + - name: 发布到 Github + uses: Kir-Antipov/mc-publish@v3.3 #指定 MC-Publish Github Action 版本 3.2 + with: + github-tag: "v${{env.VERSION}}" + github-token: "${{env.GITHUB_TOKEN}}" + + name: "${{env.VERSION}}" + version: "${{env.VERSION}}" + github-prerelease: true + changelog-file: CHANGELOG.md #指定新更新的内容的文件(路径从项目根目录开始) From fedfc4cd77d2638772ba0438797dcdeb4a82c41f Mon Sep 17 00:00:00 2001 From: Aruvelut <2502474438@qq.com> Date: Wed, 22 May 2024 21:51:40 +0800 Subject: [PATCH 06/15] Delete .github/workflows directory --- .github/workflows/main.yml | 47 ----------------------------- .github/workflows/maven-publish.yml | 34 --------------------- 2 files changed, 81 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 .github/workflows/maven-publish.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index f2f8d41..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: 发布到 Github #你的 github.com 上的 GitHub Action 的名称 - -on: [ pull_request, workflow_dispatch ] #何时执行你的 GitHub Action,'pull_request' -> 在每次合并(拉取)请求,'workflow_dispatch' -> 允许通过 github.com 手动执行 - -env: #环境变量,后续可以使用 ${{ env.MINECRAFT_VERSION }} 引用,可以用作重复的信息并允许后续模组新的更新中快速更改 - VERSION: 1.2-pre3 - JAVA_VERSION: 17 - GITHUB_TOKEN: 114514 - -permissions: - contents: write - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: 检查环境变量 - run: env - - - name: 签出存储库 - uses: actions/checkout@v3 - with: - submodules: true - - - name: 设置 Java - uses: actions/setup-java@v2 - with: - distribution: "temurin" - java-version: 17 - - - name: 使 Gradle Wrapper 可执行 - if: ${{ runner.os != 'Windows' }} - run: chmod +x ./gradlew - - - name: 构建 - run: ./gradlew clean build - - - name: 发布到 Github - uses: Kir-Antipov/mc-publish@v3.3 #指定 MC-Publish Github Action 版本 3.2 - with: - github-tag: "v${{env.VERSION}}" - github-token: "${{env.GITHUB_TOKEN}}" - - name: "${{env.VERSION}}" - version: "${{env.VERSION}}" - github-prerelease: true - changelog-file: CHANGELOG.md #指定新更新的内容的文件(路径从项目根目录开始) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml deleted file mode 100644 index 1319502..0000000 --- a/.github/workflows/maven-publish.yml +++ /dev/null @@ -1,34 +0,0 @@ -# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created -# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path - -name: Maven Package - -on: - release: - types: [created] - -jobs: - build: - - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - java-version: '17' - distribution: 'temurin' - server-id: github # Value of the distributionManagement/repository/id field of the pom.xml - settings-path: ${{ github.workspace }} # location for the settings.xml file - - - name: Build with Maven - run: mvn -B package --file pom.xml - - - name: Publish to GitHub Packages Apache Maven - run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml - env: - GITHUB_TOKEN: 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 From 7a055e6591cb9025ba67469bb62bc27dffaf8eea Mon Sep 17 00:00:00 2001 From: kxkl2077 <110510729+kxkl2077@users.noreply.github.com> Date: Wed, 29 May 2024 22:00:08 +0800 Subject: [PATCH 07/15] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 没啥描述,就是更新了README.md --- README.md | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a2befca..6e0617c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,21 @@ -### IDK-plugin -For minecraft bukkit 1.20.1 -Feel free to use any code +# IDK插件 -If there has any bug, you can open an issues so that i can knew. -If you want to help me, that's better! You just need to open a PR! +### 他可以做什么 + +照着作者说,这是一个全能插件,什么功能都可能会添加 + +但是呢作者 是个学生所以这个插件更新速度可能会非常慢 + +也别指望这个插件能整出什么大活来 + +### 版本支持 + +1.20.1可以加载 + +其他版本未知,自己试着用吧 + +### 一些废话 + +如果遇到什么BUG,并且你有能力帮着写这个插件的话,作者很乐意你提交PR + +毕竟作者是个懒B,连README.MD都不更新(bushi) From d6eaa7fbc6ad50ab7312f4ce9bd60d559238a18d Mon Sep 17 00:00:00 2001 From: Aruvelut <2502474438@qq.com> Date: Wed, 29 May 2024 22:05:39 +0800 Subject: [PATCH 08/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 6e0617c..e9ebccc 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,19 @@ # IDK插件 -### 他可以做什么 - -照着作者说,这是一个全能插件,什么功能都可能会添加 - -但是呢作者 是个学生所以这个插件更新速度可能会非常慢 - -也别指望这个插件能整出什么大活来 - -### 版本支持 - -1.20.1可以加载 - -其他版本未知,自己试着用吧 - -### 一些废话 - -如果遇到什么BUG,并且你有能力帮着写这个插件的话,作者很乐意你提交PR - -毕竟作者是个懒B,连README.MD都不更新(bushi) +### 他可以做什么. + +这是一个全能插件(但是还没做多少),什么功能都可能会添加(只要开了issues就会尝试做出来). + +但是由于作者(@Aruvelut-1231)是个学生. +所以这个插件更新速度可能会非常慢. + +### 版本支持. + +只测试了1.20.1. + +其他版本未知,自己试着用吧. + +### 一些废话. + +如果遇到什么BUG或者功能建议,你可以开一个issue. +你有能力并愿意帮着写这个插件的话,作者很乐意你提交PR. From b2fa6c332917193fc579d77cc390dba3f3965622 Mon Sep 17 00:00:00 2001 From: Aruvelut <2502474438@qq.com> Date: Wed, 29 May 2024 22:06:02 +0800 Subject: [PATCH 09/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e9ebccc..1221f5c 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,19 @@ # IDK插件 -### 他可以做什么. +### 他可以做什么 这是一个全能插件(但是还没做多少),什么功能都可能会添加(只要开了issues就会尝试做出来). 但是由于作者(@Aruvelut-1231)是个学生. 所以这个插件更新速度可能会非常慢. -### 版本支持. +### 版本支持 -只测试了1.20.1. +只测试了1.20.1 其他版本未知,自己试着用吧. -### 一些废话. +### 一些废话 如果遇到什么BUG或者功能建议,你可以开一个issue. 你有能力并愿意帮着写这个插件的话,作者很乐意你提交PR. From bf492a2b87f5181dd93a77824693f963dc3cb351 Mon Sep 17 00:00:00 2001 From: Aruvelut <2502474438@qq.com> Date: Wed, 5 Jun 2024 16:51:55 +0800 Subject: [PATCH 10/15] Fix spell problem in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1221f5c..97d14e1 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ 这是一个全能插件(但是还没做多少),什么功能都可能会添加(只要开了issues就会尝试做出来). -但是由于作者(@Aruvelut-1231)是个学生. +但是由于作者(@Aruvelut-123)是个学生. 所以这个插件更新速度可能会非常慢. ### 版本支持 From 941934d71543e88442408ea995efd9a9ad20ba59 Mon Sep 17 00:00:00 2001 From: Aruvelut <2502474438@qq.com> Date: Wed, 5 Jun 2024 16:57:10 +0800 Subject: [PATCH 11/15] Github Actions Test --- .github/workflows/main.yml | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2d02893 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,39 @@ +name: 发布到 Github + +on: [ pull_request, workflow_dispatch ] + +env: #环境变量,后续可以使用 ${{ env.MINECRAFT_VERSION }} 引用 + MINECRAFT_VERSION: 1.20.1 + JAVA_VERSION: 17 + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: 检查环境变量 + run: env + + - name: 签出存储库 + uses: actions/checkout@v3 + with: + submodules: true + + - name: 设置 Java + uses: actions/setup-java@v2 + with: + distribution: "temurin" + java-version: 17 + + - name: 构建 + run: maven package + + - uses: Kir-Antipov/mc-publish@v3.3 + with: + # Only include this section if you wish to publish + # your assets on GitHub. + github-token: ${{ secrets.GITHUB_TOKEN }} From 318469725b50ab6b745f97df68910152b44e8e22 Mon Sep 17 00:00:00 2001 From: Aruvelut <2502474438@qq.com> Date: Wed, 5 Jun 2024 17:00:40 +0800 Subject: [PATCH 12/15] Update main.yml --- .github/workflows/main.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2d02893..9d39579 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,18 +22,19 @@ jobs: uses: actions/checkout@v3 with: submodules: true - - - name: 设置 Java - uses: actions/setup-java@v2 + + - uses: actions/checkout@v4 + - name: 设置Maven库和Java + uses: actions/setup-java@v4 with: - distribution: "temurin" - java-version: 17 + java-version: '17' + distribution: 'temurin' + server-id: ossrh + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD - name: 构建 - run: maven package - - - uses: Kir-Antipov/mc-publish@v3.3 - with: - # Only include this section if you wish to publish - # your assets on GitHub. - github-token: ${{ secrets.GITHUB_TOKEN }} + run: mvn --batch-mode deploy + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} From bf8bcca751fe7f8f6a1f0e06ad0cf99620d53600 Mon Sep 17 00:00:00 2001 From: Aruvelut <2502474438@qq.com> Date: Wed, 5 Jun 2024 17:02:29 +0800 Subject: [PATCH 13/15] Update main.yml --- .github/workflows/main.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9d39579..c412f56 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,7 +34,4 @@ jobs: server-password: MAVEN_PASSWORD - name: 构建 - run: mvn --batch-mode deploy - env: - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} + run: mvn --batch-mode package From b8460a1c30bd3f244e9a9f339d65aefcf1015b60 Mon Sep 17 00:00:00 2001 From: Aruvelut <2502474438@qq.com> Date: Wed, 5 Jun 2024 17:05:49 +0800 Subject: [PATCH 14/15] Update main.yml --- .github/workflows/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c412f56..9559f6d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,3 +35,18 @@ jobs: - name: 构建 run: mvn --batch-mode package + publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + - name: Publish package + run: mvn --batch-mode deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 6ec7947fbf0cb09d1be86f4d54450d1aa8c42924 Mon Sep 17 00:00:00 2001 From: Aruvelut <2502474438@qq.com> Date: Wed, 5 Jun 2024 17:50:50 +0800 Subject: [PATCH 15/15] Update main.yml --- .github/workflows/main.yml | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9559f6d..dded892 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,31 +10,6 @@ permissions: contents: write jobs: - build: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: 检查环境变量 - run: env - - - name: 签出存储库 - uses: actions/checkout@v3 - with: - submodules: true - - - uses: actions/checkout@v4 - - name: 设置Maven库和Java - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - server-id: ossrh - server-username: MAVEN_USERNAME - server-password: MAVEN_PASSWORD - - - name: 构建 - run: mvn --batch-mode package publish: runs-on: ubuntu-latest permissions: