Skip to content

Make Spring Reloadable#19

Merged
ericlmao merged 2 commits intomainfrom
feat/spring-reload
Jan 4, 2026
Merged

Make Spring Reloadable#19
ericlmao merged 2 commits intomainfrom
feat/spring-reload

Conversation

@ericlmao
Copy link
Copy Markdown
Member

@ericlmao ericlmao commented Jan 4, 2026

No description provided.

ericlmao and others added 2 commits January 3, 2026 21:45
Replaces the instance field 'context' with a static 'CONTEXT' in MossPaper, updates all usages accordingly, and simplifies the reload logic to fully reinitialize the plugin lifecycle. Also removes the Reloadable interface, as it is no longer used.
Refactored MossBungee, MossPaper, and MossVelocity to improve plugin lifecycle handling and Spring context management. Made the application context static, ensured proper startup and shutdown, and enhanced reload logic to fully reinitialize plugins. Added explicit cancellation of scheduled tasks and unregistration of listeners on disable for all platforms. Updated build.gradle files to bump apiVersion to 1.2.0 (or 1.2.0-SNAPSHOT for BungeeCord).
@ericlmao ericlmao marked this pull request as ready for review January 4, 2026 02:32
@ericlmao ericlmao merged commit a89d8a5 into main Jan 4, 2026
@ericlmao ericlmao deleted the feat/spring-reload branch January 4, 2026 02:32
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