# Command

### 1. Station GUI Command

The `/mmoupgrade station <type> <file name>` command is used to open various interactive upgrade stations (GUIs) for players.\
Each GUI type corresponds to a different functionality and loads its configuration from the specified file inside the respective folder.

#### Command Syntax

```
/mmoupgrade station <type> <file name>
```

* `<type>`: The type of station to open (see supported types below)
* `<file name>`: The name of the config file (without `.yml`) stored in the relevant folder (e.g., `repair/<file name>.yml`)

***

#### Available Station Types

| Type           | Description                                                                                                          | Folder                 |
| -------------- | -------------------------------------------------------------------------------------------------------------------- | ---------------------- |
| `upgrade`      | Opens the **Upgrade Station GUI**, used to upgrade items using materials and success chances.                        | `station/upgrade`      |
| `gemaddsocket` | Opens the **Gem Socketing GUI**, used to add empty gem sockets to compatible items.                                  | `station/gemaddsocket` |
| `repair`       | Opens the **Repair Station GUI**, used to restore durability or condition of damaged items.                          | `station/repair`       |
| `merge`        | Opens the **Merge GUI**, allowing players to transfer stat items (like gems, materials, etc.).                       | `station/merge`        |
| `gemunsocket`  | Opens the **Gem Unsocket GUI**, which lets players safely remove gems from items.                                    | `station/gemunsocket`  |
| `gemadditem`   | Opens the **Gem-to-Item GUI**, used to socket gems directly into items.                                              | `station/gemadditem`   |
| `reroll`       | Opens the **Reroll Station GUI**, allowing item stats to be re-randomized.                                           | `station/reroll`       |
| `evolution`    | Opens the **Evolution GUI**, for upgrading items to new tiers or forms.                                              | `station/evolution`    |
| `process`      | **Opens the Process GUI**, used to break down an item into different components or convert it into other item types. | `station/process`      |
| `ability`      | Opens the **Ability Upgrade GUI**, for enhancing or unlocking item abilities.                                        | `station/ability`      |
| `identify`     | **Opens the Identification GUI**, used to reveal the hidden attributes or statistics of unidentified items.          | `station/identify`     |

***

#### 2. Admin Command

`/mmoupgrade admin reload` This command **reloads the plugin** if you've modified the plugin's configuration files.

***

#### 3. Database Command

`/mmoupgrade database reset` **This command resets the internal log database.**\
It is used when the logging system (`logs`) is enabled in the configuration.

#### When to Use

* To manually clear all stored log data from previous uses of Stations.
* To free up space or remove outdated player log entries.
* As an alternative to auto-reset via config (`logs.reset-logs`).

#### Important

* This command **cannot be undone**. Make sure to back up any important data before running it.
* It only works if logging is enabled (`logs.enable: true` in `config.yml`).
* All station logs (upgrade, repair, process, etc.) will be cleared from memory or file-based storage depending on your setup.

***
