> For the complete documentation index, see [llms.txt](https://flintdl.gitbook.io/rastrum/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://flintdl.gitbook.io/rastrum/using-the-api/stop-and-check.md). Agents can also search and read this documentation through its [MCP server](https://flintdl.gitbook.io/rastrum/~gitbook/mcp).

# 7. Stop and check

## stop

```java
void stop(String mod, PlayerRef player)
```

Removes the trail **if your mod started it**. A trail the player chose, or one from another mod, stays.

## isGuiding

```java
boolean isGuiding(String mod, PlayerRef player)
```

`true` while the player follows a trail your mod started. It turns `false` when the player arrives, stops it, or picks another destination.

Use it to avoid stepping on the player: check before replacing what they are doing, or after a while to see if they got there.

```java
if (!RastrumApi.isGuiding("MyMod", player)) {
    // arrived, or chose something else
}
```

## available, version and VERSION

```java
static boolean available()
static int version()
static final int VERSION
```

`available()` is `true` from the moment Rastrum has started until it shuts down. `version()` is the API version on the server; `VERSION` is the one your mod compiled against (Java copies the number into your jar). If `version()` is higher than your `VERSION`, something changed in a way that may break your calls.
