From 45c29405be5169e088023aa01cde50467f3eabed Mon Sep 17 00:00:00 2001 From: Sho Sakuma Date: Sun, 2 Aug 2026 17:43:50 +0900 Subject: 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. --- platform-paper/build.gradle.kts | 6 +++--- .../dev/m1sk9/lunaticChat/paper/command/core/CommandContext.kt | 2 +- platform-paper/src/main/resources/paper-plugin.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'platform-paper') 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 -- cgit v1.2.1