# ⚔️ Commands

This section describes all commands available in **nwMMOUpgrade Premium**, including how to open station GUIs, reload the plugin, reset the database, and manually modify item stats.

***

## 🏛️ 1. Station GUI Command

The station command is used to open various interactive upgrade stations (GUIs) for players.

#### **Command Syntax**

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

#### **Arguments**

* **`<type>`** — The type of station to open
* **`<file name>`** — The name of the config file (without `.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 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`     |
| **updateitem**   | Opens the Update Item GUI, used to update and fix your item.                                            | `station/updateitem`   |
| **combine**      | Opens the Combine GUI, used for combining items into a new item.                                        | `station/combine`      |

***

## 🔧 2. Admin Command

#### Reload Plugin

```
/mmoupgrade admin reload
```

Reloads the plugin when configuration files have been modified.

***

## 🗄️ 3. Database Command

#### Reset Internal Log Database

```
/mmoupgrade database reset
```

Used when logging (`logs`) is enabled in the configuration.

#### **When to Use**

* Clear all stored log data from station usage
* Free up space or remove outdated logs
* Manual alternative to `logs.reset-logs`

#### ⚠️ Important

* **This action cannot be undone**
* Back up important data before running
* Works only when `logs.enable: true`
* Clears all station logs (upgrade, repair, process, etc.)

***

## 🧩 4. Command: Add / Remove Stats

Used to manually add or remove stats from an item in a specific equipment slot.

#### **Command Format**

```
/nwmmo item add/remove <stat> <slot/equipment> +-<value> <player>
```

#### Example

```
/nwmmoupgrade:mmo item add BLOCK_POWER mainhand -20 Ilikeursmile
```

This removes **20 BLOCK\_POWER** from the player's **main hand** item.

<figure><img src="https://1245303946-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEMKTTfYtO1c14jr3rkcH%2Fuploads%2FX9S8vvcPxUmbb3FP5iBD%2Fimage.png?alt=media&#x26;token=dc290b99-bb92-4a93-bf37-076a6eed493d" alt=""><figcaption></figcaption></figure>

***

## 🛠 5. Config Update System

A new **configuration update system** has been added to make upgrading much easier and safer.

When a new version of the plugin is released with **updated configuration files**, you no longer need to manually compare or recreate your configs.

#### ✨ How it works

You can now use the following command to automatically merge the new configuration with your existing one:

```yaml
/nwmmo config update
```

This command will:

* Detect changes from the latest plugin version
* Merge new configuration options into your current config
* Preserve your existing values whenever possible

#### ⚠ Important Note

> **Please review the changes carefully before applying the update.**

Although the system is designed to be safe, it is still recommended to:

* Make a backup of your configuration files
* Check the merged values to ensure they match your server setup

This feature helps keep your configuration **up to date**, **compatible**, and **future-proof** with minimal effort.
