# 🌉 The Bridge

## Information

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

<figure><img src="../.gitbook/assets/Addon%20Bridge.png" alt="" width="188"><figcaption><p>The Bridge Add-On</p></figcaption></figure>

:point\_right: [You can purchase this add-on on Phoenix Store](https://www.myphoenixstore.com/items/the-bridge-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 Bridge as a [gamemode rule](../main-features/create-a-mode/README.md#mode-rules) to the plugin, and generates the following file:

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

### Create a Gamemode

Create a gamemode dedicated for the Bridge Gamemode.

### Select Rule

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

### Create a Map

Create a map dedicated for the Bridge Gamemode.

### Whitelist Gamemode
Select the Bridge gamemode as the only allowed mode for that map, and you are all set!

## Scoring

Jumping into an enemy team's portal scores a goal and wins the round. Only one goal counts per round: anyone who reaches a portal after it, including a scorer still standing in the portal when the next round starts, is sent back to their spawn. Jumping into your own team's portal puts you back where you were, and no portal ever teleports a match player away.

## Score

Each team's score shows as one circle per round win the match needs, in the team's color for every round won and gray for the rest. With the [Best Of](../features/settings/match/#rounds-system) rounds system that is the wins needed, so a best of 5 shows three circles. A drawn round fills one circle for every team and adds one circle to the total, so a draw never shortens the row. The circle symbol and the score layout are in the translation file.

## Match Settings

The Bridge rule's settings let you configure:

* **Respawn Time** - how many seconds a player waits before respawning after falling or dying. Set to `0` to respawn immediately.
* **Cage** - toggles the cage that traps each player at their spawn point at the start of a round.
* **Spawn Protection Radius** - the radius, in blocks (X/Z only), around each spawn point where players cannot break or place blocks.

<figure><img src="../.gitbook/assets/add-ons/the-bridge/respawn-time.png" alt="" width="563"><figcaption><p>The Bridge Rule (Respawn Time)</p></figcaption></figure>

<figure><img src="../.gitbook/assets/add-ons/the-bridge/cage.png" alt="" width="563"><figcaption><p>The Bridge Rule (Cage)</p></figcaption></figure>

<figure><img src="../.gitbook/assets/add-ons/the-bridge/spawn-protection-radius.png" alt="" width="563"><figcaption><p>The Bridge Rule (Spawn Protection Radius)</p></figcaption></figure>

## Action Bar

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

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

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

## Placeholders
The Bridge add-on adds the following placeholders that you can use on the Scoreboard:

1. `%bridge_score%` - Returns the score of your team.
2. `%bridge_enemy_score%` - Returns the score of the enemy team.
3. `%bridge_team1_score%` through `%bridge_team4_score%` - Returns the score of that specific team slot, regardless of which team is viewing.

<figure><img src="../.gitbook/assets/add-ons/bridge/bridge_placeholders.png" alt="" width="188"><figcaption><p>Bridge Placeholder</p></figcaption></figure>

## PlaceholderAPI Placeholders

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

| Placeholders                       | Description                    |
| ------------------------------------ | --------------------------------- |
| %phoenixduels_bridge_team1_score%   | Returns the score of team 1.    |
| %phoenixduels_bridge_team2_score%   | Returns the score of team 2.    |
| %phoenixduels_bridge_team3_score%   | Returns the score of team 3.    |
| %phoenixduels_bridge_team4_score%   | Returns the score of team 4.    |

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