Skip to content

Update Sarah to 1.27 and zMenu API to 1.1.2.1 - #10

Open
kazotaruumc72 wants to merge 1 commit into
Maxlego08:developfrom
MineArena:chore/update-sarah-zmenu
Open

kazotaruumc72 wants to merge 1 commit into
Maxlego08:developfrom
MineArena:chore/update-sarah-zmenu

Conversation

@kazotaruumc72

Copy link
Copy Markdown

Summary

  • fr.maxlego08.sarah:sarah 1.23 → 1.27 (latest release)
  • fr.maxlego08.menu:zmenu-api 1.1.1.6 → 1.1.2.1 (latest on repo.groupez.dev)

Changes required by Sarah 1.27

  • Sarah 1.27 adds DatabaseType.POSTGRESQL, which made the switch in ZStorageManager#loadDatabase non-exhaustive (compile error). It is now handled with HikariDatabaseConnection. Note: the PostgreSQL JDBC driver is not shaded, so using it requires the driver on the server classpath.
  • Since 1.27, select / selectAll / count throw a DatabaseException instead of returning an empty result. ZStorageManager#load now catches and logs it: otherwise the exception would be silently swallowed by the executor. On error, no empty UserQuest is loaded, so player data is not overwritten.

Test plan

  • ./gradlew compileJava and ./gradlew shadowJar pass
  • In-game check with SQLITE and MYSQL/MARIADB

🤖 Generated with Claude Code

- Handle the new DatabaseType.POSTGRESQL with HikariDatabaseConnection
- Since Sarah 1.27, select throws a DatabaseException instead of returning
  an empty list: catch and log it when loading a player, so the error is not
  lost in the executor and no empty user is loaded

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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