# 🎒 Win Items & Win Commands

## Physical Reward

A physical reward is one that hands the player real items. Those items are the **Win Items**, and a reward can hold as many of them as you want. By default every item in the list is given.

<figure><img src="../../.gitbook/assets/editor/reward/win-items.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure>

### Add Item

Items are added by dropping them into the menu, exactly as they should reach the player, enchantments and custom names included.

<figure><img src="../../.gitbook/assets/editor/edit-reward-items/add-item.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward > Win Items</p></figcaption></figure>

### Edit an Item

Each item already in the list can be edited or removed from the same menu, and right-clicking it hands you a copy of it.

<figure><img src="../../.gitbook/assets/editor/edit-reward-items/raw-iron.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward > Win Items</p></figcaption></figure>

> **Info:**
When a reward is created from an item, that same item is also added as a win item. If you only want it as the [display item](edit-reward.md#display-item), remove it from this list.

### Max Win Item Amount

This limits how many of the items are handed out per win, and the ones given are picked at random from the list. That turns a single reward into a small loot pool, for example five items configured with only two of them given each time. Set it to infinite to always give the whole list.

<figure><img src="../../.gitbook/assets/editor/edit-reward-items/max-win-item-amount.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward > Win Items</p></figcaption></figure>

## Virtual Reward

A virtual reward gives nothing physical. It has no win items at all, only **Win Commands**, so the reward is whatever those commands do: a balance, a rank, a permission, a kit from another plugin.

Set one up by removing every win item and adding the commands instead. The display item stays, so the reward still shows up in the preview like any other.

<figure><img src="../../.gitbook/assets/editor/reward/win-commands.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure>

### Add Command

When adding or editing a win-command, a dialog box will pop up asking you to type the command. On older server versions that don't support dialogs, it will fall back to the usual chat input.

<figure><img src="../../.gitbook/assets/editor/edit-reward-commands/add-command.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward > Win Commands</p></figcaption></figure>

### In-Game Example

Example of adding a reward that gives balance to the user.

<figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp82-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Giving Balance as a Reward</p></figcaption></figure>

### Max Win Command Amount

This works the same way as the item one: it caps how many commands of the list are executed per win, chosen at random, and infinite runs all of them.

<figure><img src="../../.gitbook/assets/editor/edit-reward-commands/max-win-command-amount.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward > Win Commands</p></figcaption></figure>

## Mixing Both

Nothing stops a reward from being both. A reward with win items and win commands gives the items and runs the commands on the same win, which is how a reward like a rank plus its physical kit is built.

Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/rewards/win-items-and-commands