# Commands

## 📄 **Introduction**

In this section, you’ll find the list of commands available in **xWhitelist**. These commands allow you to manage the regular whitelist, the maintenance one and get information of the plugin. Below is a table with each command, an example of how to use it, and a brief description of its functionality.

## **⌨️ Management and information commands**

<table><thead><tr><th width="246">💬 Command</th><th>💡 Example</th><th>📄 Description</th></tr></thead><tbody><tr><td><strong>/xwhitelist help</strong></td><td><kbd>/xwhitelist help</kbd></td><td>Displays a list of all available commands in <strong>xWhitelist</strong>. Useful if you're unsure about the plugin’s functionalities.</td></tr><tr><td><strong>/xwhitelist reload</strong></td><td><kbd>/xwhitelist reload</kbd></td><td>Reloads the plugin’s configuration and settings.</td></tr><tr><td><strong>/xwhitelist info</strong></td><td><kbd>/xwhitelist info</kbd></td><td>Shows detailed information about the plugin, such as the version and author.</td></tr><tr><td><strong>/xwhitelist enable</strong></td><td><kbd>/xwhitelist enable</kbd></td><td>Enable the Whitelist if it's not enabled on the configuration file.</td></tr><tr><td><strong>/xwhitelist disable</strong></td><td><kbd>/xwhitelist disable</kbd></td><td>Disable the Whitelist if it's enabled on the configuration file.</td></tr><tr><td><strong>/xwhitelist add </strong><kbd><strong>&#x3C;player></strong></kbd></td><td><kbd>/xwhitelist add xDrygo</kbd></td><td>Adds a player to the whitelist.</td></tr><tr><td><strong>/xwhitelist remove </strong><kbd><strong>&#x3C;player></strong></kbd></td><td><kbd>/xwhitelist remove xDrygo</kbd></td><td>Removes a player from the whitelist.</td></tr><tr><td><strong>/xwhitelist list</strong></td><td><kbd>/xwhitelist list</kbd></td><td>Displays the list of players from the whitelist.</td></tr><tr><td><strong>/xwhitelist cleanup</strong></td><td><kbd>/xwhitelist cleanup</kbd></td><td>Cleans all players from the whitelist.</td></tr><tr><td><strong>/xwhitelist maintenance enable</strong></td><td><kbd>//xwhitelist maintenance enable</kbd></td><td>Enable the Maintenance Whitelist if it's not enabled on the maintenance whitelist configuration file.</td></tr><tr><td><strong>/xwhitelist maintenance disable</strong></td><td><kbd>x/xwhitelist maintenance disable</kbd></td><td>Disable the Maintenance Whitelist if it's enabled on the maintenance whitelist configuration file.</td></tr><tr><td><strong>/xwhitelist maintenance add &#x3C;player></strong></td><td><kbd>/xwhitelist maintenance add &#x3C;player></kbd></td><td>Adds a player to the Maintenance Whitelist.</td></tr><tr><td><strong>/xwhitelist maintenance remove &#x3C;player></strong></td><td><kbd>/xwhitelist maintenance remove &#x3C;player></kbd></td><td>Removes a player from the Maintenance Whitelist.</td></tr><tr><td><strong>/xwhitelist maintenance list</strong></td><td><kbd>/xwhitelist maintenance list</kbd></td><td>Displays the list of players from the Maintenance Whitelist.</td></tr><tr><td><strong>/xwhitelist maintenance cleanup</strong></td><td><kbd>/xwhitelist maintenance cleanup</kbd></td><td>Cleans all players from the Maintenance Whitelist.</td></tr></tbody></table>

***

## 📜 Explanation

* **General Use**: Most of the commands are self-explanatory and are designed to give administrators control over whitelisting within their server.
* **Whitelist management**: Use the commands `/xwhitelist add` and `/xwhitelist remove` to manage the players from the whitelists and clean all players with the command `/xwhitelist cleanup`.
* **Maintenance Whitelist management**: The `/xwhitelist maintenance add` and `/xwhitelist maintenance remove` are useful commands for manage the maintenance whitelist, like add players to this whitelist or also remove them.
* **Enable or Disable whitelists**: `Use /xwhitelist <enable/disable> & /xwhitelist maintenance <enable/disable>` to manage the status of the whitelist to let the players enter though they are not in the whitelists.
* **Get the list of players from the whitelists**: The `/xwhitelist list & /xwhitelist maintenance list` commands is a great command to get the list of players in the whitelist in-game without open the configuration files of your server.

