# Automations and map rules

> Rules Jellyn keeps in your ER:LC server by itself. Safe zones, the area of play, team restrictions, AFK checks and more.

Automations watch your ER:LC server and act on what they see, so your staff don't have to. They are on the **Automations** page under ER:LC, and the map's rules are beside the map in the **Map** editor.

<Info>
  Jellyn checks the rules about once a minute. Commands it sends in game go out 5 seconds apart, as ER:LC asks. What happened is listed under each rule, kept for 30 days.
</Info>

## Safe zones

A kill where the killer or the victim is inside a **safe zone**:

1. warns the player first (set how many warnings; 0 acts at once),
2. then kicks or bans them,
3. and logs a punishment, if you ask it to.

It works all the time, session or not. The warning says *Stop killing people within a safezone. Next violation will be a {next}.*; write your own (up to 170 characters) with `{next}`, `{area}`, `{player}`, `{warning}` and `{warnings}`.

## Area of play

Only while a [session](/erlc/sessions) runs: a player outside the **area of play** for longer than you allow gets a warning a minute, then is respawned, made wanted or kicked. Moderators can be left alone.

## Team restrictions

For each team in game, who may be on it:

- a Discord account in your server,
- with <Badge color="grape">Jellyn+</Badge>, the roles they need,
- a message before they are taken off the team,
- and the fewest players before the rule applies.

## AFK checks

Off until you turn it on. Staff on shift who haven't moved or run a command for a while get an alert, then an escalation. With a private message that has `{{token}}` in it, they answer `:log CODE` in game to show they are there.

## More automations

| Automation | Does |
| --- | --- |
| **Rejoined after a kick** | Punishes a player who comes back after being kicked. Staff who may void punishments can let one player back in. |
| **BOLO player joined** | Acts when a player with an active BOLO joins; set it to ban to catch them at the door. |

## The map editor <Badge color="grape">Jellyn+</Badge>

**Map**, under ER:LC, is where management draws on the ER:LC map:

- **Areas of play**: where roleplay happens in a session.
- **Safe zones**: where killing is not allowed.

<Steps>
  <Step title="Make an area">
    Press **Create custom**: a new area with one rectangle. Give it a name and a colour.
  </Step>
  <Step title="Shape it">
    Drag a boundary to move it, and its corners to reshape it. **Add rectangle** and **Add polygon** add more boundaries (a polygon has 3 to 32 points). Corners snap to other corners and the map's edges; hold <kbd>Shift</kbd> to place them freely.
  </Step>
  <Step title="Save">
    Changes wait for the bar at the bottom: press **Save**.
  </Step>
</Steps>

- Up to 40 areas of each kind, 10 boundaries each.
- Near a polygon's edge a point appears: drag it to add a point. <kbd>Ctrl</kbd> and click a point removes it.
- **Open AOP image** gives the map with the area drawn on it and the rest darker, to download or share with players.
- The map is ER:LC's official one, for the season you pick (fall, snow, spring or summer), with postal codes when zoomed in.

Pick your usual area of play in the **Sessions** settings; staff can pick another when they start a session.
