# Commands and Permissions

## Player commands

### <mark style="color:orange;">`/trade [targetName]`</mark>

Permission: <mark style="color:orange;">`redistrade.trade`</mark> (true by default)

You can start a trade with \[targetName]. If \[targetName] is omitted, you'll resume your currently pending trade

You can't have more than a trade running in parallel!\
If you want to start a new trade or accept a received trade, you must complete your previous one!

### <mark style="color:orange;">`/trade-ignore toggle [playerName]`</mark>

Permission: <mark style="color:orange;">`redistrade.ignore`</mark> (true by default)

This command allows you to ignore trade requests from a specific player. \
When this command is used, any trade invitations from the specified player will be \
**automatically declined** until it is toggled off

With <mark style="color:orange;">`/trade-ignore list`</mark> you can see all your ignored players

### <mark style="color:orange;">`/trade-browse [startTime] [endTime] [targetName]`</mark>

Permission: <mark style="color:orange;">`redistrade.browse`</mark>

This command allows you to view the history of trades within a specified date range

The `[startTime]` and `[endTime]` parameters determine the time period of the trades you want to browse. By default, the startDate is the timestamp from 24 hours ago, and endDate is the current time.

while the `[targetName]` parameter allows you to focus on trades involving a particular player. If no target name is provided, the command will display trades from the player that executed the command

#### <mark style="color:orange;">`/trade-rate set <tradeUUID> [rating]`</mark>

Reviews a trade. It works only if you were a participant in the trade

#### <mark style="color:orange;">`/trade-rate show-trade <tradeUUID>`</mark>

Shows the reviews from both sides of a trade

#### <mark style="color:orange;">`/trade-rate show-player <playerNameOrUUID>`</mark>

Shows the mean rating and reviews received by a player

## Permissions (not command-related)

<mark style="color:orange;">`redistrade.usecurrency.<currencyname>`</mark> - Allows players to use a currency during trade

## Admin commands

### <mark style="color:orange;">`/redistrade reload`</mark>

Permission: <mark style="color:orange;">`redistrade.reload`</mark>

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

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

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

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

Permissions: \
\- <mark style="color:orange;">`redistrade.spectate`</mark> to see the trade GUI\
\- <mark style="color:orange;">`redistrade.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;">`redistrade.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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://emibergo.gitbook.io/redistrade/basics/commands-and-permissions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
