# Features

### Configuration

Almost every single feature and message can be toggled/changed in the [config](config). Also, the messages in the config use [MiniMessage](https://docs.adventure.kyori.net/minimessage/format.html) formatting, which allows you to do stuff like this:

<figure><img src="https://i.imgur.com/4pK49Iy.png" alt=""><figcaption><p>&#x3C;yellow>Woo: &#x3C;rainbow>||||||||||||||||||||||||&#x3C;/rainbow>!</p></figcaption></figure>

### Complete Vanish

When players vanish, they are **completely** invisible, as if they are not even online.

### Vanish Priorities

Vanish priorities allow player with higher priorities to see vanished players from lower priorities, without the lower priority players being able to see them, while both of the players will still be vanished to normal players.

However, for this to work, you will need a permissions plugin (which most servers already have).

`<meta-key>`: `advancedvanish-priority` by default, but can be changed in the config.

`<priority-num>`: The priority number to assign to the group or player. A higher number has more priority over lower numbers. The same numbers will have the same priority.

<table><thead><tr><th width="374">Permissions Plugin</th><th width="374">Meta Command</th></tr></thead><tbody><tr><td>LuckPerms <strong>(recommended)</strong></td><td><code>/lp user/group &#x3C;user|group> meta set meta.&#x3C;meta-key> &#x3C;priority-num></code></td></tr><tr><td>bPermissions</td><td><code>(/user OR /group) meta &#x3C;meta-key> &#x3C;priority-num></code></td></tr><tr><td>GroupManager</td><td>Add the permission <code>&#x3C;meta-key>.&#x3C;priority-num></code>, and AdvancedVanish will use the highest number</td></tr></tbody></table>

### Hooks

AdvancedVanish has many hooks which provide support to other plugins.

| Plugin                             | Hook Functionality                                                       |
| ---------------------------------- | ------------------------------------------------------------------------ |
| Essentials                         | Hides vanished players from commands such as /list and /whois            |
| ProtocolLib (Server List hook)     | Removes vanished players from the server list (player count and players) |
| PlaceholderAPI (Placeholders hook) | Adds AdvancedVanish placeholders (which can be changed in the config)    |
| DiscordSRV                         | Sends a fake leave and join message when vanished/unvanished             |
| Dynmap                             | Hides vanished players from the map website                              |
| Squaremap                          | Hides vanished players from the map website                              |
| LibsDisguises                      | Removes disguises when vanished                                          |
| PlayerParticles                    | Removes active particles when vanished                                   |

### Commands

All of the permissions for the commands below can be changed in the config. The messages can also be configured if it is marked as configurable in the table.

<table><thead><tr><th width="206">Command</th><th width="385">Default Permission</th><th>Configurable</th></tr></thead><tbody><tr><td>/vanish</td><td><code>advancedvanish.vanish</code></td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>/vanish version</td><td><code>advancedvanish.version-command</code></td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>/vanish reload</td><td><code>advancedvanish.reload-config-command</code></td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>/vanish priority</td><td><code>advancedvanish.priority-command</code></td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>/vanish list</td><td><code>advancedvanish.list-command</code></td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>/vanish status &#x3C;player></td><td><code>advancedvanish.status-command</code></td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>/vanish set &#x3C;player> &#x3C;on/off></td><td><code>advancedvanish.set-other-command</code></td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>/vanish toggle &#x3C;player></td><td><code>advancedvanish.toggle-other-command</code></td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>/vanish interact</td><td><code>advancedvanish.interact-command</code></td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>/vanish help</td><td><code>advancedvanish.help-command</code></td><td><span data-gb-custom-inline data-tag="emoji" data-code="274c">❌</span></td></tr></tbody></table>

### Cross Server Vanish Synchronization

To use cross server vanish synchronization, you will need to enable the option in the config under `cross-server-support` and install either Redis ([Windows](https://github.com/tporadowski/redis/releases) / [Linux](https://www.ubuntupit.com/how-to-install-and-configure-redis-on-linux-system/)) or SQL ([Windows](https://dev.mysql.com/doc/refman/8.0/en/windows-installation.html) / [Linux](https://www.geeksforgeeks.org/how-to-install-mysql-on-linux/)).

{% tabs %}
{% tab title="Redis" %}
After you have installed Redis and have it running, enter your credentials in the `cross-server-support.redis` section of the config. If you do not use authentication (`requirepass <password>` in the Redis config) then leave it blank (`""`) in the AdvancedVanish config.

{% hint style="info" %}
If you are **not** using authentication, make sure your Redis server is behind a firewall so only local servers can access it
{% endhint %}
{% endtab %}

{% tab title="SQL" %}
After you have an SQL server running, enter your credentials in the `cross-server-support.sql` section of the config. If you do not have a database, make sure to create one. When you start the server or reload the plugin, AdvancedVanish will create the table automatically in the database that you put in the config.
{% endtab %}
{% endtabs %}

And that's all! Now your vanish state will be synced across all servers with AdvancedVanish and `cross-server-support` enabled.

{% hint style="info" %}
Make sure you enable `cross-server-support` on all the servers that you want it to work on.
{% endhint %}

### Other Features

There are many more features that are not listed here. If you would like to check them all out, please look at the [config](config).
