feat: implement freeze list command and enhance freeze functionality#30
Open
Timonso-1 wants to merge 8 commits into
Open
feat: implement freeze list command and enhance freeze functionality#30Timonso-1 wants to merge 8 commits into
Timonso-1 wants to merge 8 commits into
Conversation
MikeyLLP
reviewed
Jun 19, 2026
MikeyLLP
left a comment
Contributor
There was a problem hiding this comment.
Der hat immer eine UUID
Contributor
There was a problem hiding this comment.
Pull request overview
Implements a new /freezelist command to display currently frozen players, and enhances the freeze system to store richer metadata (who froze whom, when, and until when) to support listing and UI hover details.
Changes:
- Replace the freeze cache value from
Longduration toFreezeData(with timestamps + actor metadata) and add query helpers. - Add and register the
/freezelistcommand with paginated output and an “Entfrieren” action. - Update
/freezeto record the freezing actor, plus README + version bump.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
src/main/kotlin/dev/slne/surf/moderation/tools/service/FreezeService.kt |
Stores FreezeData in cache; adds listing/query APIs for freeze metadata. |
src/main/kotlin/dev/slne/surf/moderation/tools/PaperCommandManager.kt |
Registers the new freezeListCommand(). |
src/main/kotlin/dev/slne/surf/moderation/tools/commands/FreezeListCommand.kt |
New paginated /freezelist command showing freeze metadata and unfreeze action. |
src/main/kotlin/dev/slne/surf/moderation/tools/commands/FreezeCommand.kt |
Passes frozenBy + frozenByName into FreezeService.freeze(). |
README.md |
Documents /freezelist (needs Markdown fix). |
gradle.properties |
Bumps snapshot version to 2.1.3-SNAPSHOT. |
Comments suppressed due to low confidence (1)
src/main/kotlin/dev/slne/surf/moderation/tools/service/FreezeService.kt:43
getFrozenPlayers()currently returns the livekeysview of the cache’s backing map. Callers can mutate this collection (e.g.,remove) and inadvertently modify the cache. Returning a snapshot avoids accidental external mutation.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
No description provided.