Skip to content

Add report abuse, mute, ban and black mark systems#1023

Open
HarleyGilpin wants to merge 4 commits into
GregHib:mainfrom
HarleyGilpin:feat/report-abuse
Open

Add report abuse, mute, ban and black mark systems#1023
HarleyGilpin wants to merge 4 commits into
GregHib:mainfrom
HarleyGilpin:feat/report-abuse

Conversation

@HarleyGilpin

Copy link
Copy Markdown
Contributor

Summary

Adds player moderation systems: abuse reports, mutes, bans and black marks.

  • Report Abuse interface (594) opens from the chatbox Report button, right-clicking a player name in the chatbox, or a split private chat line; the client pre-fills the reported player's name
  • Reports are queued and saved off the game thread with chat history evidence (last 20 messages / 5 minutes)
  • Online moderators are notified of new reports and can request an immediate mute when reporting
  • Mod commands: ::mute, ::permmute, ::unmute, ::ban, ::permban, ::unban, ::blackmark, ::blackmarks (work on offline players where applicable)
  • Black marks expire after 12 months (permanent for real-world law offences); 10 active marks are required for permanent punishments
  • Muted players are blocked from public, private and clan chat; banned players are rejected at login

Testing

  • ReportAbuseTest covers report submission, validation, rate limiting, mod mute, and interface opening from the filter button, chatbox lines and private chat
  • PunishmentsTest covers black mark accumulation, expiry and ban flags
  • Verified in-game with the 634 client: right-click name → Report abuse opens the interface with the name pre-filled and the submitted report is saved
Screencast_20260610_085448.webm

Mutes add one black mark, bans two (including offline bans), so
punishments accumulate toward the permanent punishment limit.
Report-issued mutes record the rule broken.
Appending two identical marks in the same millisecond caused
duplicate entries to be dropped.
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