# plugin_state
## Overview
MudBringer plugins have direct access to the `IMudClient` interface, which allows reading and modifying the state of the active script engine.
## Available Methods
- **GetVariable(string name)**: Returns the string value of a variable.
- **SetVariable(string name, string value)**: Creates or updates a variable.
- **GetList(string name)**: Returns a `List<string>` representing a MudList.
- **GetArray(string name)**: Returns a `MudArray` object for 2D data storage.
- **SetArrayValue(string name, int row, int col, string value)**: Sets a specific cell in an array.
## Examples:
```csharp
public override void Initialize()
{
    Client.RegisterPluginProcedure("checkList", arg => {
        var enemies = Client.GetList("enemies");
        if (enemies != null && enemies.Contains(arg)) return "1";
        return "0";
    });
}
```
