Skip to content

Fix paper module compatibility for Paper API 26.2#211

Open
dubsector wants to merge 8 commits into
mrgeneralq:masterfrom
dubsector:fix/paper-26.2
Open

Fix paper module compatibility for Paper API 26.2#211
dubsector wants to merge 8 commits into
mrgeneralq:masterfrom
dubsector:fix/paper-26.2

Conversation

@dubsector

Copy link
Copy Markdown

Summary

  • Bump paper-api dependency in paper/pom.xml from 1.21.11-R0.1-SNAPSHOT to 26.2.build.35-alpha
  • Replace removed com.destroystokyo.paper.PaperConfig runtime detection with io.papermc.paper.configuration.GlobalConfiguration (the legacy com.destroystokyo.paper packages are gone in Paper 26.x)
  • Fix PlaceholderAPI repository URL (moved to /releases/) and bump to 2.12.2
  • Bump SuperVanish to 6.2.19 (6.2.6-4 no longer resolves via jitpack)
  • Add org.jetbrains:annotations as an explicit dependency (no longer transitively provided by PlaceholderAPI 2.12.2)
  • Force ASM 9.8 in maven-shade-plugin and bump to 3.6.0 to support Java 25 class files required by Paper 26.2
  • Bump compiler target to Java 25

Note on target branch

The contributing guide mentions PRing against a develop branch, but no develop branch exists in the repo (see #209). With no alternative, I've targeted master directly — it produced a clean diff of only the files actually changed, whereas targeting 5.5.2-release caused a misleading +3,449/-3,194 diff due to branch divergence.

Test plan

  • Builds successfully — confirmed via CI
  • Sleep percentage enforced correctly — confirmed working on a live Paper 26.2 (build 36) server with 2/3 players sleeping
  • ADVANCE_TIME gamerule integration active — confirmed via /sleepmost debug showing correct calculations

Tested on Paper 26.2 build 36.

- Bump paper-api dependency to 26.2.build.35-alpha
- Replace removed com.destroystokyo.paper.PaperConfig detection with
  io.papermc.paper.configuration.GlobalConfiguration, which is present
  in all modern Paper builds
- Fix PlaceholderAPI repo URL (moved to /releases/) and bump to 2.12.2
- Bump SuperVanish to 6.2.19 (6.2.6-4 no longer resolves via jitpack)
- Pin all actions to commit hashes, add permissions blocks, remove
  cache: maven (cache-poisoning fix), add persist-credentials: false
- Add zizmor workflow for ongoing security scanning of workflow files
PlaceholderAPI 2.12.2 no longer transitively provides it
3.5.0 uses ASM that cannot process Java 25 class files (version 69)
maven-shade-plugin 3.6.0 bundles ASM 9.7.1 which only handles up to
Java 23. Java 25 (class version 69) requires ASM 9.8.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant