# 🥊 Boxing

## Information

The Boxing add-on adds the well known Boxing gamemode to the plugin.

<figure><img src="../.gitbook/assets/Boxing.png" alt="" width="188"><figcaption><p>Boxing Add-On</p></figcaption></figure>

:point\_right: [You can purchase this add-on on Phoenix Store](https://www.myphoenixstore.com/items/boxing-addon)

### Installation <a href="#installation" id="installation"></a>

To install this add-on, simply drag and drop the jar file into the PhoenixDuels/addons folder, or include the add-on while using the bundle download option to download the plugin.

This add-on adds the Boxing as a [gamemode rule](../main-features/create-a-mode/README.md#mode-rules) to the plugin, and generates the following file:

* `PhoenixDuels/translations/boxing.translations.en.yml` - The translation file for the add-on.

### Create a Gamemode

Create a gamemode dedicated for the Boxing Gamemode.

### Select Rule

Select the Generated rule `Boxing` and any other rule you might want.

### Create a Map

Create a map dedicated for the Boxing Gamemode.

### Whitelist Gamemode

Select the Boxing gamemode as the only allowed mode for that map, and you are all set!

## Hits Goal

Change how many hits a team has to land to win. Hits are counted per team, so in a team match every teammate's hits add up, and the score starts again from 0 at the start of every round.

<figure><img src="../.gitbook/assets/add-ons/boxing/hits-goal.png" alt="" width="563"><figcaption><p>Boxing Rule (Hits Goal)</p></figcaption></figure>

## Action Bar

The Boxing rule can show an action bar with each team's punch score and the hits goal. Both the toggle and the message format (using `%teams%` and `%goal%`) are editable from the rule's settings.

<figure><img src="../.gitbook/assets/add-ons/boxing/action-bar.png" alt="" width="563"><figcaption><p>Boxing Rule (Action Bar)</p></figcaption></figure>

<figure><img src="../.gitbook/assets/add-ons/boxing/action-bar-format.png" alt="" width="563"><figcaption><p>Boxing Rule (Action Bar Format)</p></figcaption></figure>

## End-of-Match Broadcast

Unranked and challenge Boxing matches announce the result with the final hit score and the hit goal instead of the round score. Ranked matches keep the default broadcast with the Elo change. It reaches the whole server only when the mode has [Broadcast Results](../main-features/create-a-mode/#broadcast-results) enabled, otherwise just the match players.

The message has no editor option. Change it in the add-on's translation file:

```yaml
en:
  boxing:
    broadcast:
      - ""
      - "&#0a76d7⚔ &#2e8add%winner% &fout-boxed &c%loser% &7(&a%winner_hits% &8- &c%loser_hits%&7)"
      - "&#0a76d7☄ &fMode: &#2e8add%mode% &8┃ &#0a76d7✦ &fFirst to &#2e8add%goal% &fhits"
      - ""
```

## Falling Off

Players are eliminated the instant they fall below the arena's battle region, whether they were knocked off by an opponent or walked off on their own.
## Placeholders
The Boxing add-on adds the following placeholders that you can use on the Scoreboard:

1. `%boxing_team_score%` - Returns the score of your team.
2. `%boxing_enemy_score%` - Returns the score of the enemy team.

## PlaceholderAPI Placeholders

The following is the list of the available placeholders that Boxing has.

| Placeholders                       | Description                        |
| ----------------------------------- | ----------------------------------- |
| %phoenixduels_boxing_team1_score%   | Returns the punch score of team 1. |
| %phoenixduels_boxing_team2_score%   | Returns the punch score of team 2. |
| %phoenixduels_boxing_team3_score%   | Returns the punch score of team 3. |
| %phoenixduels_boxing_team4_score%   | Returns the punch score of team 4. |

Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/boxing