# Admin Commands and Permissions

### <mark style="color:orange;">`/trade-spectate <playerName>`</mark>

Permissions:\
\- <mark style="color:orange;">`zeltrade.spectate`</mark> to see the trade GUI\
\- <mark style="color:orange;">`zeltrade.modify`</mark> to edit the trade

This command allows a player to spectate and optionally modify an active trade.

You can add or remove items from the GUI if you have <mark style="color:orange;">`zeltrade.modify`</mark>

When you edit currency amounts keep in mind that the money is being withdrawn from YOUR balance into the trade side, not the player's balance

### <mark style="color:orange;">`/zeltrade stresser`</mark>

Permission: <mark style="color:orange;">`zeltrade.stresser`</mark>

This command toggles a "lagger" task to make the main thread lag. This is only for testing purpose

### <mark style="color:orange;">`/zeltrade inspect`</mark>

Permission: <mark style="color:orange;">`zeltrade.inspect`</mark>

This command inspects the item you have in your main hand, exposing all the item components of it.\
This is mostly used to set up item blacklist entries since they are component-based

### <mark style="color:orange;">`/zeltrade opentrade <traderName> <customerName>`</mark>&#x20;

Permission: <mark style="color:orange;">`zeltrade.forceopen`</mark>

This command force-opens a trade for the player named \<traderName> with the \<customerName> player.\
It is like the first player has executed `/trade <customerName>` but it skips the "invitation" part

### <mark style="color:orange;">`/zeltrade wipearchives`</mark>&#x20;

Permission: <mark style="color:orange;">`zeltrade.wipearchives`</mark>

This command deletes all archived trades, this is useful if you want to relieve your database from all the archived trades

### <mark style="color:orange;">`/zeltrade closeallwindows`</mark>&#x20;

Permission: <mark style="color:orange;">`zeltrade.closeallwindows`</mark>

This command closes all opened windows for the players of the server

### <mark style="color:orange;">`/zeltrade setitem <itemField>`</mark> &#x20;

Permission: <mark style="color:orange;">`zeltrade.setitem`</mark>

More info -> [set-or-get-gui-items](https://emibergo.gitbook.io/zeltrade/advanced/set-or-get-gui-items "mention")

### <mark style="color:orange;">`/zeltrade getitem <itemField>`</mark>&#x20;

Permission: <mark style="color:orange;">`zeltrade.getitem`</mark>

More info -> [set-or-get-gui-items](https://emibergo.gitbook.io/zeltrade/advanced/set-or-get-gui-items "mention")
