Skip to content

feat(banned-users): soft vs hard (connection) bans#43

Merged
Casjb merged 2 commits into
mainfrom
casjb/banned-users-soft-hard
Jun 16, 2026
Merged

feat(banned-users): soft vs hard (connection) bans#43
Casjb merged 2 commits into
mainfrom
casjb/banned-users-soft-hard

Conversation

@Casjb

@Casjb Casjb commented Jun 16, 2026

Copy link
Copy Markdown
Member

Adds a ban-type distinction to the banned-users admin so we can flag a player without tipping them off (soft) or block their server access entirely (hard).

  • schema: banned_users.ban_type ('soft' default | 'hard') + migration 0013.
  • permission: new banned_users.hard_ban (owner-only by default); the save router rejects hard bans without it. Soft bans need only banned_users.manage.
  • UI: soft/hard selector (soft default; hard disabled without permission), a destructive confirmation dialog for hard bans, and a soft/hard badge per row.

Soft bans remain notify-only (mp-ban-watcher Discord warning); hard bans are synced to the relay, which disconnects them.

Casjb and others added 2 commits June 16, 2026 01:29
Adds a ban-type distinction to the banned-users admin so we can flag a player
without tipping them off (soft) or block their server access entirely (hard).

- schema: banned_users.ban_type ('soft' default | 'hard') + migration 0013.
- permission: new banned_users.hard_ban (owner-only by default); the save router
  rejects hard bans without it. Soft bans need only banned_users.manage.
- UI: soft/hard selector (soft default; hard disabled without permission), a
  destructive confirmation dialog for hard bans, and a soft/hard badge per row.

Soft bans remain notify-only (mp-ban-watcher Discord warning); hard bans are
synced to the relay, which disconnects them.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
biome was flagging the machine-generated drizzle snapshot/journal JSON
(0011–0013), which are build artifacts, not hand-written source. Ignore
`drizzle/` so `bun run check` stops reporting on them.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Casjb Casjb merged commit 9d5e7ff into main Jun 16, 2026
1 check failed
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