Compare commits
9 Commits
b37bcc6693
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 4ed6b8ec5a | |||
| d850455b98 | |||
| 9c3e597789 | |||
| 285f5273c3 | |||
| 8582161da3 | |||
| de3a83deaa | |||
| 9562519d1a | |||
| 29e5216c8c | |||
| 4cf440b843 |
@@ -9,9 +9,11 @@ jobs:
|
||||
build:
|
||||
name: Build with Maven
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Set up JDK 25 and enable Maven cache
|
||||
uses: actions/setup-java@v5
|
||||
@@ -28,8 +30,20 @@ jobs:
|
||||
- name: Build and package with Maven
|
||||
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
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: maven-artifacts
|
||||
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 {
|
||||
private val subCommands: List<String> = listOf("loadlevel")
|
||||
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)
|
||||
.append(Component.text("帮助信息", NamedTextColor.WHITE)),
|
||||
Component.text("/helper loadlevel <chunkPosX> <chunkPosZ> [world] ", NamedTextColor.GOLD)
|
||||
|
||||
Reference in New Issue
Block a user