# Information EL

Canonical: https://splugins.net/docs/executablelevers/information-el

# 📌 Information EL

## Description

ExecutableLevers adds small levers that run commands. You place one on any face of a block, at the exact point you aim at, and a right-click flips it. Turning it on runs one list of commands, turning it off runs another.

A lever is a switch for commands: open a door, start an event, give an effect, send a message. It is not a redstone part and gives no redstone signal.

It requires the free [SCore](https://splugins.net/plugins/score/free) library plugin, and Minecraft 1.19.4 or above. Players need no resource pack and no mod.

Video: https://www.youtube.com/embed/KhjHI2YC05A

## Support

#### Need help, report a bug or submit a suggestion? Something is not in the wiki or poorly explained ?

* Join the [Discord](https://discord.com/invite/TRmSwJaYNv)

## Get it

* [ExecutableLevers on SPlugins (official website)](https://splugins.net/plugins/executablelevers)
* It is included in the [subscription](https://splugins.net/subscription). There is no free version.

## How it works

1. `/el give 3` gives you three levers.
2. Right-click a block with the lever in your hand. It appears where you aim, on the top, the bottom or a side of the block, and you keep the item. Several levers fit on one block.
3. Sneak while looking at the lever, within 5 blocks: its editor opens.
4. Right-click the lever to flip it.

## The editor of a lever

Each placed lever has its own settings:

* **Scale**: the size of the lever. The default, `0.5`, is half a vanilla lever.
* **Glow when powered**: the lever glows while it is on.
* **Activators**: what the lever runs. A lever takes as many activators as you want.
* The red button removes the lever. The item is not given back.

## Activators

An activator is a trigger, some optional conditions, and the commands to run.

| Setting | Config key | What it is |
| --- | --- | --- |
| Trigger | `option` | `LEVER_ENABLE_POWER` (the lever turns on) or `LEVER_DISABLE_POWER` (it turns off) |
| Player commands | `playerCommands` | Run for the player who flipped the lever: the [player commands](/tools-for-all-plugins-score/custom-commands) of SCore |
| Block commands | `blockCommands` | Run on the block where the lever stands |
| Player conditions | `playerConditions` | See the [custom conditions](/tools-for-all-plugins-score/custom-conditions) |
| Block conditions | `blockConditions` | |
| World conditions | `worldConditions` | The weather and the time |
| Placeholder conditions | `placeholdersConditions` | Any PlaceholderAPI placeholder |
| Player cooldown | `cooldownFeatures` | A cooldown for each player, in seconds or in ticks |
| Global cooldown | `globalCooldownFeatures` | A cooldown for everyone |
| Silence output | `silenceOutput` | |

A line of a command list that is not one of the SCore commands is run by the console, as a normal server command.

## Commands and permissions

#### Give levers

* Command: **/el give \[amount]**
* The levers go to the player who types the command.
* Permission: `el.cmd.give`

#### Permissions

* `el.cmds`: every command
* `el.*`: every permission of ExecutableLevers

> **WARNING**
In the versions up to 2.26.11.28, the editor of a lever opens for any player who sneaks while looking at it. From the next release it needs the permission `el.editor` (given to operators by default).

## Good to know

* A lever gives no redstone signal. It only runs commands.
* Every player can flip a lever. Use a condition (a permission, a region) to choose who runs its commands.
* A lever has no cost and no use limit: conditions can check a level, experience or items, but they take nothing.
* A lever is not tied to its block: if the block is broken, the lever stays.
* The messages of the plugin are in English. The editor is translated in 13 languages.