-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✅ New PluginReloadEvent API 🛠 Optimize the structure of codes
- Loading branch information
Showing
12 changed files
with
45 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,31 @@ | ||
name: build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
name: Workflow Build | ||
on: [ push ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v2 | ||
- name: cache gradle packages | ||
uses: actions/cache@v2 | ||
with: | ||
key: ${{ runner.os }}-build-${{ env.cache-name }} | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
- name: validate gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
- name: setup jdk 8.0 | ||
- name: setup jdk 16.0 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt | ||
java-version: 8.0 | ||
java-version: 16.0 | ||
- name: make gradle wrapper executable | ||
run: chmod +x ./gradlew | ||
# 第一次构建 | ||
- name: build | ||
continue-on-error: true | ||
id: build_1 | ||
run: ./gradlew build | ||
# 第二次构建 | ||
- name: build (retry 1) | ||
continue-on-error: true | ||
id: build_2 | ||
if: steps.build_1.outcome == 'failure' | ||
run: ./gradlew build | ||
# 第三次构建 | ||
- name: build (retry 2) | ||
continue-on-error: true | ||
id: build_3 | ||
if: steps.build_2.outcome == 'failure' | ||
run: ./gradlew build | ||
# 第四次构建 | ||
- name: build (retry 3) | ||
id: build_4 | ||
if: steps.build_3.outcome == 'failure' | ||
run: ./gradlew build | ||
# 上传构建文件 | ||
- name: capture build artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Artifacts | ||
path: build/libs/ | ||
path: build/libs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
group=com.github.l1an.yuspawnerhologram | ||
version=1.0.2 | ||
version=1.0.3 |
5 changes: 5 additions & 0 deletions
5
src/main/kotlin/com/github/l1an/yuspawnerhologram/api/event/PluginReloadEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.github.l1an.yuspawnerhologram.api.event | ||
|
||
import taboolib.platform.type.BukkitProxyEvent | ||
|
||
class PluginReloadEvent : BukkitProxyEvent() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...in/kotlin/com/github/l1an/yuspawnerhologram/internal/command/subcommand/CommandRefresh.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
...in/kotlin/com/github/l1an/yuspawnerhologram/internal/core/mythichologram/HologramEnter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../core/mythichologram/AdyeshachHologram.kt → ...ram/module/adyeshach/AdyeshachHologram.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nal/core/mythichologram/DecentHologram.kt → .../module/decentholograms/DecentHologram.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...ore/mythichologram/HolographicHologram.kt → ...olographicdisplays/HolographicHologram.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters