From 28da5c694a0ebc6c09a2c91389d43c0034d83251 Mon Sep 17 00:00:00 2001 From: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com> Date: Wed, 23 Nov 2022 12:11:13 +0800 Subject: [PATCH 01/10] Create maven.yml --- .github/workflows/maven.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..afe4fe3 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,35 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Java CI with Maven + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml + + # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive + - name: Update dependency graph + uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 From 5a04889fe501f4b2705e6f636e3f052990afbdf2 Mon Sep 17 00:00:00 2001 From: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com> Date: Wed, 23 Nov 2022 12:13:15 +0800 Subject: [PATCH 02/10] Create modrinth-release.yml --- .github/workflows/modrinth-release.yml | 67 ++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .github/workflows/modrinth-release.yml diff --git a/.github/workflows/modrinth-release.yml b/.github/workflows/modrinth-release.yml new file mode 100644 index 0000000..fa54d03 --- /dev/null +++ b/.github/workflows/modrinth-release.yml @@ -0,0 +1,67 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Modrinth Release + +on: + release: + types: + - published +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml + + # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive + - name: Update dependency graph + uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 + - uses: Kir-Antipov/mc-publish@v3.2 + with: + modrinth-id: DnMaciap + modrinth-featured: true + modrinth-token: ${{ secrets.MODRINTH_TOKEN }} + + github-discussion: Announcements + github-token: ${{ secrets.GITHUB_TOKEN }} + github-draft: false + + files-primary: target/!(*-@(dev|sources|javadoc)).jar + files-secondary: target/*-@(dev|sources|javadoc).jar + loaders: | + spigot + paper + purpur + game-versions: | + 1.15 + 1.15.1 + 1.15.2 + 1.16 + 1.16.1 + 1.16.2 + 1.16.3 + 1.16.4 + 1.16.5 + 1.17 + 1.17.1 + 1.18 + 1.18.1 + 1.18.2 + 1.19 + 1.19.1 + 1.19.2 + java: | + 17 From 26daea505805995586412e26a13eefee1883df97 Mon Sep 17 00:00:00 2001 From: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com> Date: Wed, 23 Nov 2022 12:13:40 +0800 Subject: [PATCH 03/10] Update modrinth-release.yml --- .github/workflows/modrinth-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/modrinth-release.yml b/.github/workflows/modrinth-release.yml index fa54d03..bffd75d 100644 --- a/.github/workflows/modrinth-release.yml +++ b/.github/workflows/modrinth-release.yml @@ -31,7 +31,7 @@ jobs: uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 - uses: Kir-Antipov/mc-publish@v3.2 with: - modrinth-id: DnMaciap + modrinth-id: 4NOso0t8 modrinth-featured: true modrinth-token: ${{ secrets.MODRINTH_TOKEN }} From c8c62f36ba6caf839eda8dfec03af66e157c0280 Mon Sep 17 00:00:00 2001 From: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com> Date: Wed, 23 Nov 2022 12:23:55 +0800 Subject: [PATCH 04/10] Update modrinth-release.yml Remove Spigot from loaders --- .github/workflows/modrinth-release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/modrinth-release.yml b/.github/workflows/modrinth-release.yml index bffd75d..dcbd67a 100644 --- a/.github/workflows/modrinth-release.yml +++ b/.github/workflows/modrinth-release.yml @@ -42,7 +42,6 @@ jobs: files-primary: target/!(*-@(dev|sources|javadoc)).jar files-secondary: target/*-@(dev|sources|javadoc).jar loaders: | - spigot paper purpur game-versions: | From 416ea971fc083c5842a3084a187b52d2765f0547 Mon Sep 17 00:00:00 2001 From: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com> Date: Wed, 23 Nov 2022 17:11:31 +0800 Subject: [PATCH 05/10] Update modrinth-release.yml --- .github/workflows/modrinth-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/modrinth-release.yml b/.github/workflows/modrinth-release.yml index dcbd67a..9479735 100644 --- a/.github/workflows/modrinth-release.yml +++ b/.github/workflows/modrinth-release.yml @@ -9,6 +9,7 @@ name: Modrinth Release on: + workflow_dispatch: release: types: - published From 6189af3a66fa6f02c75b3e83faf5b8032a1f49c2 Mon Sep 17 00:00:00 2001 From: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com> Date: Wed, 23 Nov 2022 17:19:26 +0800 Subject: [PATCH 06/10] Update modrinth-release.yml --- .github/workflows/modrinth-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/modrinth-release.yml b/.github/workflows/modrinth-release.yml index 9479735..fb4e4df 100644 --- a/.github/workflows/modrinth-release.yml +++ b/.github/workflows/modrinth-release.yml @@ -40,6 +40,9 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} github-draft: false + curseforge-id: 709849 + curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} + files-primary: target/!(*-@(dev|sources|javadoc)).jar files-secondary: target/*-@(dev|sources|javadoc).jar loaders: | From 5b0a92bea0c1a08e3c0ddfab3d86cfd2f38640ac Mon Sep 17 00:00:00 2001 From: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com> Date: Wed, 23 Nov 2022 17:32:36 +0800 Subject: [PATCH 07/10] Update and rename modrinth-release.yml to mc-publish.yml --- .github/workflows/{modrinth-release.yml => mc-publish.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{modrinth-release.yml => mc-publish.yml} (98%) diff --git a/.github/workflows/modrinth-release.yml b/.github/workflows/mc-publish.yml similarity index 98% rename from .github/workflows/modrinth-release.yml rename to .github/workflows/mc-publish.yml index fb4e4df..b04d820 100644 --- a/.github/workflows/modrinth-release.yml +++ b/.github/workflows/mc-publish.yml @@ -6,7 +6,7 @@ # separate terms of service, privacy policy, and support # documentation. -name: Modrinth Release +name: mc-publish on: workflow_dispatch: From cee5f157971006fc63a7053c2514a116c4eefa24 Mon Sep 17 00:00:00 2001 From: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com> Date: Wed, 23 Nov 2022 19:10:35 +0800 Subject: [PATCH 08/10] Update mc-publish.yml --- .github/workflows/mc-publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mc-publish.yml b/.github/workflows/mc-publish.yml index b04d820..7099d91 100644 --- a/.github/workflows/mc-publish.yml +++ b/.github/workflows/mc-publish.yml @@ -40,8 +40,9 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} github-draft: false - curseforge-id: 709849 - curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} + #curseforge-id: 709849 + #curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} + #curseforge-name: "Codframe" files-primary: target/!(*-@(dev|sources|javadoc)).jar files-secondary: target/*-@(dev|sources|javadoc).jar From 7683cf7632fc58d0292a176eb35448270d824a91 Mon Sep 17 00:00:00 2001 From: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com> Date: Thu, 24 Nov 2022 12:24:42 +0800 Subject: [PATCH 09/10] Update README.md --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3539e6e..efd7cef 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,22 @@ # CodFrame +A simple ItemFrame protect and in-frame item preview plugin. + +**This is a PAPER only plugin, can run on [Paper](https://papermc.io/), or Paper's fork like [Purpur](https://purpurmc.org/) only! DO NOT INSTALL ON SPIGOT!** + +**This plugin require Java 17 and up to be run.** + +## Why CodFrame + +CodFrame can protect your items in itemframe to avoid grief like explosion, shoot, lava, fire, block break, interact, rotate. + +Also provide a cool and useful item-showcase feature to allow any player preview your awesome armor/weapon, or read your book without take out from ItemFrame! + ## Command -`/codframe` - Set a ItemFrame to CodFrame. +`/codframe` - Set or remove a CodFrame when you looking at a ItemFrame. ## Permission - -`codframe.admin` - Permission to bypass the owner check, force remove any exists CodFrame. +`codframe.admin` - Bypass the owner check, force remove a exists CodFrame. ## Demo Video From af412398cc0619841cb37156858ac595bce3185e Mon Sep 17 00:00:00 2001 From: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com> Date: Thu, 24 Nov 2022 18:27:16 +0800 Subject: [PATCH 10/10] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index efd7cef..2a79083 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ A simple ItemFrame protect and in-frame item preview plugin. **This plugin require Java 17 and up to be run.** +[Modrinth](https://modrinth.com/plugin/codframe) + ## Why CodFrame CodFrame can protect your items in itemframe to avoid grief like explosion, shoot, lava, fire, block break, interact, rotate. @@ -21,3 +23,4 @@ Also provide a cool and useful item-showcase feature to allow any player preview ## Demo Video [![DemoVideo](http://img.youtube.com/vi/WFKfd7CN-BU/0.jpg)](https://www.youtube.com/watch?v=WFKfd7CN-BU) +