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

# Commands

Commands and their permissions

## Sending themes and presets

{% hint style="info" %}
These are intended only for testing the themes and presets. Please use [conditions](/tooltips/configuration/preset/conditions.md) to display tooltips.
{% endhint %}

* `/tt sendtheme [player] [theme id] (optional text)`
  * permission: `tooltips.command.sendtheme`

* `/tt sendpreset [player] [preset id] (optional text)`
  * permission: `tooltips.command.sendpreset`

* Both allow optional text, which supports multiple lines using new lines "\n".&#x20;

* Text supports PAPI placeholders and local placeholders.

* If a preset already defines text, putting optional text in will override the preset text.

* Sending presets with a command **does not account for conditions**.

<div align="left"><figure><img src="https://2056457066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO0fJVi4OrBJoOYrP9n9t%2Fuploads%2FnlCD0Zfcribso64Vycwr%2Fimage.png?alt=media&amp;token=f6325d55-86a1-4a07-a1e5-db64167a8e82" alt="" width="462"><figcaption></figcaption></figure></div>

## Debugging presets

Your preset isn't showing and you're not sure why? This command should help! It checks all conditions one by one and tells you whether a tooltip would show or not.

* `/tt debug [preset] [player]`
  * permission: `tooltips.command.debug`

<div align="left"><figure><img src="https://2056457066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO0fJVi4OrBJoOYrP9n9t%2Fuploads%2FypfKLGo0gY3gQxYY22rK%2Fimage.png?alt=media&amp;token=1797caae-82fa-450c-bcab-6793f5a2f460" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://2056457066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO0fJVi4OrBJoOYrP9n9t%2Fuploads%2FsEcojuZ8JRhiG7AGUBNy%2Fimage.png?alt=media&amp;token=a3db9ddd-c59d-4ca3-b084-8d7998d43591" alt=""><figcaption></figcaption></figure></div>

## Evaluating conditions

{% hint style="info" %}
Read more about conditions [here](/tooltips/configuration/preset/conditions.md).
{% endhint %}

A useful tool when working on conditions, is to see if they work. This can be done using the eval command:

* `/tt eval [condition]`
  * permission: `tooltips.command.eval`

<div align="left"><figure><img src="https://2056457066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO0fJVi4OrBJoOYrP9n9t%2Fuploads%2FSXcvZBqGsH26kiw9eyIS%2Fimage.png?alt=media&amp;token=0b688e6a-909c-42d9-96b8-98cefc1d7fac" alt=""><figcaption></figcaption></figure></div>

## Reloading the plugin

Reloading the plugin will reload all themes, icons and presets and regenerate the required assets.

* `/tt reload`
  * permission: `tooltips.command.reload`

If you're using a plugin like Oraxen or ItemsAdder, remember to use their respective resource pack reload commands *after* using /tt reload; `/oraxen reload pack` and `/iazip`

{% hint style="info" %}
Haven't set up Nexo or ItemsAdder compatibility?

Head to [this page](/tooltips/start-here.md).
{% endhint %}

## Variable Commands

Execute a local variable command. The use of this is to allow outside modification of Tooltips variables.

* `/tt vars [`[`variable command`](/tooltips/configuration/preset/actions/commands.md#variables)`]`
  * permission: `tooltips.command.vars`

**Examples**

/tt vars setvar Septicuss meow true

/tt vars setpersistentvar player meow false (this will actually set it for the person executing the command)

/tt vars clearvars global

/tt vars savepersistentvars
