Compare commits

..

9 Commits

Author SHA1 Message Date
Fortern 4ed6b8ec5a ver 1.3
Build Plugin / Build with Maven (push) Successful in 52s
2026-06-08 14:37:28 +08:00
Fortern d850455b98 nbt tools 2026-06-07 19:32:48 +08:00
Fortern 9c3e597789 异步工具
异步函数通过BukkitScheduler提交
2026-06-07 19:31:03 +08:00
Fortern 285f5273c3 ver 1.2 2026-06-07 19:20:48 +08:00
Fortern 8582161da3 workflows 2026-06-07 19:20:48 +08:00
Fortern de3a83deaa Depending on NBT-API 2026-06-07 19:20:48 +08:00
Fortern 9562519d1a ver 1.1 2026-06-07 19:20:48 +08:00
Fortern 29e5216c8c 占位符 2026-06-07 19:20:47 +08:00
Fortern 4cf440b843 区块等级 2026-06-07 19:20:47 +08:00
2 changed files with 17 additions and 3 deletions
+16 -2
View File
@@ -9,9 +9,11 @@ jobs:
build: build:
name: Build with Maven name: Build with Maven
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: write
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v5 uses: actions/checkout@v6
- name: Set up JDK 25 and enable Maven cache - name: Set up JDK 25 and enable Maven cache
uses: actions/setup-java@v5 uses: actions/setup-java@v5
@@ -28,8 +30,20 @@ jobs:
- name: Build and package with Maven - name: Build and package with Maven
run: mvn -B package run: mvn -B package
- name: Determine version
id: set-version
shell: bash
run: |
VERSION=${GITHUB_REF#refs/tags/ver/}
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Upload built artifacts - name: Upload built artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: maven-artifacts name: maven-artifacts
path: target/spigot/*.jar path: target/spigot/*.jar
- uses: akkuman/gitea-release-action@v1
with:
name: '${{ steps.set-version.outputs.version }} Release'
files: target/spigot/*.jar
@@ -23,7 +23,7 @@ class HelperCommand(
) : TabExecutor { ) : TabExecutor {
private val subCommands: List<String> = listOf("loadlevel") private val subCommands: List<String> = listOf("loadlevel")
private val helpMessages = listOf( private val helpMessages = listOf(
Component.text("Minehunt v${plugin.description.version}", NamedTextColor.GREEN), Component.text("fortern-helper v${plugin.description.version}", NamedTextColor.GREEN),
Component.text("/helper help ", NamedTextColor.GOLD) Component.text("/helper help ", NamedTextColor.GOLD)
.append(Component.text("帮助信息", NamedTextColor.WHITE)), .append(Component.text("帮助信息", NamedTextColor.WHITE)),
Component.text("/helper loadlevel <chunkPosX> <chunkPosZ> [world] ", NamedTextColor.GOLD) Component.text("/helper loadlevel <chunkPosX> <chunkPosZ> [world] ", NamedTextColor.GOLD)