RefractorGSCM / Refractor

An open-source game server community manager built with Go.

Home Page:https://refractor.dmas.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Infraction creation from in-game moderation broadcasts

dsnidr opened this issue · comments

Mordhau, one of the supported games, can broadcast moderation actions (kicks, bans, etc).

This information can be taken and used to create an infraction with the duration and reason provided. The code to link users to players is already in place, so that functionality can use that to assign a UserID to the created infractions.

In the case where a linked player can't be found, UserID can be marked as null since it's a nullable field. There can be an additional API endpoint added for fetching unclaimed infractions (infractions which do not have a UserID set).

To aid in this process, the name of the in game admin who created the infraction could also be added (prepended maybe?) to the infraction reason.

Mordhau moderator action broadcasts do not seem to work correctly at the moment.

Mute and bans broadcast all the needed details, but kick broadcasts do not contain the name or ID of the admin who kicked.

Due to this, development on this feature will be put on hold for now to prevent inconsistencies where it works with some types of infractions but not with others.

Closing until broadcast inconsistencies are resolved.

Re-opening for visibility.