Skip to content

Add registration-date player removal command - #4792

Open
Minecraft0122 wants to merge 1 commit into
plan-player-analytics:masterfrom
Minecraft0122:codex/remove-registered-range
Open

Add registration-date player removal command#4792
Minecraft0122 wants to merge 1 commit into
plan-player-analytics:masterfrom
Minecraft0122:codex/remove-registered-range

Conversation

@Minecraft0122

Copy link
Copy Markdown

Summary

  • add /plan db remove_registered <after-date> <before-date> with removeregistered and remove_between aliases
  • parse inclusive yyyy-MM-dd boundaries using Plan's configured time zone
  • require plan.data.clear and explicit confirmation before deleting matching players
  • remove all Plan data through the existing per-player removal transaction and report the removed count

Tests

  • SQLiteTest.removePlayersRegisteredBetweenDates() covers inclusive lower and upper boundaries and retains an out-of-range player
  • PlanCommandTest verifies the command is registered and permission-protected

This is the player-cleanup portion of the closed #4772, split into a single-purpose PR as requested.

Closes #4719

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.

Add a feature that can delete data of players who joined the server for the first time within a specified time

1 participant