# Moderation

> Ban and unban players through Roblox's Ban API, kick and warn them through the Cmdr bridge, and keep notes, flags and a verified moderation log.

Bloxlytics moderates players through two channels, and never reports an action as done until the channel that applies it says so:

| Action | Applied by | Needs | Confirmed by |
| --- | --- | --- | --- |
| Ban, unban | Roblox, through Open Cloud's user restrictions API (the same Ban API Creator Hub uses) | An Open Cloud key with `universe.user-restriction:write` | Reading the restriction back from Roblox straight afterwards |
| Kick, warn | Your game server, through the Cmdr bridge | The player online in a server running the bridge, with kick or warn enabled | The game server's result |
| Notes, flags | Bloxlytics only | Nothing in the game | Not applicable — they never affect the player in-game |

All moderation lives on the [player profile](https://docs.bloxlytics.app/operations/player-lookup) (the **Actions** menu and the **Moderation** tab) and in **Player Lookup** (the **Moderation log** and **Bans** tabs).

## Before you start

- **Bans** need an Open Cloud key connected under **Integrations** with `universe.user-restriction:write`. Add `universe.user-restriction:read` as well so Bloxlytics can show live ban status, the Roblox restriction log and the **Bans** list. See [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud).
- **Kicks and warnings** need the [Cmdr bridge](https://docs.bloxlytics.app/sdk/cmdr-bridge) running in the player's server and the command bridge turned on in project settings. Kick is on unless the bridge is started with `AllowKick = false`. Warn only exists if you pass an `OnWarn` function, because Bloxlytics can't know how your game shows a warning.
- Your role needs the moderation permissions below.

### Permissions

| Permission | Allows | Default roles |
| --- | --- | --- |
| `moderation.view` — View moderation history and notes | The **Moderation** profile tab, the **Moderation log** and **Bans** tabs | Owner, Admin, Developer |
| `moderation.act` — Kick, warn, ban and unban players | Kick, warn, ban, unban, adding and deleting notes, setting and clearing flags | Owner, Admin, Developer |

Every moderation request also needs `players.view`, and acting needs `moderation.view` too. The API checks these on every request; the app only uses them to decide what to show. Analysts and viewers don't get moderation access unless an owner or admin grants it — see [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions).

## Ban a player

The **Ban player** item appears in a player's **Actions** menu when the connected key can write user restrictions and the player isn't already banned.

**1. Open the ban dialog**

On the player's profile, or from a row in **Player Lookup**, open **Actions** and choose **Ban player**.

**2. Write the reasons**

**Reason shown to the player** is required, up to 400 characters. Roblox shows it to the player when they try to join.

**Private note for moderators** is optional, up to 1,000 characters, and is stored by Roblox as the ban's private reason. If you leave it empty, Bloxlytics sends `Issued by <your name> via Bloxlytics` so the ban can still be traced from Creator Hub.

**3. Choose a duration**

Pick **1 hour**, **1 day** (the default), **7 days**, **30 days**, **Permanent** or **Custom**. A custom duration is a number of **Minutes**, **Hours** or **Days** and must be at least one minute.

**4. Decide about alternate accounts**

By default Roblox also blocks accounts it detects as the player's alts. Turn on **Don't ban alternate accounts** to ban only this account.

**5. Confirm**

Select **Ban player**. Bloxlytics sends the ban to Roblox, then reads the restriction back. When the read-back shows the ban is active you see "… is banned — verified with Roblox".

> **Warning:** A ban applies to the whole experience, not just one server, and with alternate accounts included it can affect accounts you haven't looked at. Roblox enforces it the next time the player tries to join. A ban doesn't remove a player who is in a server right now; kick them as well if you need them out immediately.

### How verification works

Roblox can accept a ban request without applying it — for example when the key's permissions are wrong. So for every ban and unban Bloxlytics:

1. Records the action in the moderation log as **Awaiting confirmation**.
2. Sends the change to Roblox with the record's id as the idempotency key, so a retried request can't apply twice.
3. Reads the player's restriction back from Roblox.
4. Marks the record **Verified with Roblox** if the restriction now matches, or **Not applied** with the reason if it doesn't.

If the read-back doesn't match you get the error "Roblox accepted the request but the ban state didn't change. Check the key's user-restriction permission." If the key lacks the write scope altogether the request is refused before anything is sent: "The connected API key lacks universe.user-restriction:write, so bans must be issued in-game."

Bans and unbans are limited to 20 requests a minute.

### Ban limits

| Setting | Limit |
| --- | --- |
| Reason shown to the player | 1–400 characters |
| Private reason | Up to 1,000 characters |
| Duration | 60 seconds minimum, or permanent |
| Alternate accounts | Included unless **Don't ban alternate accounts** is on |

## Unban a player

When the player has a verified, active ban, the **Actions** menu shows **Unban player** instead. Confirm **Unban** in the "Unban …?" dialog. The ban is lifted in Roblox, read back the same way, and recorded as an unban.

## Kick or warn a player

**Kick player** and **Warn player** appear only while the player is online in a server whose bridge advertised that capability when it started. Bloxlytics doesn't guess: if the player is offline, or in a server without the bridge, the items aren't offered.

**1. Choose the action**

Open **Actions** and choose **Kick player** or **Warn player**.

**2. Write the message**

For a kick, write the **Reason shown to the player**; for a warning, the **Warning message**. Both are required and up to 300 characters.

**3. Send it**

Select **Kick** or **Warn**. The dialog switches to "Kick sent to the game server" (or "Warn sent…") with a live status, and says "Recorded in Bloxlytics and waiting for the game server to confirm" until the game answers.

The command goes to the server the player is in — never to another one. The bridge then:

- **Kick** calls `Player:Kick` with your message and reports `Kicked <name>`. The player can rejoin straight away; kicking isn't a ban.
- **Warn** calls your `OnWarn(player, message)` function and reports `Warned <name>`, or the error your function raised.

If the player has left, the bridge reports "Player is not in this server." and the action is marked **Not applied**. If no server picks the command up or answers in time it times out and is marked **Not applied** with "The game server didn't confirm the action." Kicks and warnings are limited to 30 a minute and also appear in the Macro Runner's command history.

> **Note:** Kicks and warnings run through the command bridge, so they stop working when the bridge is turned off in project settings ("The command bridge is disabled in project settings.").

## The Moderation tab

The **Moderation** tab on a player's profile has five sections.

### Ban status

Read live from Roblox each time you open the tab (it needs `universe.user-restriction:read`). An active ban shows **Banned** with its end time or "Permanent", "Verified with Roblox" and when, **Shown to player**, **Private reason**, **Started** and **Alternate accounts** ("Also banned" or "Not banned"). Otherwise you see **Not banned**.

If the key can't read bans you're told the ban state can't be verified here. If Roblox returns an error you see "Couldn't verify the ban status" with the message.

### Flags

Two flags a team member can switch on or off, each with an optional reason of up to 300 characters:

| Flag | Meaning |
| --- | --- |
| **Flagged** | Mark for attention by the moderation team. |
| **Under investigation** | An open investigation is in progress. |

Flags are set in Bloxlytics only. They don't affect the player in-game, and they show as banners on the player wherever they appear in Bloxlytics.

### Moderation history

Every action recorded for this player — ban, unban, kick, warning — with the reason, who issued it ("Issued by … in Bloxlytics"), when, the ban duration and expiry, the private reason, and its confirmation badge. Kicks and warnings link to their command execution id. Up to the 200 most recent are shown.

### Notes

Notes are private to your team, up to 4,000 characters each, and are listed newest first with their author. Anyone with `moderation.act` can add one with **Add note**. A note can be deleted by its author, or by an owner or admin; the deletion is recorded in the audit log, including the start of the note's text.

### Roblox restriction log

When Roblox has logged any ban changes for this player, they're listed here: banned or unbanned, when, the duration, the shown reason and who made the change — "By a game server script" or the Roblox user. This includes bans made in-game or on Creator Hub, which Bloxlytics didn't issue.

## Confirmation badges

| Badge | Meaning |
| --- | --- |
| **Verified with Roblox** | A ban or unban read back from Roblox and matched. |
| **Confirmed by game** | A kick or warning the game server reported as done. |
| **Awaiting confirmation** | Recorded in Bloxlytics; waiting for Roblox or the game server. |
| **Not applied** | Roblox or the game server refused, failed, or never answered. Hover for the detail. |
| **Unverified** | Recorded in Bloxlytics only. |
| **Roblox log**, **Reported by game** | Records whose source is Roblox's restriction log or the game's own moderation. |

## Banners

Banners are the labels shown next to a player's name in lists and on their profile. They only ever come from verified sources — nothing is inferred from usernames or display names:

| Banner | Source |
| --- | --- |
| **Banned** (with end time or "Permanent") | An active, unexpired ban in Bloxlytics' mirror of Roblox's user restrictions. |
| **Flagged**, **Under investigation** | Set by a named team member on the **Moderation** tab. |
| Your own labels, such as Moderator or VIP | A banner rule in the SDK configuration matched a property your game server reported, for example `Role = Moderator`. Matching ignores case. You can have up to 20 rules. |
| **Roblox account banned** | Roblox's public profile reports the account as banned across Roblox, not just in your experience. |

## Moderation log and bans

**Player Lookup** has two project-wide views for anyone with `moderation.view`.

### Moderation log

Every kick, warning, ban and unban issued from Bloxlytics, newest first (up to 200 rows). Search by user ID, username or reason, and filter by action (**Bans**, **Unbans**, **Kicks**, **Warnings**) and confirmation (**Confirmed / verified**, **Awaiting confirmation**, **Not applied**). Columns: time, action, player, moderator, reason, duration and confirmation. Select a row to open that player's **Moderation** tab.

### Bans

A searchable mirror of Roblox's user restrictions for the experience, including bans made outside Bloxlytics. It's refreshed by the scheduled Roblox sync (projects are re-synced when their last sync is more than 6 hours old), whenever you ban or unban, and whenever someone opens a player's **Moderation** tab. Search by user ID or reason; **Include lifted bans** also shows bans that were lifted or have expired. The list shows up to 500 records, with the shown reason, private reason, start, expiry and whether alts are included.

> **Info:** A sync imports up to 5,000 restrictions. If the experience has more, only the first 5,000 are synced and the sync reports it as partial. Without `universe.user-restriction:read` the list can't be kept in sync, and the tab tells you so.

## What isn't supported

- **Bans without Open Cloud.** Roblox's Ban API is only available through Open Cloud. Without a key that has the write scope, ban in-game or on Creator Hub; Bloxlytics will still show those bans if it can read restrictions.
- **Banning from specific places.** Bloxlytics applies experience-wide restrictions only.
- **Kicking offline players.** A kick needs a live server with the player in it; there's nothing to kick otherwise. Use a ban.
- **Warnings without `OnWarn`.** The bridge reports "Warnings aren't configured in this game (OnWarn)."

## Audit log

Every moderation action is also written to the [audit log](https://docs.bloxlytics.app/workspaces/audit-log): "Banned a player", "Unbanned a player", "Kicked a player", "Warned a player", "Added a moderation note", "Deleted a moderation note", "Flagged a player" and "Cleared a player flag". Bans record whether they were verified, the duration and the shown reason.
