Skip to content

Remove the Windows-era scripts the droplet made dead - #21

Merged
OpenSource-For-Freedom merged 1 commit into
mainfrom
chore/remove-windows-era-scripts
Aug 15, 2026
Merged

Remove the Windows-era scripts the droplet made dead#21
OpenSource-For-Freedom merged 1 commit into
mainfrom
chore/remove-windows-era-scripts

Conversation

@OpenSource-For-Freedom

Copy link
Copy Markdown
Owner

Cleanup of the root directory. Six files from when the server ran locally on Windows.

Deleted

File Why
backup_server.ps1 Zips $PSScriptRoot\data on Windows. Droplet has DO snapshots + deploy-time backups
register_backup_policy.ps1 Hardcodes F:\minecraft\, registers a Windows scheduled task. Unreferenced
stop_server.ps1 Local Windows shutdown wrapper. Unreferenced
register_playtime_policy.ps1 Windows scheduled task
playtime_limit.ps1 See below
server_commands.txt UTF-16 dump of vanilla help from a newer Minecraft than we run - it lists /dialog and locator_bar, which do not exist in 1.20.1

None are referenced by CI. Verified before deleting.

Kept: sync_guide_to_mrpack.ps1

Windows-only as well, but it solves a live problem rather than a dead one. Patchouli can only tell a client which book to open; the client must already have the book JSON in its pack. Forgetting that step is why /guide silently does nothing for players on a stale pack.

tools/sync_client_pack.py handles mods, not the guide overrides, so the two are complementary. Pack edits happen on the Windows machine anyway.

The deletion that actually costs something

playtime_limit.ps1 capped each kid at 120 minutes a day by removing them from the whitelist, which ENFORCE_WHITELIST turned into an instant kick, then restored them at the day rollover.

It has not run since the move to the droplet, so that control has silently been off for weeks.

DEPLOY.md previously described it as merely "Windows-only, a Linux version isn not written yet". It now says plainly that there is currently no time limit of any kind, with what a Linux version would need.

A parental control documented as existing but not running is worse than one honestly marked absent, because someone is relying on it. The logic stays in git history if you want it ported.

Verified

CI file references   all still resolve
mod parity test      PASS
docker compose       renders

Root goes from 13 files to 7.

Six files from when the server ran locally on Windows. None can work
against a Linux droplet, none are referenced by CI, and most only
referenced each other:

  backup_server.ps1            zips $PSScriptRoot\data; the droplet has
                               DigitalOcean snapshots and deploy-time backups
  register_backup_policy.ps1   hardcodes F:\minecraft\ and registers a
                               Windows scheduled task
  stop_server.ps1              local Windows shutdown wrapper
  register_playtime_policy.ps1 Windows scheduled task
  playtime_limit.ps1           see below
  server_commands.txt          a UTF-16 dump of vanilla command help from a
                               NEWER Minecraft than we run: it lists /dialog and
                               locator_bar, which do not exist in 1.20.1

Kept sync_guide_to_mrpack.ps1. It is Windows-only too, but it solves a live
problem rather than a dead one: Patchouli can only tell a client which book
to open, so the client needs the book JSON already in its pack, and forgetting
that step is why /guide silently does nothing for players on a stale pack.
tools/sync_client_pack.py handles mods, not the guide overrides, so the two are
complementary. Pack edits happen on the Windows machine anyway.

The one deletion that costs something is playtime_limit.ps1. It capped each
kid at 120 minutes a day by pulling them off the whitelist, which
ENFORCE_WHITELIST turned into an instant kick, and restored them at the day
rollover. It has not run since the move to the droplet, so that control has
silently been off for weeks.

DEPLOY.md now says so in plain terms rather than describing it as a feature
that merely needs porting. A parental control that is documented as existing
but is not running is worse than one that is honestly marked absent, because
someone is relying on it. The logic remains in git history if it is wanted as
a starting point for a Linux version.
@OpenSource-For-Freedom
OpenSource-For-Freedom merged commit 3ac02ac into main Aug 15, 2026
8 checks passed
@OpenSource-For-Freedom
OpenSource-For-Freedom deleted the chore/remove-windows-era-scripts branch August 15, 2026 10:34
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