Skip to content

Fix/code style cleanup#13

Merged
ez-plugins merged 3 commits into
dev/2.1.0from
fix/code-style-cleanup
Apr 19, 2026
Merged

Fix/code style cleanup#13
ez-plugins merged 3 commits into
dev/2.1.0from
fix/code-style-cleanup

Conversation

@ez-plugins
Copy link
Copy Markdown
Owner

  • Removed Paper / MockBukkit from API to make it a Java-only package

…lution

Maven resolves the full dependency graph upfront before any lifecycle phase,
so -Dmaven.test.skip=true cannot prevent test-scoped dependency resolution.
Building only the api module (-pl api) excludes the plugin module entirely,
which is correct since JitPack consumers only depend on ezseasons-api.
The API only uses org.bukkit.event.Event and HandlerList, which have been
stable since Bukkit 1.0. Pinning to 1.21.4-R0.1-SNAPSHOT decouples the
API artifact from the server version so it does not need to be updated
when the plugin targets a newer Minecraft/Paper release.
- api/pom.xml: remove paper-api provided dependency (API is now pure Java)
- SeasonsIntegration: add default onSeasonReset(previousResetMillis, resetMillis,
  nextResetMillis, reason) no-op callback; existing implementations unaffected
- Move SeasonResetEvent, SeasonsIntegrationRegisteredEvent,
  SeasonsIntegrationUnregisteredEvent from api module to plugin module
  (same FQN preserved; existing @eventhandler listeners recompile against plugin JAR)
- SeasonManager: call onSeasonReset on all registered integrations after Bukkit event
- EzSeasonsPlugin: expose getSeasonsApi() delegating to registry
- docs/api.md: document onSeasonReset, note events are in plugin JAR
- Bump version 2.0.3 -> 2.1.0
@ez-plugins ez-plugins merged commit 9f7f200 into dev/2.1.0 Apr 19, 2026
7 checks passed
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