diff options
| author | Sho Sakuma <me@m1sk9.dev> | 2026-08-02 17:43:50 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-02 17:43:50 +0900 |
| commit | 45c29405be5169e088023aa01cde50467f3eabed (patch) | |
| tree | 7a5ef472546694d939535a9f1d6d1fb4cbc15f5e /platform-paper | |
| parent | c2575cc3089819e3cd877c743b78f11bc9131e79 (diff) | |
| download | LunaticChat-45c29405be5169e088023aa01cde50467f3eabed.tar.gz LunaticChat-45c29405be5169e088023aa01cde50467f3eabed.tar.bz2 LunaticChat-45c29405be5169e088023aa01cde50467f3eabed.zip | |
feat: support Paper 26.2 (Minecraft 26.2)
Paper 26.2 bundles Adventure 5.2.0, a major bump from the 4.26.1 shipped by 26.1.
Adventure 5 makes ClickEvent generic, so the raw type in
CommandContext.replyWithEvent no longer compiled. Auditing the rest of the
Adventure 5 removals found no other affected usage.
api-version is raised to 26.2, dropping 26.1 support: the two Adventure majors
are not binary compatible, so claiming 26.1 compatibility would be a lie.
Also fixes two problems found while verifying on a real server: the Velocity
healthcheck invoked mc-health, which does not exist in the mc-proxy image, so the
container had never once passed its check; and the debug environments pinned no
build at all, which meant the proxy came up as 4.1.0-SNAPSHOT while the plugin is
compiled against velocity-api 3.5.1. Server versions are now derived by x from
the Gradle coordinates so they cannot drift from what the plugin targets.
Diffstat (limited to 'platform-paper')
3 files changed, 5 insertions, 5 deletions
diff --git a/platform-paper/build.gradle.kts b/platform-paper/build.gradle.kts index 6cd9af0..1665d67 100644 --- a/platform-paper/build.gradle.kts +++ b/platform-paper/build.gradle.kts @@ -19,12 +19,12 @@ dependencies { api(project(":engine")) // Paper-specific dependencies - compileOnly("io.papermc.paper:paper-api:26.1.2.build.74-stable") + compileOnly("io.papermc.paper:paper-api:26.2.build.87-stable") implementation("com.charleskorn.kaml:kaml:0.104.0") // YAML configuration implementation("org.jetbrains.kotlin:kotlin-reflect:2.4.10") // Annotation processing // Test dependencies - testImplementation("io.papermc.paper:paper-api:26.1.2.build.74-stable") + testImplementation("io.papermc.paper:paper-api:26.2.build.87-stable") testImplementation("io.mockk:mockk:1.14.11") testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.11.0") } @@ -40,7 +40,7 @@ tasks { } runServer { - minecraftVersion("26.1.1") + minecraftVersion("26.2") } processResources { diff --git a/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/command/core/CommandContext.kt b/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/command/core/CommandContext.kt index 7f1bb15..53f29f4 100644 --- a/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/command/core/CommandContext.kt +++ b/platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/command/core/CommandContext.kt @@ -50,7 +50,7 @@ class CommandContext( */ fun replyWithEvent( message: Component, - event: ClickEvent, + event: ClickEvent<*>, ) { message .clickEvent(event) diff --git a/platform-paper/src/main/resources/paper-plugin.yml b/platform-paper/src/main/resources/paper-plugin.yml index 5e0074e..3b56cda 100644 --- a/platform-paper/src/main/resources/paper-plugin.yml +++ b/platform-paper/src/main/resources/paper-plugin.yml @@ -1,7 +1,7 @@ name: LunaticChat version: ${version} main: dev.m1sk9.lunaticChat.paper.LunaticChat -api-version: '26.1' +api-version: '26.2' folia-supported: true prefix: LunaticChat load: STARTUP |
