feat: Auto-install CatalystAnalytics plugin on server creation#16
Closed
kilo-code-bot[bot] wants to merge 1 commit intomainfrom
Closed
feat: Auto-install CatalystAnalytics plugin on server creation#16kilo-code-bot[bot] wants to merge 1 commit intomainfrom
kilo-code-bot[bot] wants to merge 1 commit intomainfrom
Conversation
- Add pre-built CatalystAnalytics.jar to resources/plugins/ - Add Gradle wrapper (gradlew/gradlew.bat) to catalyst-plugin/ - Add CI workflow to build plugin JAR on changes - Wire enableAnalytics toggle from UI through to server creation - Copy plugin JAR to server's plugins/ dir when analytics enabled - Fix compilation error: use reflection for getClientBrandName() - Add catalyst-plugin/README.md with full documentation - Add analytics section to main README - Add catalyst-plugin build artifacts to .gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR makes the CatalystAnalytics plugin "just work" end-to-end by:
1. Pre-built JAR
gradlew/gradlew.bat) tocatalyst-plugin/getClientBrandName()now uses reflection for Spigot API compatibilityresources/plugins/CatalystAnalytics.jar.github/workflows/build-plugin.yml) that rebuilds the JAR on plugin changes2. Auto-install on server creation
enableAnalyticsfield toCreateServerParamstypeenableAnalyticsto the backendcreateServer()inserver-manager.tscopies the bundled JAR into the server'splugins/directory when enabledanalyticsEnabledfield toServerRecordfor tracking3. Integration check
AnalyticsTab:/api/analytics/overview,/players,/tps,/memory,/geo,/timelineplugins/CatalystAnalytics/data/and serves it via HTTP — frontend reads via HTTP4. Documentation
catalyst-plugin/README.mdwith features, configuration, API endpoints, and build instructionsREADME.md5. No errors
getClientBrandName()compilation error (Spigot API doesn't have this method — now uses reflection)catalyst-plugin/.gradle/andcatalyst-plugin/build/to.gitignoreBuilt for 87wf9xdgz8 by Kilo for Slack