> For the complete documentation index, see [llms.txt](https://sosparkly.gitbook.io/creativeplots/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sosparkly.gitbook.io/creativeplots/api-methods.md).

# API Methods

* These methods will work by simply adding the plugin directly as a dependency

<table><thead><tr><th width="381.15557861328125">Placeholder</th><th>Info</th></tr></thead><tbody><tr><td>CP.isInPlot(Location location)</td><td>Returns true if location is a plot.</td></tr><tr><td>CP.getPlotAt(Location location)</td><td>Returns plot id or null if plot at location.</td></tr><tr><td>CP.getPlotAt(String worldName, int x, int z)</td><td>Returns plot id or null if plot at coord location.</td></tr><tr><td>CP.canBuild(Player player, Location location)</td><td>Returns true if can build at location.</td></tr><tr><td>CP.canBuild(Player player, String worldName, int x, int z)</td><td>Returns true if can built at coord location.</td></tr><tr><td>CP.hasPlotFlag(String worldName, String plotId, String flag)</td><td>If plot has a certain flag by string.</td></tr><tr><td>CP.isPlotOwner(Player player, String worldName, String plotId)</td><td>Returns true if the player owns that plot id.</td></tr><tr><td>CP.getPlotOwner(String worldName, String plotId)</td><td>Returns the player name owner of plot.</td></tr><tr><td>onEnterPlot(PlayerEnterPlotEvent event)</td><td>Runs when you enter a plot.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sosparkly.gitbook.io/creativeplots/api-methods.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
