> 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/guide-a-player.md). Agents can also search and read this documentation through its [MCP server](https://flintdl.gitbook.io/rastrum/~gitbook/mcp).

# 6. Guide a player

```java
boolean guide(String mod, PlayerRef player, double x, double y, double z, String label)
```

| Parameter     |                                                               |
| ------------- | ------------------------------------------------------------- |
| `mod`         | your mod's name, 1 to 64 characters                           |
| `player`      | the player who will see the trail                             |
| `x`, `y`, `z` | the point, in the player's current world                      |
| `label`       | what the notice calls the point; `null` shows the coordinates |

What happens:

1. If the server has roads, Rastrum finds a way along them and tells the player the sparks go by the server road.
2. The trail starts at the player and ends at the point.
3. The player reads *"Follow the sparks to {label}."* in their language.
4. A companion, if the player has one, leads the way.
5. Close to the point, the trail ends and the player reads that they arrived.

If the player was following a group member, they stop following: otherwise the group trail would take over again.

```java
if (!RastrumApi.guide("MyMod", player, x, y, z, npcName)) {
    // not shown: tell the player in text
}
```

{% hint style="info" %}
Calling `guide` again with another point moves the trail. You do not need to `stop` first.
{% endhint %}
