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 diff --git a/.github/ISSUE_TEMPLATE/ISSUES.md b/.github/ISSUE_TEMPLATE/ISSUES.md new file mode 100644 index 0000000..3d4dbe1 --- /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 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. diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..dded892 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: 发布到 Github + +on: [ pull_request, workflow_dispatch ] + +env: #环境变量,后续可以使用 ${{ env.MINECRAFT_VERSION }} 引用 + MINECRAFT_VERSION: 1.20.1 + JAVA_VERSION: 17 + +permissions: + contents: write + +jobs: + 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 }} 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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 diff --git a/README.md b/README.md index a2befca..97d14e1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,19 @@ -### 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! +### 他可以做什么 + +这是一个全能插件(但是还没做多少),什么功能都可能会添加(只要开了issues就会尝试做出来). + +但是由于作者(@Aruvelut-123)是个学生. +所以这个插件更新速度可能会非常慢. + +### 版本支持 + +只测试了1.20.1 + +其他版本未知,自己试着用吧. + +### 一些废话 + +如果遇到什么BUG或者功能建议,你可以开一个issue. +你有能力并愿意帮着写这个插件的话,作者很乐意你提交PR.