> ## Documentation Index
> Fetch the complete documentation index at: https://docs.melonly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Team Kicks

> Remove a player from Police, Sheriff, Fire or DOT in your ER:LC server for a set time, from the Mod Panel, in game or automatically.

***

## What is a Team Kick?

A team kick removes a player from the emergency team they're on (Police, Sheriff, Fire or DOT) for a set time. Melonly moves them to Civilian and keeps them off that team until the team kick runs out.

Civilian and Jail players can't be team kicked.

<Note>
  Team kicks require the ER:LC mod permission, the same as kicking a player. ER:LC admins, co-owners and administrators can use them too.
</Note>

***

## Team Kicking from the Mod Panel

Click a player in [Players In-Game](/Modpanel/erlc/players) to open their info card. Players on Police, Sheriff, Fire or DOT have an orange **Team kick** button next to **Kick** and **Ban**.

<Frame caption="Team kick button">
  <img className="block" src="https://mintcdn.com/melonly/xfZ47ImCBAJE4eSu/images/Mod-Panel/ERLC/teamkickbutton.png?fit=max&auto=format&n=xfZ47ImCBAJE4eSu&q=85&s=8b4869a99acb60228e7282d7f11914c7" alt="A DOT player's info card with the orange Team kick button next to Kick and Ban" style={{ borderRadius: '0.75rem' }} width="1918" height="989" data-path="images/Mod-Panel/ERLC/teamkickbutton.png" />
</Frame>

<Steps>
  <Step title="Click Team kick">
    Click the orange **Team kick** button on the player's info card.
  </Step>

  <Step title="Set a duration">
    Type how long the team kick lasts, such as `2d`.
  </Step>

  <Step title="Add a reason">
    Type a reason. This is required.
  </Step>

  <Step title="Confirm">
    Click **Kick from \[Team] team**.
  </Step>
</Steps>

<Frame caption="Team kick form">
  <img className="block" src="https://mintcdn.com/melonly/xfZ47ImCBAJE4eSu/images/Mod-Panel/ERLC/teamkickform.png?fit=max&auto=format&n=xfZ47ImCBAJE4eSu&q=85&s=e8e9f7319be5ca836ce113c994c85a0b" alt="The team kick form with a duration of 2d, a reason and the Kick from DOT team button" style={{ borderRadius: '0.75rem' }} width="1918" height="989" data-path="images/Mod-Panel/ERLC/teamkickform.png" />
</Frame>

***

## Team Kicking in Game

Run `:log teamkick` in your ER:LC server:

```
:log teamkick [username] [duration] [reason]
```

For example, `:log teamkick john 2d Reckless driving`.

| Part | Description |
| - | - |
| Username | The player's username or Roblox ID. You can type part of a username if it matches only one player in the server. |
| Duration | How long the team kick lasts, using `m`, `h`, `d` or `w`, such as `10m`, `1h`, `2d` or `1w`. Up to a year. |
| Reason | Why the player is being team kicked. Required. |

`:log teamkick` needs a [linked Roblox account](https://melonly.xyz/my/account) and your [ER:LC webhooks](/Dashboard/erlcintegration/webhook/webhookconfig) set up, like the other `:log` commands.

When it works, Melonly reacts to the command message in Discord with ✅ and sends you an in-game PM confirming it. If something's wrong, you get a Discord reply and an in-game PM explaining why, for example:

* The command format is wrong
* No single player matches the username
* The player isn't on Police, Sheriff, Fire or DOT
* You don't have permission, or your account isn't linked

***

## Automatic Team Kicks

Melonly can also team kick players on its own:

* [Team Jurisdictions](/Dashboard/erlcintegration/api/teamjurisdictions): set **Jurisdiction Enforcement Action** to **Team Kick User** to team kick players who stay outside their area.
* [Auto Arrest Protection](/Dashboard/erlcintegration/api/autoarrestprotection): set **Action** to **Team Kick Officer** to team kick officers who auto arrest.

Both have a **Team Kick Duration** setting that takes the same `m`, `h`, `d` or `w` format and defaults to 1 hour.

***

## What Happens to the Player?

1. Melonly makes the player wanted with `:wanted`, which moves them to Civilian.
2. The player gets an in-game PM with the team, duration and reason.
3. If they rejoin that team while the team kick is active, Melonly makes them wanted again within a few seconds and PMs them how much time is left.

The player can still join any other team. The team kick ends on its own when the duration runs out.

***

## Audit Logs

Every team kick from the Mod Panel or `:log teamkick` creates an **ER:LC Team Kick** entry in [Audit Logs](/Dashboard/auditlogs) with who issued it, the player, their Roblox ID, the duration and the reason. Choose **ER:LC Team Kick** under **Filter by Action** to see only team kicks.

<Frame caption="Filter by team kicks">
  <img className="block" src="https://mintcdn.com/melonly/V8U5MrhEtY-rb1DI/images/Dashboard/Auditlogs/teamkickfilter.png?fit=max&auto=format&n=V8U5MrhEtY-rb1DI&q=85&s=d773ad1eb3a901e031b81e95e9e9cd5c" alt="The Filter by Action dropdown on the Audit Logs page showing ER:LC Team Kick" style={{ borderRadius: '0.75rem' }} width="1904" height="938" data-path="images/Dashboard/Auditlogs/teamkickfilter.png" />
</Frame>

***

## Example Use Cases

* Take a reckless driver off DOT for the rest of the day
* Remove an officer from Police for a week after repeated FRP
* Team kick from in game without opening the Mod Panel
* Team kick officers who auto arrest or leave their jurisdiction

***

<Card title="Need help?" icon="headset" href="https://melonly.xyz/discord">
  Still have questions? Join our Discord server for support from the Melonly Team.
</Card>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.