Conversation
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
dmccoystephenson
left a comment
There was a problem hiding this comment.
@copilot Add the Ponder project as a git submodule, then create a simple CI task to install Ponder with Maven and then compile the plugin
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
Added Ponder as a git submodule at
Commit: aa7e2da (autosave), plus the new commit for submodule and CI workflow Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
dmccoystephenson
left a comment
There was a problem hiding this comment.
@copilot The CI check should check out the same version of Ponder that it references in pom.xml
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
dmccoystephenson
left a comment
There was a problem hiding this comment.
@copilot Update CI pipeline to point to tag v0.14-alpha-2 for Ponder
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
dmccoystephenson
left a comment
There was a problem hiding this comment.
@copilot Make CI pipeline and pom.xml reference v0.14 for Ponder
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
dmccoystephenson
left a comment
There was a problem hiding this comment.
@copilot Remove CI pipeline and revert pom.xml changes
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
This PR implements an autosave feature that automatically saves plugin data every 5 minutes to prevent data loss in case of unexpected server shutdowns or crashes.
Changes
Autosave Feature
Added an asynchronous recurring task that periodically saves plugin data.
Implementation Details:
java.util.Timerwith a daemon thread to schedule the autosave task, following the same pattern used by the existing bStats Metrics integrationBukkit.getScheduler().runTask()to ensure thread safetyonEnable()after all plugin initialization is completeonDisable()with proper cleanup to prevent resource leaksCode Changes:
Modified
src/main/java/dansplugins/simpleskills/SimpleSkills.java:autosaveTimerfield to track the Timer instancestartAutosave()method to initialize and schedule the recurring taskstopAutosave()method to cancel the timer and clean up resourcesonEnable()andonDisable()methodsThe implementation is minimal, focused, and follows existing code patterns in the repository.
Fixes #113
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.