# Phoenix Plugins documentation > Every page of the Phoenix Crates, Phoenix Duels, Phoenix Lobby and Phoenix Shop docs as plain markdown. Supported Minecraft versions: 1.20.4 – 26.3. Site map with product facts: https://www.phoenixplugins.com/llms.txt === # Phoenix Crates documentation > Premium crates plugin for Spigot, Paper and Folia with animated 3D crates, a full in-game editor and random or selective rewards. Docs: https://www.phoenixplugins.com/docs/phoenix-crates Supported Minecraft versions: 1.20.4 – 26.3 (Paper, Folia, Spigot) --- # 💎 Premium Add-ons ## Crate Claim Stores rewards and keys for players who are offline or have a full inventory, so nothing is ever lost. Players collect them with `/crate claim`. ## Mass Opening Lets players open several keys at once instead of one at a time, with configurable opening amounts per crate. ## Rarities Adds rarities that you can assign to rewards, each with its own display name, colour, and effects. ## Lootboxes Lets a crate be opened directly from a held item, without placing a crate block in the world. ## Last Winner Tracks the most recent winner of each crate and exposes them through placeholders. ## Redis Caches player data in Redis and keeps it in sync across a network of servers. ## Animations Extra opening animations that you can mix with the built-in ones. Available as the Deluxe, Halloween, and Christmas animation packs. # 🪨 Free Add-ons ## Leaderboard Adds placeholders for a top 10 ranking of players by how many crates they have opened. ## Reward Loop Gives a reward to every online player on a fixed timer, independent from crates and keys. ## IP Limit Limits mass key and reward giveaways to one player per IP address, so alt accounts cannot multiply them. Source: https://www.phoenixplugins.com/docs/phoenix-crates/addons --- # 🌠 Animations ## Animations Animation add-ons add extra opening animations on top of the ones built into the plugin. Each animation registers as an independent Pre Open (Phase 1), Post Open (Phase 2), or Reward Display (Phase 3) animation, so you can mix and match them freely with the built-in ones. They are installed like any other add-on, by dropping the JAR into the **PhoenixCrates/addons** folder. Once installed, the new animations show up in the editor under the crate's animations. ## Available Add-ons | Add-on | Animations | | ------ | ---------- | | [Deluxe Animations](deluxe-animations.md) | CSGO (Vertical), Black Hole, Orbit Roulette, Astro Burst | | [Halloween Crate Animations](halloween-crate-animations.md) | Bat, Witch, Skeleton, and Demon animations | | [Christmas Crate Animations](christmas-crate-animations.md) | Santa Claus, Bouncing Present, Tree, and matching phases | > **Info:** The Lootbox add-on also ships its own animations. You can find them on the [Lootbox](../lootbox/README.md#animations) page. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/animations --- # 🎅 Christmas Crate Animations > **Warning:** This is an addon for PhoenixCrates, not a plugin. ### Purchase Christmas Crate Animations from our [Website](https://www.myphoenixstore.com/en/items/christmas-crate-animations-v1) ## Installation To install the Christmas Crate animations, make sure to drag and drop the JAR file into the **PhoenixCrates/addons** folder. Be sure to install it there; otherwise, the file won't work.
Once you have installed the JAR successfully, head over to the editor and then to the animations. From there, you will be able to configure the animations for each crate. ### Customize: Every Christmas animation can be customized per crate. In the crate's opening animations, right-click the selected animation to open its settings. Depending on the animation you can change the items and head textures it uses, Santa's and the elf's outfit, sizes, colors, the melody and how many presents, ornaments or snowflakes it spawns. **Reset to Defaults** restores every setting of that animation. ### Animation List: Just like the plugin's built-in animations, each Christmas animation registers as an independent Pre Open (Phase 1), Post Open (Phase 2), or Reward Display (Phase 3) animation, so you can freely mix and match any phase 1 with any phase 2 and phase 3, not only the suggested combinations below. The following list shows the combinations they were designed around: ### Combination 1: **Phase 1**: Christmas Santa Claus **Phase 2:** Christmas Present Cannon **Phase 3:** Christmas Merry Cyclone ### Combination 2: **Phase 1**: Christmas Bouncing Present **Phase 2:** Christmas Magic Elf **Phase 3:** Christmas Snowfall ### Combination 3: **Phase 1**: Christmas Tree **Phase 2:** Christmas Flying Ornaments **Phase 3:** Christmas Essence Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/animations/christmas-crate-animations --- # 🪙 Deluxe Animations ## CSGO (Vertical) The **Vertical CSGO** animation will display a physical CSGO animation vertically, cycling through a few of the rewards in the crate until it stops on a single one. **Required Version:** 1.17+ **Customizable:** No **Material:** Gunpowder https://youtu.be/Zd6WLzsU7kI CSGO (Verical) Animation - In Game ## Black Hole The **Black Hole** animation summons a black hole when a crate is opened, which causes all nearby players to be pulled toward it, making it difficult for them to move away. Additionally, players within range will be affected by **potion effects** and **sounds** during the animation. **Required Version:** 1.17+ **Customizable:** No **Material:** Black Dye https://www.youtube.com/watch?v=vaUe-90dgkM Black Hole Animation - In Game > **Danger:** The Animation above doesn't support Bedrock users, since Bedrock doesn't support Player Heads. ## Orbit Roulette The **Orbit Roulette** animation summons items from the rewards table that rise from the ground and orbit around the crate. **Required Version:** 1.17+ **Customizable:** No **Material:** Gold Ingot https://www.youtube.com/watch?v=Isii-nTwKuM Orbit Roulette Animation - In Game ## Astro Burst The **Astro Burst** animation launches a burst of reward items from the crate into the air, similar to fireworks, before ending in an explosion effect that reveals the winning reward. **Required Version:** 1.17+ **Customizable:** No **Material:** Wind Charge https://www.youtube.com/watch?v=EQOkmosenQ0 Astro Burst Animation - In Game Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/animations/deluxe-animations --- # 🎃 Halloween Crate Animations > **Warning:** This is an addon for PhoenixCrates, not a plugin. ## Installation To install the **Halloween Crate Animations**, make sure to drag and drop the JAR file into the **PhoenixCrates/addons** folder. Be sure to install it there. Otherwise, the jar won't load. Once you have installed the JAR successfully, head over to the editor and then to the animations. From there, you will be able to configure the animations for each crate. Just like the plugin's built-in animations, each Halloween animation registers as an independent Pre Open (Phase 1), Post Open (Phase 2), or Reward Display (Phase 3) animation, so you can freely mix and match any phase 1 with any phase 2 and phase 3, not only the suggested combinations below. ## Customize Every Halloween animation can be customized per crate. In the crate's opening animations, right-click the selected animation to open its settings. Depending on the animation you can change the items and head textures it uses, its size, its colors and how many treats, bats, ghosts or orbs it spawns. **Reset to Defaults** restores every setting of that animation. ## Bat Crate: **Phase 1**: Bouncing Jack **Phase 2:** Bat Exodus **Phase 3:** Eerie Unveiling https://youtu.be/WQrTRHUKGSw Bat Animation Combination - In Game *** ## Witch Crate: **Phase 1**: Witch Brew Boom **Phase 2:** Pumpkin Glow **Phase 3:** Pumpkin Essence https://youtu.be/7lyaB7ereOY Witch Animation Combination - In Game *** ## Skeleton Crate: **Phase 1:** Haunting Vortex **Phase 2:** Spooky Ascension **Phase 3:** Dark Emanation https://youtu.be/mxq6IwD0ngs Skeleton Animation Combination - In Game *** ## Demon Crate: **Phase 1**: Cauldron Madness **Phase 2:** Ghost Rise **Phase 3:** Spectral Surge https://youtu.be/dPG7AUlWlHs Demon Animation Combination - In Game Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/animations/halloween-crate-animations --- # 🌐 API > **Danger:** The API is only available for the premium version of the plugin. ## API Below, you’ll find information about our API. If you have any questions, feel free to contact our team. * **Create Custom Animations** - [Click Here](custom-animations.md) Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/api --- # 🔧 Custom Animations > **Danger:** The API is only available for the premium version of the plugin. ``` public class YourPhaseAnimation extends OpeningPhaseAnimation { public YourPhaseAnimation(OpeningCrateAnimation animation, OpeningPhaseType type, EmptyOpeningPhaseData data) { super(animation, type, data); } @Override public void load() { } @Override public void tick() { } @Override public void unload() { } } ``` ``` public void onEnable() { registerPhase( new OpeningPhaseType(PhaseType.FIRST, "YOUR_PHASE_IDENTIFIER", "Your Display Name", XMaterial.STONE, ServerVersion.v1_16_R1, new XMaterial[] {}, EmptyOpeningPhaseData.class, (animation, type, data) -> new YourPhaseAnimationAnimation(animation, type, (EmptyOpeningPhaseData) data), () -> new EmptyOpeningPhaseData())); } public void onDisable() { for (final OpeningPhaseType type : this.registeredPhases) { OpeningPhaseType.unregisterPhase(type); } } private void registerPhase(OpeningPhaseType phase) { // Registering first phase animations OpeningPhaseType.registerPhase(phase); // Caching to unload later on this.registeredPhases.add(phase); } ``` Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/api/custom-animations --- # 📬 Crate Claim ## Information The Crate Claim add-on gives every player a personal claim storage, so rewards, keys and crates handed to them while they are offline or with a full inventory are never lost.

Crate Claim - Add-On

👉 [You can purchase this add-on on Phoenix Plugins](https://www.phoenixplugins.com/product/crate-claim-addon) ## Installation To install this add-on, you can either: - Drag and drop the jar file into the PhoenixCrates/addons folder, then restart your server. - Download the plugin with the add-on selected during the downloading. > **Warning:** The add-on requires the Premium edition. ## Claiming Every player gets their own storage that holds rewards, keys and lootboxes given to them while they were offline or out of inventory space. It holds an unlimited number of items, needs no permission, and players reach it with `/crate claim`.

/crate claim command

### What Changes Without It Crate Claim is what makes a full inventory harmless. Without the add-on installed: * A player whose inventory is full **cannot open a crate at all**. The interaction is refused with an "inventory is full" message and no key is taken. * Keys, crates and rewards given by command are dropped at the player's feet instead, with a message telling them so. * A physical key given to an offline player waits on the server and is given when they next join. With the add-on installed, all of these are stored for the player to collect later. The win commands of a reward won with a full inventory are stored too, as one entry showing the reward's display item. Claiming it runs the commands. ### Claim All With the claim-all feature, you can instantly claim all available rewards from the menu.

/crate claim command

### Bedrock Bedrock players get the claim menu as a [Bedrock form](../../configurations/geysermc-bedrock.md#bedrock-forms): Claim All first, then a button per stored item. Tapping one claims it. `/crate inspectClaim` always opens the chest menu. ## Settings The add-on adds its own entry to the editor settings, holding the three options below.

Editor

### Prioritize Inventory Hands items straight to the player and only falls back to the claim storage when there is not enough room, so an online player with space never has to run a command to collect anything. Turning it off routes everything through the claim menu instead. On by default.

Editor > Settings > Crate Claim

### Join Reminder Tells a player they have something waiting the moment they log in, which is what makes an offline delivery discoverable. On by default.

Editor > Settings > Crate Claim

### Automated Reminder How long between the repeat reminders sent to players who still have unclaimed items. Only players holding something are reminded, so raising it quietens the message on a busy server without switching it off.

Editor > Settings > Crate Claim

### Admin Commands * `/crate inspectClaim ` - Inspect another player's pending crate claims. Requires `phoenixcrates.command.inspectclaim`. * `/crate resetClaimsAll confirm` - Permanently clears every player's pending crate claims, online and offline. This action cannot be undone. Requires `phoenixcrates.command.resetclaims`. Without `confirm`, the command only shows a warning. The reset runs in the background with a progress bar in the action bar, or every 10% in the console, and it will not start while another task over every player's data is running. With the [Redis](../redis.md) add-on, it also clears the claims cached on the other servers of the network. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/crate-claim --- # 📥 Claiming ## Crate Claim Every player gets their own storage that holds rewards, keys and lootboxes given to them while they were offline or out of inventory space. It holds an unlimited number of items, needs no permission, and players reach it with `/crate claim`.

/crate claim command

## What Changes Without It Crate Claim is what makes a full inventory harmless. Without the add-on installed: * A player whose inventory is full **cannot open a crate at all**. The interaction is refused with an "inventory is full" message and no key is taken. * Keys, crates and rewards given by command are dropped at the player's feet instead, with a message telling them so. * A physical key given to an offline player is not delivered, since there is nowhere to hold it. With the add-on installed, all of these are stored for the player to collect later. The win commands of a reward won with a full inventory are stored too, as one entry showing the reward's display item. Claiming it runs the commands. ## Claim All With the claim-all feature, you can instantly claim all available rewards from the menu.

/crate claim command

Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/crate-claim/claiming --- # ⚙️ Settings ## Settings The add-on adds its own entry to the editor settings, holding the three options below.

Editor

### Prioritize Inventory Hands items straight to the player and only falls back to the claim storage when there is not enough room, so an online player with space never has to run a command to collect anything. Turning it off routes everything through the claim menu instead. On by default.

Editor > Settings > Crate Claim

### Join Reminder Tells a player they have something waiting the moment they log in, which is what makes an offline delivery discoverable. On by default.

Editor > Settings > Crate Claim

### Automated Reminder How long between the repeat reminders sent to players who still have unclaimed items. Only players holding something are reminded, so raising it quietens the message on a busy server without switching it off.

Editor > Settings > Crate Claim

## Admin Commands * `/crate inspectClaim ` - Inspect another player's pending crate claims. Requires `phoenixcrates.command.inspectclaim`. * `/crate resetClaimsAll confirm` - Permanently clears every player's pending crate claims, online and offline. This action cannot be undone. Requires `phoenixcrates.command.resetclaims`. Without `confirm`, the command only shows a warning. The reset runs in the background with a progress bar in the action bar, or every 10% in the console, and it will not start while another task over every player's data is running. With the [Redis](../redis.md) add-on, it also clears the claims cached on the other servers of the network. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/crate-claim/settings --- # 🆕 Custom Addons ## Custom Addons Custom Addons are extensions that allow users to extend, modify, or enhance the functionality of our plugin. Think of them as building blocks that enable you to tailor the behavior of the plugin, making it uniquely yours. ## Maven Dependency ```xml nexus https://repo.myphoenixstore.com/repository/maven-public/ ``` ```xml com.phoenixplugins.sdk api 1.0-SNAPSHOT ``` ### **Addon.yml File**: * To begin customizing your plugin experience, ensure you have an "addon.yml" file in the resources of your Java project. * Open the "addon.yml" file and configure it according to your addon's specifications. ``` name: AddonName main: your.path.AddonExample author: [YourName] version: 1.0 description: Small Description (Optional) website: Website (Optional) ``` The "addon.yml" file serves as the configuration hub for your Custom Addon, providing essential metadata such as the addon's name, main class path, author details, version, and optional description and website information. ### **Main Class**: * Ensure that the specified `main` class in the "addon.yml" file corresponds to the path of your addon class within your project. ```java package your.path; import java.io.IOException; import com.phoenixplugins.sdk.addons.Addon; public class AddonExample extends Addon { public AddonExample() { // Your code here } @Override public void onLoad() { // Your code here } @Override public void onEnable() { // Your code here } @Override public void onDisable() { // Your code here } @Override public String getRequiredPluginVersion() { return "2.1.4"; // Define the main required version } } ``` ### **Compile your Addon**: * Compile your Custom Addon following your Java project's build instructions. ### **Install your Addon**: * Move the compiled JAR file to the "addons" folder within the "PhoenixCrates" directory in your server plugins. * Restart the server to apply changes and activate your Custom Addon. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/custom-addons --- # 🌐 IP Limit ## Information The IP Limit add-on caps how many accounts sharing the same IP address can receive keys, crates and rewards that are handed out to everyone online at once, so alt accounts cannot multiply a giveaway.

IP Limit - Add-On

👉 [You can claim this add-on for free on Phoenix Plugins](https://www.phoenixplugins.com/product/iplimit) ## Installation To install this add-on, you can either: - Drag and drop the jar file into the PhoenixCrates/addons folder, then restart your server. - Download the plugin with the add-on selected during the downloading. > **Warning:** The add-on requires the Premium edition. ## Limits Everything the add-on does is reached from the IP Limit button in the main editor. Only actions that reward several players in one go are affected, so commands aimed at a single player are never filtered. A limit of `0` is shown as Unlimited and turns the cap off for that action alone.

Editor

### Enabled Switches the whole add-on off without uninstalling it. While it is off, every action reaches all online players regardless of the limits set below.

Editor > IP Limit

### Global Limits The default cap for each of the four actions that can reward everyone online. Keys and crates without an override of their own use these values.

Editor > IP Limit

#### Give Key All Caps how many accounts per IP receive a key from `/crates giveKeyAll`.

Editor > IP Limit > Global

#### Give Crate All Caps how many accounts per IP receive a crate from `/crates giveCrateAll`.

Editor > IP Limit > Global

#### Share With Players Online Caps how many accounts per IP receive a reward that has Share With Players Online turned on. The player who opened the crate is filtered like everyone else, so with a limit of `1` and two of their accounts online, the reward can land on the other account instead of theirs.

Editor > IP Limit > Global

#### Reward On Loop Caps how many accounts per IP receive a recurring reward from the [Reward On Loop](../reward-on-loop/) add-on. This one cannot be overridden per key or crate, since a loop reward belongs to neither.

Editor > IP Limit > Global

### Limit Per Key Lists every registered key so a single one can carry its own cap instead of the Give Key All value. Keys with no override of their own are listed as inherited.

Editor > IP Limit

### Limit Per Crate The same list for crates. A crate override replaces the Give Crate All value **and** the Share With Players Online value for that crate, so it covers both the giveaway command and rewards shared from inside it.

Editor > IP Limit

#### Limit The cap for this key or crate on its own. It opens showing the global value it currently inherits, and setting it here creates the override.

Editor > IP Limit > Crate

#### Use Global Limit Removes the override so the key or crate follows the global value again. This is not the same as setting the limit to `0`, which would make that one key or crate unlimited while the global cap stays in place.

Editor > IP Limit > Crate

> **Info:** Players whose IP address cannot be read are never filtered out, so a proxy setup that hides the real address leaves the limits with nothing to match on. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/ip-limit --- # 🚦 Limits ## IP Limit Everything the add-on does is reached from the IP Limit button in the main editor. Only actions that reward several players in one go are affected, so commands aimed at a single player are never filtered. A limit of `0` is shown as Unlimited and turns the cap off for that action alone.

Editor

## Enabled Switches the whole add-on off without uninstalling it. While it is off, every action reaches all online players regardless of the limits set below.

Editor > IP Limit

## Global Limits The default cap for each of the four actions that can reward everyone online. Keys and crates without an override of their own use these values.

Editor > IP Limit

### Give Key All Caps how many accounts per IP receive a key from `/crates giveKeyAll`.

Editor > IP Limit > Global

### Give Crate All Caps how many accounts per IP receive a crate from `/crates giveCrateAll`.

Editor > IP Limit > Global

### Share With Players Online Caps how many accounts per IP receive a reward that has Share With Players Online turned on. The player who opened the crate is filtered like everyone else, so with a limit of `1` and two of their accounts online, the reward can land on the other account instead of theirs.

Editor > IP Limit > Global

### Reward On Loop Caps how many accounts per IP receive a recurring reward from the [Reward On Loop](../reward-on-loop/) add-on. This one cannot be overridden per key or crate, since a loop reward belongs to neither.

Editor > IP Limit > Global

## Limit Per Key Lists every registered key so a single one can carry its own cap instead of the Give Key All value. Keys with no override of their own are listed as inherited.

Editor > IP Limit

## Limit Per Crate The same list for crates. A crate override replaces the Give Crate All value **and** the Share With Players Online value for that crate, so it covers both the giveaway command and rewards shared from inside it.

Editor > IP Limit

### Limit The cap for this key or crate on its own. It opens showing the global value it currently inherits, and setting it here creates the override.

Editor > IP Limit > Crate

### Use Global Limit Removes the override so the key or crate follows the global value again. This is not the same as setting the limit to `0`, which would make that one key or crate unlimited while the global cap stays in place.

Editor > IP Limit > Crate

> **Info:** Players whose IP address cannot be read are never filtered out, so a proxy setup that hides the real address leaves the limits with nothing to match on. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/ip-limit/limits --- # 🔑 Key Serialization ## Information The Key Serialization add-on stamps every physical crate key with a unique serial stored in the item's hidden data. Players never see it. Once a key opens a crate, its serial is spent, and any other copy carrying that serial is deleted the moment it is found. Duplication glitches, creative copies and NBT-edited keys stop being worth anything. Because every key is unique, serialized keys no longer stack. Giving 10 keys fills 10 slots, and anything that does not fit is dropped at the player's feet the same way a full inventory always is. 👉 [You can buy this add-on on Phoenix Plugins](https://www.phoenixplugins.com/product/key-serialization-addon) ## Installation To install this add-on, you can either: - Drag and drop the jar file into the PhoenixCrates/addons folder, then restart your server. - Download the plugin with the add-on selected during the downloading. > **Warning:** The add-on requires the Premium edition. Virtual keys are not affected, since they never exist as items. ## How It Works * **Giving keys.** Every physical key handed out by a command, a reward, a refund or an offline delivery gets a fresh serial, which is saved to the plugin's database. * **Opening a crate.** The serial of the key used is marked as spent before any reward is given. If that serial was already spent, for example by a copy used a moment earlier, the opening gives no rewards. * **Finding copies.** A copy whose serial is spent, revoked or was never handed out is removed when a player joins, clicks it, moves it, drags it, swaps it to the hotbar, drops it, picks it up, opens a chest holding it, or a hopper tries to move it. Two copies of the same serial found together, including a stack of two, are cut down to one. * **Old keys.** Keys given out before the add-on was installed get a serial the first time they show up in a player's inventory, so nothing a player already owns is lost. When a copy is removed, the player is told, staff with the alert permission get a message naming the player, the key, the serial and where it was found, the console logs it, and a Discord webhook can receive it as an embed. ## Networks On MySQL, MariaDB or PostgreSQL every server sharing the database also shares the serials. A key used on one server dies on all of them within the sync interval, and the database itself refuses to spend the same serial twice, so two servers can never both pay out for one key. On SQLite the serials stay on the one server. ## Commands | Command | Description | Permission | | --- | --- | --- | | `/crates serial check` | Shows the history of the key you are holding: who it was given to and when, and who used it, when and on which crate. | `phoenixcrates.command.serial` | | `/crates serial lookup ` | Shows the same history for any serial. | `phoenixcrates.command.serial` | | `/crates serial revoke ` | Spends a serial by hand, so every copy of that key is removed when found. | `phoenixcrates.command.serial` | Taking keys with `/crates takeKey` revokes their serials too, so copies of the taken keys die as well. ## Permissions | Permission | Description | | --- | --- | | `phoenixcrates.keyserialization.alerts` | Receive a message whenever a duplicated or invalid key is removed. | ## Settings > **Info:** The settings live in PhoenixCrates/key-serialization.yml. The switches, the checks and the Discord webhook can also be changed in game from Editor > Add-ons > Key Serialization. | Setting | Default | Description | | --- | --- | --- | | `enabled` | `true` | Turns every check off without uninstalling the add-on. | | `serialize-old-keys` | `true` | Gives a serial to keys handed out before the add-on was installed. | | `notify-player` | `true` | Tells a player when a duplicated key is removed from them. | | `alert-staff` | `true` | Sends removals to staff with the alert permission. | | `checks.containers` | `true` | Checks chests, barrels, shulker boxes and other containers when they are opened. | | `checks.hoppers` | `true` | Stops hoppers from picking up or moving dead copies. | | `checks.dropped-items` | `true` | Stops dead copies from appearing as dropped items. | | `checks.ender-chest-on-join` | `true` | Also checks the ender chest when a player joins. | | `discord.webhook-url` | empty | A Discord webhook that receives an embed for every key caught: the player, key, serial, where it was found, who it was given to and who used it first. Empty turns it off. | | `discord.username` | `PhoenixCrates` | The name the webhook posts under. | | `discord.server-name` | `Server` | Shown in the footer, so a network can tell its servers apart. | | `discord.color` | `12131840` | The embed color as a decimal number. | | `discord.batch-seconds` | `5` | Alerts are collected and posted together this often, up to 10 per message. | | `discord.per-minute` | `20` | The most messages posted in one minute. Alerts over the limit wait for the next slot. | | `discord.max-queued` | `200` | The most alerts kept waiting. Older ones are skipped beyond this, and the next message says how many. | | `performance.network-sync-interval-seconds` | `5` | How often a server reads serials used or given out on other servers. | | `performance.network-sync-clock-margin-seconds` | `30` | How far back each sync looks, to cover clocks that differ between servers. | | `performance.unknown-serial-recheck-seconds` | `10` | How long a serial the database does not know is given before it is treated as forged, so a key given out on another server a moment ago is never removed by mistake. | | `performance.dead-serial-cache-size` | `10000` | How many spent serials each server remembers before it has to ask the database again. | | `performance.lookup-batch-size` | `500` | How many serials are looked up in one database query. | | `performance.write-retry-seconds` | `30` | How long a database write is retried before giving up. | | `performance.key-material-refresh-seconds` | `30` | How often the add-on rereads which materials your keys use. | | `performance.join-scan-delay-ticks` | `40` | How long after joining the player's inventory is checked, so inventory sync plugins finish first. | > **Info:** Only items made of a material one of your keys uses are ever read, so the checks cost almost nothing for every other item. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/key-serialization --- # 🛒 Key Shop ## Information The Key Shop add-on lets players buy crate keys with a currency, and trade keys they already hold for a different kind of key. It gives a server a way to sell keys in game rather than only through a web store, and gives players something to do with the pile of common keys they never open. Prices are charged through the same cost engines a crate uses for its open cost, so an entry can be priced in Vault money, experience levels, PlayerPoints, VotingPlugin points, ExcellentEconomy or PhoenixCurrencies without any extra setup. ## Installation To install this add-on, you can either: - Drag and drop the jar file into the PhoenixCrates/addons folder, then restart your server. - Download the plugin with the add-on selected during the downloading. > **Warning:** The add-on requires the Premium edition. The currency plugin an entry is priced in has to be installed for that entry to be purchasable, but an entry priced at `0` needs nothing. ## Files | File | What it holds | | ---- | ------------- | | `PhoenixCrates/key-shop.yml` | The shop entries, the exchanges and the add-on setting. | | `PhoenixCrates/menus/default_key_shop.yml` | The layout of the shop menu. | | `PhoenixCrates/menus/default_key_exchange.yml` | The layout of the exchange menu. | | `PhoenixCrates/translations/keyshop.translations..yml` | The add-on messages. | Purchase counts are stored per player in the database, in the `player_keyshop_table` table. ## Commands * `/crate shop [player]` - Opens the key shop. Without an argument it opens for the sender. * `/crate exchange [player]` - Opens the key exchange. * `/crate resetKeyShop ` - Clears a player's purchase and trade counters, freeing every limit again. Requires `phoenixcrates.command.resetkeyshop`. ## Bedrock Bedrock players get the shop and the exchange as [Bedrock forms](../../configurations/geysermc-bedrock.md#bedrock-forms): a button per entry with its price, or what it trades. Tapping an entry buys or trades it right away, or asks first when purchase confirmation is on. An entry the player cannot use shows why. ## Permissions | Permission | What it allows | | ---------- | -------------- | | `phoenixcrates.command.resetkeyshop` | Resetting a player's shop limits. | Individual entries are gated with their own `permission` option rather than a permission node. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/key-shop --- # 🔄 Exchanges ## Exchanges An exchange trades a number of one key for a number of another. They live under `exchanges` in key-shop.yml and are shown in their own menu. ```yaml exchanges: '0': identifier: vote_to_legendary display-item: material: TRIPWIRE_HOOK display-name: '&6Upgrade to Legendary' amount: 1 from-key: vote from-amount: 10 to-key: legendary to-amount: 1 permission: '' daily-limit: -1 total-limit: -1 exchange-message: - '&aYou traded &fx%from_amount% %from_key% &afor &fx%to_amount% %to_key%&a.' ``` ## Options | Option | What it does | | ------ | ------------ | | `identifier` | The name the trade counters are stored under. | | `display-item` | The item shown in the exchange menu. | | `from-key` | The identifier of the key being spent. | | `from-amount` | How many of it one trade consumes. | | `to-key` | The identifier of the key being received. | | `to-amount` | How many of it one trade gives. | | `permission` | The player needs this to use the trade. Leave empty for everyone. | | `daily-limit` | Trades allowed per player per day, `-1` for unlimited. | | `total-limit` | Trades allowed per player for the lifetime of the exchange, `-1` for unlimited. | | `exchange-message` | Sent to the player after the trade. | ## Virtual and physical keys Both sides work with either kind of key. A virtual key is taken from the player's stored key count, and a physical key is taken from their inventory, including the off-hand slot. The key received is delivered the same way any other key is, so a physical key with a full inventory follows whatever the Crate Claim add-on is set to do. The menu only offers a trade the player can actually complete, so an entry greys out when they are short of the key it consumes. > **Warning:** An exchange pointing at a key identifier that no longer exists shows as unavailable and can never be used. Renaming a key means updating every exchange that references it. ## Message placeholders `exchange-message` accepts `%player%`, `%from_amount%`, `%from_key%`, `%to_amount%` and `%to_key%`. ## Menu placeholders The `exchange-item` and `unavailable-item` entries in menus/default\_key\_exchange.yml accept: | Placeholder | Value | | ----------- | ----- | | `%entry%` | The display name of the exchange. | | `%item_name%` | The name of the configured display item. | | `%from_key%` / `%from_amount%` | The key spent and how many. | | `%to_key%` / `%to_amount%` | The key received and how many. | | `%owned%` | How many of the spent key the player holds. | | `%remaining%` | Trades the player has left, or the "Unlimited" label. | Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/key-shop/exchanges --- # 📜 Placeholders ## PlaceholderAPI Placeholders | Placeholder | Description | | ----------- | ----------- | | %phoenixcrates_keyshop_price_\% | The price of a shop entry, formatted by its cost engine. | | %phoenixcrates_keyshop_remaining_\% | Purchases the player has left on that entry. | | %phoenixcrates_keyshop_exchanges_\% | Trades the player has left on that exchange. | ``` %phoenixcrates_keyshop_price_vote_key_single% %phoenixcrates_keyshop_remaining_vote_key_single% %phoenixcrates_keyshop_exchanges_vote_to_legendary% ``` An entry with no limit reports `∞`. An identifier that does not exist reports `N/A`, which is the usual sign of a typo. > **Info:** The price placeholder works from the console and in contexts with no player, since a price does not depend on who is asking. The other two need an online player and report `N/A` otherwise. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/key-shop/placeholders --- # 💰 Shop Entries ## Entries Every offer lives under `entries` in key-shop.yml. ```yaml confirm-purchases: false entries: '0': identifier: vote_key_single display-item: material: TRIPWIRE_HOOK display-name: '&aVote Key' amount: 1 key: vote amount: 1 cost-engine: VAULT currency: '' price: 2500.0 permission: '' daily-limit: 5 total-limit: -1 purchase-commands: [] purchase-message: - '&aYou bought &fx%amount% %key% &afor &f%price%&a.' ``` > **Info:** Entries are stored as a numbered section rather than a YAML list, the same shape the crate rewards use. The numbers are positions only and have to stay unique inside the section. ## Options | Option | What it does | | ------ | ------------ | | `identifier` | The name the purchase counters are stored under. Renaming it resets every player's limit on that entry. | | `display-item` | The item shown in the shop menu. | | `key` | The identifier of the key being sold. | | `amount` | How many keys one purchase gives. | | `cost-engine` | Which currency the price is charged in. | | `currency` | The currency id, used only by `EXCELLENTECONOMY` and `PHOENIXCURRENCIES`. Leave empty otherwise. | | `price` | What one purchase costs. A price of `0` is free and skips the currency check entirely. | | `permission` | The player needs this to buy the entry. Leave empty for everyone. | | `daily-limit` | Purchases allowed per player per day, `-1` for unlimited. | | `total-limit` | Purchases allowed per player for the lifetime of the entry, `-1` for unlimited. | | `purchase-commands` | Commands run by the console after a purchase. | | `purchase-message` | Sent to the buyer. | ## Cost engines | Engine | Requires | Notes | | ------ | -------- | ----- | | `NONE` | Nothing | The entry is free whatever `price` says. | | `LEVEL` | Nothing | Charges experience levels, whole numbers only. | | `VAULT` | Vault and an economy plugin | | | `PLAYERPOINTS` | PlayerPoints | Whole numbers only. | | `VOTINGPLUGIN` | VotingPlugin | Charges vote points, whole numbers only. | | `EXCELLENTECONOMY` | ExcellentEconomy | Set `currency` to the currency id. | | `PHOENIXCURRENCIES` | PhoenixCurrencies | Set `currency` to the currency id. | An entry whose engine is not installed shows as unavailable in the menu rather than failing on click. ## Limits The daily counter resets at midnight UTC, and it resets for a player who stays online across the boundary as well as one who logs in after it. Both limits apply at once, so an entry with a daily limit of `2` and a total limit of `10` allows two per day up to ten in total. `/crate resetKeyShop ` clears both counters for that player. ## Confirmation `confirm-purchases` at the top of the file turns every purchase into two clicks. The first click arms the entry and swaps its icon to the `confirm-item` layout, and a second click within five seconds completes the purchase. Anything else — waiting out the five seconds, or closing the menu — cancels it. > **Info:** The armed state lives with the open menu, so it is per player and disappears when they close the shop. ## Message placeholders `purchase-message` accepts `%player%`, `%amount%`, `%key%`, `%entry%` and `%price%`. `purchase-commands` accept `%player%` along with any PlaceholderAPI placeholder. ## Menu placeholders The `entry-item`, `confirm-item` and `unavailable-item` entries in menus/default\_key\_shop.yml accept: | Placeholder | Value | | ----------- | ----- | | `%entry%` | The display name of the entry. | | `%item_name%` | The name of the configured display item. | | `%key%` | The display name of the key being sold. | | `%amount%` | How many keys the purchase gives. | | `%price%` | The price, formatted by the cost engine. | | `%remaining%` | Purchases the player has left, or the "Unlimited" label. | Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/key-shop/shop-entries --- # 🏆 Last Winner ## Information The Last Winner add-on adds placeholders to PhoenixCrates. This add-on allows you to display the last winner of a crate in various places.

Last Winner - Add-On

👉 [You can purchase this add-on on Phoenix Plugins](https://www.phoenixplugins.com/product/last-winner-addon) ## Installation To install this add-on, you can either: - Drag and drop the jar file into the PhoenixCrates/addons folder, then restart your server. - Download the plugin with the add-on selected during the downloading. > **Warning:** The add-on requires the Premium edition, and PlaceholderAPI for the placeholders to resolve. ## Placeholders `` is `1` for the most recent winner, `2` for the second most recent, and so on. Up to the last **20** winners are kept per crate; requesting a position beyond that (or beyond the number of winners recorded so far) returns an empty value, as does a crate with no winners at all. `N/A` only shows for a moment while the winners of a crate are first being loaded. Crate identifiers containing underscores, such as `fire_crate`, work as written. | Placeholders | Description | |-------------------------------------------------------------|-----------------------------------------------------------| | %phoenixcrates_lastwinner_player\_\\_\% | Returns the player name on a specific position per crate. | | %phoenixcrates_lastwinner_reward\_\\_\% | Returns the reward on a specific position per crate. | | %phoenixcrates_lastwinner_rewardid\_\\_\% | Returns the reward's identifier on a specific position per crate. | | %phoenixcrates_lastwinner_hour\_\\_\% | Returns the hour that the player opened the crate. | | %phoenixcrates_lastwinner_minute\_\\_\% | Returns the minute that the player opened the crate. | | %phoenixcrates_lastwinner_second\_\\_\% | Returns the second that the player opened the crate. | | %phoenixcrates_lastwinner_day\_\\_\% | Returns the day that the player opened the crate. | | %phoenixcrates_lastwinner_month\_\\_\% | Returns the month that the player opened the crate. | | %phoenixcrates_lastwinner_year\_\\_\% | Returns the year that the player opened the crate. | Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/last-winner --- # Untitled ## PlaceholderAPI Placeholders The following is the list of the available placeholders that Last Winner has. `` is `1` for the most recent winner, `2` for the second most recent, and so on. Up to the last **20** winners are kept per crate; requesting a position beyond that (or beyond the number of winners recorded so far) returns an empty value. A crate with no winners recorded at all returns `N/A`. Crate identifiers containing underscores, such as `fire_crate`, work as written. | Placeholders | Description | |-------------------------------------------------------------|-----------------------------------------------------------| | %phoenixcrates_lastwinner_player\_\\_\% | Returns the player name on a specific position per crate. | | %phoenixcrates_lastwinner_reward\_\\_\% | Returns the reward on a specific position per crate. | | %phoenixcrates_lastwinner_rewardid\_\\_\% | Returns the reward's identifier on a specific position per crate. | | %phoenixcrates_lastwinner_hour\_\\_\% | Returns the hour that the player opened the crate. | | %phoenixcrates_lastwinner_minute\_\\_\% | Returns the minute that the player opened the crate. | | %phoenixcrates_lastwinner_second\_\\_\% | Returns the second that the player opened the crate. | | %phoenixcrates_lastwinner_day\_\\_\% | Returns the day that the player opened the crate. | | %phoenixcrates_lastwinner_month\_\\_\% | Returns the month that the player opened the crate. | | %phoenixcrates_lastwinner_year\_\\_\% | Returns the year that the player opened the crate. | Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/last-winner/placeholders --- # 🏆 Leaderboard ## Information The Leaderboard add-on adds placeholders to PhoenixCrates, ranking players by how many crates they have opened, per crate or across every crate.

Leaderboard - Add-On

👉 [You can claim this add-on for free on Phoenix Plugins](https://www.phoenixplugins.com/product/leaderboard) ## Installation To install this add-on, you can either: - Drag and drop the jar file into the PhoenixCrates/addons folder, then restart your server. - Download the plugin with the add-on selected during the downloading. > **Warning:** The add-on requires the Premium edition, and PlaceholderAPI for the placeholders to resolve. ## Placeholders The add-on ranks players by the number of crates they have opened, either for one crate or across every crate. It is entirely placeholder-driven, so there is no in-game menu. Only the top **10** are kept, and players who have never opened that crate are left out of the ranking entirely. Rankings are built in the background and refreshed at most once a minute each. Opening a crate marks that crate's ranking and the global one as outdated, and a ranking is also refreshed once it is 2 minutes old. The last ranking keeps being shown while the new one is built, so a busy server sees a win within about a minute without the placeholders going blank. ### PlaceholderAPI Placeholders | Placeholder | Description | | ----------- | ----------- | | %phoenixcrates_leaderboard_\_\% | The name of the player at that rank. | | %phoenixcrates_leaderboard_\_\_value% | The number of crates that player has opened. | Use `global` as the identifier to rank across every crate, or a crate's identifier to rank for that crate only. `` starts at 1. Crate identifiers containing underscores, such as `fire_crate`, work as written. **Example:** `%phoenixcrates_leaderboard_global_1%` returns the name of the player who has opened the most crates on your server. `N/A` is returned by a rank nobody occupies yet, by a crate identifier that does not exist, and by lookups made before that ranking has been built for the first time since the server started. > **Info:** `global` is reserved. A crate whose identifier is literally `global` cannot be queried through these placeholders, because the whole-server leaderboard is matched first. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/leaderboard --- # 📜 Placeholders ## Leaderboard The add-on ranks players by the number of crates they have opened, either for one crate or across every crate. It is entirely placeholder-driven, so there is no in-game menu. Only the top **10** are kept, and players who have never opened that crate are left out of the ranking entirely. A ranking is cached for 2 minutes, and opening a crate immediately invalidates both that crate's ranking and the global one, so a win is reflected on the next lookup rather than up to two minutes later. ## PlaceholderAPI Placeholders | Placeholder | Description | | ----------- | ----------- | | %phoenixcrates_leaderboard_\_\% | The name of the player at that rank. | | %phoenixcrates_leaderboard_\_\_value% | The number of crates that player has opened. | Use `global` as the identifier to rank across every crate, or a crate's identifier to rank for that crate only. `` starts at 1. Crate identifiers containing underscores, such as `fire_crate`, work as written. **Example:** `%phoenixcrates_leaderboard_global_1%` returns the name of the player who has opened the most crates on your server. `N/A` is returned by a rank nobody occupies yet, by a crate identifier that does not exist, and by the first lookup of a ranking that is not cached yet, since it is built in the background. Ask again once it has been computed. > **Info:** `global` is reserved. A crate whose identifier is literally `global` cannot be queried through these placeholders, because the whole-server leaderboard is matched first. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/leaderboard/placeholders --- # 🎁 Lootbox ## Information The Lootbox add-on lets a crate be opened straight from a held item, without placing a crate block in the world, and comes with its own set of animations.

Lootbox - Add-On

👉 [You can purchase this add-on on Phoenix Plugins](https://www.phoenixplugins.com/product/lootboxes) ## Installation To install this add-on, you can either: - Drag and drop the jar file into the PhoenixCrates/addons folder, then restart your server. - Download the plugin with the add-on selected during the downloading. > **Warning:** The add-on requires the Premium edition. ## Opening Formerly known as Pouches, a lootbox is a crate carried as an item and opened where the player stands. It is turned on per crate, so a server can mix lootbox crates and placed crates freely.

Editor > Crates > Crate

> **Info:** Turning Lootbox on for a crate also turns off that crate's Key Required setting, since a lootbox is paid for with the item itself rather than a key. ### Opening Behavior What a right-click does depends on the crate's rewards mode. * **Random** opens the crate on the spot and takes one item from the hand straight away. If the opening is cancelled, for example because Mass Opening takes over a crate with an open cost, the item stays in the hand. * **Selective (non RNG)** opens the reward menu first and only takes the item once a reward is confirmed. The item is looked for anywhere in the inventory at that moment, not just in the hand, and if none is left the claim is cancelled. A configured confirmation menu is shown before any of this, exactly as it would be for a placed crate. ### Placing a Lootbox A crate with a world animation phase needs a block for that animation to play on, so it cannot open in mid-air. The player right-clicks the ground to set the crate down, and it opens there on its own before disappearing again, which is what makes the world animation possible on a crate carried as an item. Right-clicking the air with one of these instead tells the player to place it on the ground. A lootbox can be placed from either hand, and the item is taken from the hand that placed it. > **Info:** Without a world animation phase, none of this applies. The crate opens directly from the hand wherever the player is standing. > **Info:** Holders of `phoenixcrates.admin` can sneak while placing a lootbox item to place it as an ordinary crate instead of opening it, which is how a lootbox crate is set up in the world without spending items. ### MythicItems Support With MythicItems installed, `pcrates:crate` gives a lootbox item as a mob drop, taking the crate identifier as its argument. `pcrates:pouch` is kept as an alias so older configurations keep working. The drop resolves to nothing at all if the crate does not exist, is disabled, or is not a lootbox, so a mistyped identifier is silently skipped rather than dropping a broken item. ## Animations Installing the add-on adds six animations to the lists every crate picks from. They are listed with a Lootbox Addon suffix so they are easy to spot, and they work on any crate, not only lootbox ones. | Animation | Phase | | --------- | ----- | | Eruption | Pre Open | | Pulse | Pre Open | | Arcane | Pre Open | | Vortex | Post Open | | Tornado | Post Open | | Treasure Cascade | Reward Display | Where each phase sits in an opening is covered on the [Opening Animations](../../main-features/animations/opening-animations/README.md) page. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/lootbox --- # 🎇 Animations ## Exclusive Animations Installing the add-on adds six animations to the lists every crate picks from. They are listed with a Lootbox Addon suffix so they are easy to spot, and they work on any crate, not only lootbox ones. | Animation | Phase | | --------- | ----- | | Eruption | Pre Open | | Pulse | Pre Open | | Arcane | Pre Open | | Vortex | Post Open | | Tornado | Post Open | | Treasure Cascade | Reward Display | Where each phase sits in an opening is covered on the [Opening Animations](../../main-features/animations/opening-animations/README.md) page. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/lootbox/animations --- # 🚢 Migrating from Pouches ## Migrating from Pouches Pouches were replaced by lootboxes. Any pouches left over from that version are converted on the first server start after the add-on is installed, with no command to run, and the number converted is written to the console. Each converted crate comes out configured the way a lootbox normally is, so Key Required and any linked keys are cleared rather than carried over. The migration runs once. The old folder is renamed afterwards so a later restart does not convert the same crates again, which also means putting files back into a fresh pouches folder is enough to migrate more of them later. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/lootbox/migration --- # 🖱️ Opening ## Lootbox Formerly known as Pouches, a lootbox is a crate carried as an item and opened where the player stands. It is turned on per crate, so a server can mix lootbox crates and placed crates freely.

Editor > Crates > Crate

> **Info:** Turning Lootbox on for a crate also turns off that crate's Key Required setting, since a lootbox is paid for with the item itself rather than a key. ## Opening Behavior What a right-click does depends on the crate's rewards mode. * **Random** opens the crate on the spot and takes one item from the hand straight away. * **Selective (non RNG)** opens the reward menu first and only takes the item once a reward is confirmed. The item is looked for anywhere in the inventory at that moment, not just in the hand, and if none is left the claim is cancelled. A configured confirmation menu is shown before any of this, exactly as it would be for a placed crate. ## Placing a Lootbox A crate with a world animation phase needs a block for that animation to play on, so it cannot open in mid-air. The player right-clicks the ground to set the crate down, and it opens there on its own before disappearing again, which is what makes the world animation possible on a crate carried as an item. Right-clicking the air with one of these instead tells the player to place it on the ground. > **Info:** Without a world animation phase, none of this applies. The crate opens directly from the hand wherever the player is standing. > **Info:** Holders of `phoenixcrates.admin` can sneak while placing a lootbox item to place it as an ordinary crate instead of opening it, which is how a lootbox crate is set up in the world without spending items. ## MythicItems Support With MythicItems installed, `pcrates:crate` gives a lootbox item as a mob drop, taking the crate identifier as its argument. `pcrates:pouch` is kept as an alias so older configurations keep working. The drop resolves to nothing at all if the crate does not exist, is disabled, or is not a lootbox, so a mistyped identifier is silently skipped rather than dropping a broken item. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/lootbox/opening --- # 🔐 Mass Opening ## Information The Mass Opening add-on lets players open many keys at once on a crate, instead of one opening at a time. On a keyless crate with an open cost, players pay for many openings at once instead.

Mass Opening - Add-On

👉 [You can purchase this add-on on Phoenix Plugins](https://www.phoenixplugins.com/product/mass-opening) ## Installation To install this add-on, you can either: - Drag and drop the jar file into the PhoenixCrates/addons folder, then restart your server. - Download the plugin with the add-on selected during the downloading. > **Warning:** The add-on requires the Premium edition. ## Crate Interaction When the player right-clicks to open the crate, they will see a menu displaying all available mass opening options. The red glass below an option indicates that the player either doesn't have permission to use that opening or doesn't have enough keys. **Menu:** `default_crate_mass_opening`

Crate Interaction

### Available Keys The available keys item will display the total number of keys you have for that crate, along with a list showing the amount of each individual key.

Crate Interaction

### Paying with Money A crate that needs no key and has an [Open Money Cost](../../main-features/crates/open-money-cost.md) uses the same menu, paid with money instead of keys. Every option shows its total cost, and an option turns red when the player cannot afford it. Choosing one opens a confirmation with the total before anything is charged, so ten openings of a $250 crate ask for $2,500 once and roll rewards ten times. The available keys item is hidden for these crates. Shift-right-click open-all opens as many as the player can afford, up to the open-all limit, or 100 when the limit is set to all. Only the Random rewards mode supports paid mass opening. ### Selective Mode On a crate using the Selective (non RNG) rewards mode, a player holding more than one key gets the [Mass Selection](#mass-selection) menu instead, where several rewards are picked and opened together. ### Reroll If the reroll feature is enabled along with mass opening, a different behavior occurs when using any opening option other than the single-key opening. Instead of receiving rewards individually, the player will see a menu displaying all the rewards they’ve won. They can click on any item to reroll it. Additionally, there's a Claim All Rewards option to collect everything at once. **Menu:** `default_crate_mass_reroll`

Crate Interaction

### Bedrock Bedrock players get the opening options and the reroll menu as [Bedrock forms](../../configurations/geysermc-bedrock.md#bedrock-forms). An option the player cannot use shows why under its button. In the reroll form, tapping a reward rerolls it, and closing the form claims everything. ## Mass Selection Mass selection is the Selective (non RNG) counterpart of the mass opening menu. Instead of spending one key on one reward at a time, the player picks several rewards, and how many of each, then receives all of them in a single opening. It takes over the normal select reward menu when the crate uses Selective mode, requires a key, has mass opening enabled, and the player owns more than one key. With a single key, the regular select reward menu is used instead. **Menu:** `default_crate_mass_selective` > **Info:** The opening amounts (x1, x6, x12...), the Open All option, the mass opening permissions and the global mass opening options only apply to crates in Random mode. On a selective crate the player's whole key balance is the selection limit. ### Selecting Rewards Left-clicking a reward adds one copy to the selection, right-clicking removes one. A selected reward is swapped for the selection material and stacked to the amount picked, so the count of every choice stays visible while browsing. The total number of selections is capped by the keys the player currently owns. Once the cap is reached, the remaining rewards gain an extra lore line and clicking them sends a message instead of selecting. Rewards the player cannot obtain at that moment, because of a missing permission, a reached win limit or a win cooldown, are shown as locked and cannot be selected. Disabled rewards and rewards past their time limit are not listed at all. ### Rarity Groups Rewards belonging to a rarity with [Group Rewards](../rarity/reward-rarity.md#reward-groups) enabled are collapsed into a single category icon. Clicking it opens the same menu filtered to that rarity, where the player selects normally, and closing it returns to the full list. Selections made inside a category are kept, so the cap and the confirm item always count every choice across all categories. ### Confirming The confirm item shows how many rewards are selected against the keys available. Confirming consumes the Required Keys of each selected reward and opens all of them in one crate opening, so two rewards costing 2 keys each use 4 keys. Rerolling is always skipped for a mass selection opening, even when reroll is enabled on the crate. Bedrock players pick their rewards with one slider per reward, rarity groups included, and submit to open them. Locked rewards are listed without a slider. ### Customization The menu has its own items and options on top of the usual settings, pagination and items: | Option | Description | | ----------------------- | --------------------------------------------------------------------------------- | | Confirm | The item that validates the selection and opens the crate. | | Reward Item | Name and lore applied on top of each selectable reward. | | Locked Reward Item | Name and lore used for rewards the player cannot obtain. | | Selected Material | The material a reward is replaced with once selected. | | Sounds | The sounds played when selecting, unselecting, and when an action is not allowed. | | Max Selections Lore | Extra lore added to the rewards that can no longer be selected. | | Max Selections Message | The message sent when clicking a reward past the selection cap. | The following placeholders are available in this menu: | Placeholder | Description | | -------------------- | -------------------------------------------------- | | `%total_selections%` | Total amount of rewards currently selected. | | `%used_keys%` | Keys the current selection costs. | | `%available_keys%` | Amount of keys the player owns for that crate. | | `%required_keys%` | Keys one of that reward costs. | | `%selected_amount%` | Amount selected of that specific reward. | | `%reward_name%` | Display name of the reward. | | `%reward_lore%` | Lore of the reward. | ## Settings With mass opening, players are able to open many keys simultaneously and obtain rewards. It is turned on per crate through its own menu, and starts out disabled.

Editor > Crates > Crate

### Opening Settings There are six opening options, all configurable except the single-key one, defaulting to x1, x6, x12, x32, x64 and x100. The largest can also be set to consume every key the player holds. Each option can be turned off on its own, and the amounts have to stay in ascending order, so an option can never be raised past the next one. Disabling every option turns mass opening off for that crate. > **Info:** The Open All maximum cannot be set below the highest opening option. Lowering it past that value snaps it back up, which can look like the setting is not saving. Lower the option above it first. The opening options apply to crates in Random mode. A selective crate uses the [Mass Selection](#mass-selection) menu instead, where the key balance is the only limit.

Editor > Crates > Crate > Mass Opening

### Global Settings These apply to every crate at once rather than to one crate, and all three only affect crates in Random mode. They sit under the add-on's own entry in the editor settings.

Editor

#### Skip Single Key Menu Sends a player straight into the opening when they only hold one key, since a menu offering a single choice has nothing to decide. On by default.

Editor > Settings > Mass Opening

#### Shift Right-Click Open All Gives players a shortcut past the menu entirely, spending every key they hold in one interaction. On a [paid crate](#paying-with-money) it opens as many as the player can afford instead, after a confirmation. Off by default, and it still respects the Open All permission.

Editor > Settings > Mass Opening

#### Toggle Mass Opening Menu Suppresses the mass opening menu on every crate in Random mode, including crates paid with money, so interacting opens one at a time as though the add-on were not installed. Useful for turning mass opening off server-wide without touching each crate. > **Info:** This toggle does not reach crates in Selective mode. A player holding more than one key still gets the [Mass Selection](#mass-selection) menu there.

Editor > Settings > Mass Opening

## Permissions Each opening option above the first is gated separately, so a server can sell larger openings by rank. An option the player has no permission for is shown greyed out rather than hidden. | Permission | Description | | -------------------------- | ----------------------------------------------- | | phoenixcrates.massopen.1 | Gives access to the 2nd opening of a crate | | phoenixcrates.massopen.2 | Gives access to the 3rd opening of a crate | | phoenixcrates.massopen.3 | Gives access to the 4th opening of a crate | | phoenixcrates.massopen.4 | Gives access to the 5th opening of a crate | | phoenixcrates.massopen.all | Gives access to the Open All opening of a crate | | phoenixcrates.massopen.\* | Gives access to all the openings | Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/mass-opening --- # 👆 Crate Interaction ## Crate Interaction When the player right-clicks to open the crate, they will see a menu displaying all available mass opening options. The red glass below an option indicates that the player either doesn't have permission to use that opening or doesn't have enough keys. **Menu:** `default_crate_mass_opening`

Crate Interaction

## Available Keys The available keys item will display the total number of keys you have for that crate, along with a list showing the amount of each individual key.

Crate Interaction

## Paying with Money A crate that needs no key and has an [Open Money Cost](../../main-features/crates/open-money-cost.md) uses the same menu, paid with money instead of keys. Every option shows its total cost, and an option turns red when the player cannot afford it. Choosing one opens a confirmation with the total before anything is charged, so ten openings of a $250 crate ask for $2,500 once and roll rewards ten times. The available keys item is hidden for these crates. Shift-right-click open-all opens as many as the player can afford, up to the open-all limit, or 100 when the limit is set to all. Only the Random rewards mode supports paid mass opening. ## Selective Mode On a crate using the Selective (non RNG) rewards mode, a player holding more than one key gets the [Mass Selection](mass-selection.md) menu instead, where several rewards are picked and opened together. ## Reroll If the reroll feature is enabled along with mass opening, a different behavior occurs when using any opening option other than the single-key opening. Instead of receiving rewards individually, the player will see a menu displaying all the rewards they’ve won. They can click on any item to reroll it. Additionally, there's a Claim All Rewards option to collect everything at once. **Menu:** `default_crate_mass_reroll`

Crate Interaction

Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/mass-opening/crate-interaction --- # 🧺 Mass Selection ## Mass Selection Mass selection is the Selective (non RNG) counterpart of the mass opening menu. Instead of spending one key on one reward at a time, the player picks several rewards, and how many of each, then receives all of them in a single opening. It takes over the normal select reward menu when the crate uses Selective mode, requires a key, has mass opening enabled, and the player owns more than one key. With a single key, the regular select reward menu is used instead. **Menu:** `default_crate_mass_selective` > **Info:** The opening amounts (x1, x6, x12...), the Open All option, the mass opening permissions and the global mass opening options only apply to crates in Random mode. On a selective crate the player's whole key balance is the selection limit. ## Selecting Rewards Left-clicking a reward adds one copy to the selection, right-clicking removes one. A selected reward is swapped for the selection material and stacked to the amount picked, so the count of every choice stays visible while browsing. The total number of selections is capped by the keys the player currently owns. Once the cap is reached, the remaining rewards gain an extra lore line and clicking them sends a message instead of selecting. Rewards the player cannot obtain at that moment, because of a missing permission, a reached win limit or a win cooldown, are shown as locked and cannot be selected. Disabled rewards and rewards past their time limit are not listed at all. ## Rarity Groups Rewards belonging to a rarity with [Group Rewards](../rarity/reward-groups.md) enabled are collapsed into a single category icon. Clicking it opens the same menu filtered to that rarity, where the player selects normally, and closing it returns to the full list. Selections made inside a category are kept, so the cap and the confirm item always count every choice across all categories. ## Confirming The confirm item shows how many rewards are selected against the keys available. Confirming consumes one key per selected reward and opens all of them in one crate opening. The Required Keys value of a reward, or of its rarity, is not applied here: every selection costs exactly one key. Rerolling is always skipped for a mass selection opening, even when reroll is enabled on the crate. ## Customization The menu has its own items and options on top of the usual settings, pagination and items: | Option | Description | | ----------------------- | --------------------------------------------------------------------------------- | | Confirm | The item that validates the selection and opens the crate. | | Reward Item | Name and lore applied on top of each selectable reward. | | Locked Reward Item | Name and lore used for rewards the player cannot obtain. | | Selected Material | The material a reward is replaced with once selected. | | Sounds | The sounds played when selecting, unselecting, and when an action is not allowed. | | Max Selections Lore | Extra lore added to the rewards that can no longer be selected. | | Max Selections Message | The message sent when clicking a reward past the selection cap. | The following placeholders are available in this menu: | Placeholder | Description | | -------------------- | -------------------------------------------------- | | `%total_selections%` | Total amount of rewards currently selected. | | `%available_keys%` | Amount of keys the player owns for that crate. | | `%selected_amount%` | Amount selected of that specific reward. | | `%reward_name%` | Display name of the reward. | | `%reward_lore%` | Lore of the reward. | Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/mass-opening/mass-selection --- # 🔒 Permissions ## Permissions Each opening option above the first is gated separately, so a server can sell larger openings by rank. An option the player has no permission for is shown greyed out rather than hidden. | Permission | Description | | -------------------------- | ----------------------------------------------- | | phoenixcrates.massopen.1 | Gives access to the 2nd opening of a crate | | phoenixcrates.massopen.2 | Gives access to the 3rd opening of a crate | | phoenixcrates.massopen.3 | Gives access to the 4th opening of a crate | | phoenixcrates.massopen.4 | Gives access to the 5th opening of a crate | | phoenixcrates.massopen.all | Gives access to the Open All opening of a crate | | phoenixcrates.massopen.\* | Gives access to all the openings | Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/mass-opening/permissions --- # ⚙️ Settings ## Mass Opening With mass opening, players are able to open many keys simultaneously and obtain rewards. It is turned on per crate through its own menu, and starts out disabled.

Editor > Crates > Crate

## Opening Settings There are six opening options, all configurable except the single-key one, defaulting to x1, x6, x12, x32, x64 and x100. The largest can also be set to consume every key the player holds. Each option can be turned off on its own, and the amounts have to stay in ascending order, so an option can never be raised past the next one. Disabling every option turns mass opening off for that crate. > **Info:** The Open All maximum cannot be set below the highest opening option. Lowering it past that value snaps it back up, which can look like the setting is not saving. Lower the option above it first. The opening options apply to crates in Random mode. A selective crate uses the [Mass Selection](mass-selection.md) menu instead, where the key balance is the only limit.

Editor > Crates > Crate > Mass Opening

## Global Settings These apply to every crate at once rather than to one crate, and all three only affect crates in Random mode. They sit under the add-on's own entry in the editor settings.

Editor

### Skip Single Key Menu Sends a player straight into the opening when they only hold one key, since a menu offering a single choice has nothing to decide. On by default.

Editor > Settings > Mass Opening

### Shift Right-Click Open All Gives players a shortcut past the menu entirely, spending every key they hold in one interaction. On a [paid crate](crate-interaction.md#paying-with-money) it opens as many as the player can afford instead, after a confirmation. Off by default, and it still respects the Open All permission.

Editor > Settings > Mass Opening

### Toggle Mass Opening Menu Suppresses the menu for every crate, so interacting opens one key at a time as though the add-on were not installed. Useful for turning mass opening off server-wide without touching each crate.

Editor > Settings > Mass Opening

Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/mass-opening/settings --- # 🏅 Milestones ## Information The Milestones add-on rewards a player for the number of crates they have opened, turning a long grind into a set of visible goals. A milestone can watch one crate or every crate at once, and its reward can be handed over automatically or left in a menu for the player to claim. Progress is read from the openings the plugin already records on each player, so installing the add-on does not reset or re-count anything. A player who has already opened 400 crates arrives with that progress intact. ## Installation To install this add-on, you can either: - Drag and drop the jar file into the PhoenixCrates/addons folder, then restart your server. - Download the plugin with the add-on selected during the downloading. > **Warning:** The add-on requires the Premium edition. PlaceholderAPI is only needed for the progress placeholders, the milestones themselves work without it. ## Files | File | What it holds | | ---- | ------------- | | `PhoenixCrates/milestones.yml` | The milestone tiers and the two add-on settings. | | `PhoenixCrates/menus/default_crate_milestones.yml` | The layout of the milestones menu. | | `PhoenixCrates/translations/milestones.translations..yml` | The add-on messages. | The claimed tiers are stored per player in the database, in the `player_milestones_table` table, so they follow the player across every server sharing that database. ## Bedrock Bedrock players get the milestones menu as a [Bedrock form](../../configurations/geysermc-bedrock.md#bedrock-forms): a button per tier with its progress. Tapping an unlocked tier claims it, any other tier shows its description. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/milestones --- # 🎯 Milestones ## Tiers Every tier lives under `milestones` in milestones.yml. A tier is unlocked once the player's opening count on its track reaches `required-openings`. ```yaml milestones: '0': identifier: first_steps display-item: material: DIAMOND display-name: '&aFirst Steps' amount: 1 crate: '*' required-openings: 10 win-items: {} win-commands: - 'crate giveKey vote %player% 3' win-message: - '&aYou reached the &f%milestone%&a milestone!' broadcast-message: - '&e%player% &areached the &f%milestone%&a milestone!' required-permissions: [] auto-claim: false broadcast: false max-win-item-amount: -1 max-win-command-amount: -1 ``` > **Info:** Tiers are stored as a numbered section rather than a YAML list, which is the same shape the crate rewards use. The numbers are positions only, so they have to stay unique inside the section, and reordering them changes the order shown in the menu but nothing else. ## Options | Option | What it does | | ------ | ------------ | | `identifier` | The name the tier is stored under. Renaming it makes every player able to claim the tier again, so treat it as permanent. | | `display-item` | The item shown in the milestones menu. | | `crate` | Which openings are counted. A crate identifier counts only that crate; `*` counts every crate together. | | `required-openings` | How many openings unlock the tier. | | `win-items` | Items handed to the player. | | `win-commands` | Commands run when the tier is claimed. Prefix a command with `*` to run it as the player instead of the console. | | `win-message` | Sent to the player who claimed the tier. | | `broadcast-message` | Sent to every online player, only when `broadcast` is on. | | `required-permissions` | The player needs at least one of these to see or claim the tier. Leave empty for everyone. | | `auto-claim` | Hands the reward over the moment the tier unlocks instead of waiting for a click. | | `broadcast` | Announces the tier to the whole server. | | `max-win-item-amount` | How many of the win items are given, `-1` for all of them. | | `max-win-command-amount` | How many of the win commands are run, `-1` for all of them. | ## Tracks Tiers are grouped by the crate they watch, and each group runs its own ladder. A tier on `vote` and a tier on `*` are on separate ladders, so a player can be part way through both at once. The menu lists every tier in ascending order of `required-openings`, whichever track it belongs to. > **Info:** `crate` is matched against the crate identifier, not its display name. A tier pointing at a crate that no longer exists simply never unlocks. ## Message placeholders `win-message` and `broadcast-message` accept: | Placeholder | Value | | ----------- | ----- | | `%player%` | The player who claimed the tier. | | `%milestone%` | The display name of the tier. | | `%openings%` | The tier's `required-openings`. | ## Menu placeholders The `locked-milestone`, `claimable-milestone` and `claimed-milestone` entries in menus/default\_crate\_milestones.yml accept: | Placeholder | Value | | ----------- | ----- | | `%milestone%` | The display name of the tier. | | `%item_name%` | The name of the configured display item. | | `%progress%` | Openings on this track, capped at the requirement. | | `%total_progress%` | Openings on this track, uncapped. | | `%required%` | Openings needed to unlock the tier. | | `%percent%` | Progress as a whole number out of 100. | | `%crate%` | The crate identifier, or the "Any Crate" label for a `*` tier. | Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/milestones/milestones --- # 📜 Placeholders ## PlaceholderAPI Placeholders | Placeholder | Description | | ----------- | ----------- | | %phoenixcrates_milestones_claimed% | How many tiers the player has claimed. | | %phoenixcrates_milestones_pending% | How many unlocked tiers are waiting to be claimed. | | %phoenixcrates_milestones_progress_\% | The player's openings on that track. | | %phoenixcrates_milestones_next_\% | The display name of the next unclaimed tier on that track. | | %phoenixcrates_milestones_remaining_\% | Openings still needed to unlock that tier. | The three track placeholders take a crate identifier. Use `*` to read the "any crate" track. ``` %phoenixcrates_milestones_next_vote% %phoenixcrates_milestones_remaining_*% ``` A track whose tiers have all been claimed reports `-` for `next` and `0` for `remaining`, so a scoreboard line can be left in place once a player finishes the ladder. > **Info:** A player whose crate data has not finished loading reports `N/A` rather than a wrong number. Seeing it briefly on login is expected. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/milestones/placeholders --- # ⚙️ Settings ## Settings Both settings sit at the top of milestones.yml. ### claim-retroactively Decides what happens to the tiers a player had already passed before the add-on was installed. On by default, those tiers are offered as normal, which is what you want on a new setup. Turned off, the tiers a player has already passed are written off once, silently, the first time their milestones are evaluated. Only the tiers they cross from that point on pay out. This is the setting to use when adding milestones to an established server, where the default would hand a veteran player every tier at once. > **Warning:** The write-off happens per player and cannot be undone by turning the setting back on. Decide before the add-on goes live on a server with existing players. ### notify-on-join Tells a player shortly after they log in how many rewards are waiting to be claimed. Only players with something pending are messaged. On by default. ## Commands * `/crate milestones [player]` - Opens the milestones menu. Without an argument it opens for the sender. * `/crate resetMilestones ` - Clears the tiers a player has claimed, letting them claim every unlocked tier again. Requires `phoenixcrates.command.resetmilestones`. ## Permissions | Permission | What it allows | | ---------- | -------------- | | `phoenixcrates.command.resetmilestones` | Resetting a player's claimed milestones. | Individual tiers are gated with their own `required-permissions` list rather than a permission node, so a rank-only milestone is configured on the tier itself. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/milestones/settings --- # 💍 Rarity ## Information The Rarity add-on adds categories to PhoenixCrates. Rarities are attached to rewards to synchronize their drop rates, or to keys to guarantee a reward of a specific rarity.

Rarities - Add-On

👉 [You can purchase this add-on on Phoenix Plugins](https://www.phoenixplugins.com/product/rarities-addon) ## Installation To install this add-on, you can either: - Drag and drop the jar file into the PhoenixCrates/addons folder, then restart your server. - Download the plugin with the add-on selected during the downloading. > **Warning:** The add-on requires the Premium edition. ## Rarities ### Create a Rarity Rarities have their own category in the editor, where they are created and managed. Clicking the stained glass adds a new one.

Editor > Rarities

Every rarity already created is listed there with its identifier, and opening one leads to its own settings.

Editor > Rarities

A rarity is attached to rewards on [Reward Rarity](reward-rarity.md) and to keys with [Guarantee Rarity Reward](../../main-features/keys/README.md#guarantee-rarity-reward). ## Edit Rarity ### Identifier With this option, you can set an identifier for the rarity. Note that the rarity identifier is unique and used internally by the plugin, and its different from the display name.

Editor > Rarities > Rarity

> **Danger:** If the identifier is changed, all rarities associated with the rewards/keys will no longer work. ### Display Name With this option, you can adjust the display name of the rarity. The display name is typically shown in the reward/key lore. For the display name, you can use the default Minecraft color codes. For hex colors, use the \&#D6D045 format.

Editor > Rarities > Rarity

### Enabled With this option, you can disable the rarity. It stays attached to its rewards and keys, but those rewards can no longer be won and their lore shows Not set in place of the rarity name.

Editor > Rarities > Rarity

### Group Rewards With this option, every reward carrying this rarity is collapsed into a single category icon in the rewards preview, the select reward menu and the mass selection menu, instead of being listed one by one. The category and the item representing it are covered in [Reward Groups](reward-rarity.md#reward-groups).

Editor > Rarities > Rarity

### Delete Rarity This option allows you to permanently delete a rarity. Note that selecting it will first open a confirmation menu before the rarity is deleted. Additionally, the rarity will still be attached to a reward/key.

Editor > Rarities > Rarity

> **Danger:** This option is permanent, and rewards can't be restored. ## Misc Options ### Rarity Weight With this, you can set a weight value for the rarity (default `100`). Every reward attached to that rarity has its own individual chance weight multiplied by `rarity weight / 100` before the crate's normal chance calculation runs, so a higher rarity weight makes every reward under it proportionally more likely to be picked, and a lower weight makes them rarer, without having to edit each reward's chance individually. It is not a percentage and does not reserve a share of the draw.

Editor > Rarities > Rarity

> **Info:** If a rarity is disabled, every reward attached to it becomes impossible to win (effective weight `0`) until the rarity is re-enabled. ### Required Keys With this, you can set how many keys are required to redeem a reward of this rarity when the crate uses the Selective (non RNG) rewards mode (default `1`). Once a rarity is assigned to a reward, this value overrides that reward's own individual Required Keys setting.

Editor > Rarities > Rarity

### Opening Animation With this, you can pick a second phase animation for the rarity. When the reward drawn from a crate has this rarity, its animation plays instead of the crate's own second phase. Leaving it on Crate Default keeps the crate's animation.

Rarity (Opening Animation)

The override only applies when the rarity's animation runs in the same place as the crate's: a GUI animation can replace a GUI one and a world animation a world one. Otherwise the crate's animation plays. When one opening draws several rewards, the first one decides. Only GUI animations and world animations without settings of their own can be picked. ### Win Actions With this, you can set actions that run when a reward of this rarity is won, such as a sound or a broadcast for a legendary drop. They replace the crate's and the global On Win actions, and a reward with its own win actions still uses those instead. The placeholders and how one opening with several rewards is handled are covered in [Event Actions](../../main-features/crates/README.md#event-actions).

Rarity (Win Actions)

Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/rarity --- # 🎟️ Edit Rarity ## Identifier With this option, you can set an identifier for the rarity. Note that the rarity identifier is unique and used internally by the plugin, and its different from the display name.

Editor > Rarities > Rarity

> **Danger:** If the identifier is changed, all rarities associated with the rewards/keys will no longer work. ## Display Name With this option, you can adjust the display name of the rarity. The display name is typically shown in the reward/key lore. For the display name, you can use the default Minecraft color codes. For hex colors, use the \&#D6D045 format.

Editor > Rarities > Rarity

## Enabled With this option, you can disable the rarity. The rarity will remain to the key and rewards, but only as a display name for their lore.

Editor > Rarities > Rarity

## Group Rewards With this option, every reward carrying this rarity is collapsed into a single category icon in the rewards preview, the select reward menu and the mass selection menu, instead of being listed one by one. The category and the item representing it are covered in [Reward Groups](reward-groups.md).

Editor > Rarities > Rarity

## Delete Rarity This option allows you to permanently delete a rarity. Note that selecting it will first open a confirmation menu before the key is deleted. Additionally, the rarity will still be attached to a reward/key.

Editor > Rarities > Rarity

> **Danger:** This option is permanent, and rewards can't be restored. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/rarity/edit-rarity --- # 📈 Misc Options ## Rarity Weight With this, you can set a weight value for the rarity (default `100`). Every reward attached to that rarity has its own individual chance weight multiplied by `rarity weight / 100` before the crate's normal chance calculation runs, so a higher rarity weight makes every reward under it proportionally more likely to be picked, and a lower weight makes them rarer, without having to edit each reward's chance individually. It is not a percentage and does not reserve a share of the draw.

Editor > Rarities > Rarity

> **Info:** If a rarity is disabled, every reward attached to it becomes impossible to win (effective weight `0`) until the rarity is re-enabled. ## Required Keys With this, you can set how many keys are required to redeem a reward of this rarity when the crate uses the Selective (non RNG) rewards mode (default `1`). Once a rarity is assigned to a reward, this value overrides that reward's own individual Required Keys setting.

Editor > Rarities > Rarity

## Opening Animation With this, you can pick a second phase animation for the rarity. When the reward drawn from a crate has this rarity, its animation plays instead of the crate's own second phase. Leaving it on Crate Default keeps the crate's animation.

Rarity (Opening Animation)

The override only applies when the rarity's animation runs in the same place as the crate's: a GUI animation can replace a GUI one and a world animation a world one. Otherwise the crate's animation plays. When one opening draws several rewards, the first one decides. Only GUI animations and world animations without settings of their own can be picked. ## Win Actions With this, you can set actions that run when a reward of this rarity is won, such as a sound or a broadcast for a legendary drop. They replace the crate's and the global On Win actions, and a reward with its own win actions still uses those instead. The placeholders and how one opening with several rewards is handled are covered in [Event Actions](../../main-features/crates/misc-options.md#event-actions).

Rarity (Win Actions)

Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/rarity/misc-options --- # 💍 Rarities ## Create a Rarity Rarities have their own category in the editor, where they are created and managed. Clicking the stained glass adds a new one.

Editor > Rarities

Every rarity already created is listed there with its identifier, and opening one leads to its own settings.

Editor > Rarities

## Navigation From here, you can quickly navigate to a specific feature related to rarities. | Feature | Description | | ------------------------------------------------------------------------------------- | --------------------------------------- | | [Identifier](edit-rarity.md#identifier) | Set a unique ID for your rarity. | | [Display Name](edit-rarity.md#display-name) | Change the display name for the rarity. | | [Weight](misc-options.md#rarity-weight) | Set the chance weight for the rarity. | | [Required Keys](misc-options.md#required-keys) | Set how many keys are needed to redeem a reward of this rarity in Selective mode. | | [Opening Animation](misc-options.md#opening-animation) | Play a different second phase animation for this rarity. | | [Win Actions](misc-options.md#win-actions) | Run actions when a reward of this rarity is won. | | [Enabled](edit-rarity.md#enabled) | Swap the status of the rarity. | | [Group Rewards](edit-rarity.md#group-rewards) | Collapse every reward of this rarity into one category. | | [Display Item](reward-groups.md#display-item) | Customize the item representing the category. | | [Preview Menu](reward-groups.md#preview-menu) | Override the menu used when previewing a category. | | [Delete Rarity](edit-rarity.md#delete-rarity) | Quick delete the rarity. | | [Reward Rarity](reward-rarity.md) | Assign a Rarity to a Reward. | | [Key Rarity](../../main-features/keys/edit-key.md#guarantee-rarity-reward) | Assign a Rarity to a Key. | Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/rarity/rarities --- # 🗂️ Reward Groups ## Reward Groups A rarity with [Group Rewards](edit-rarity.md#group-rewards) enabled collapses every reward carrying it into one category icon instead of listing them one by one. Players open the category to browse or pick from it, which keeps crates with a long reward list readable. Rewards without a grouped rarity keep their own slot and are listed after the categories. A rarity that is disabled never groups, its rewards go back to being listed individually.

Editor > Crates > Crate > Rewards

Opening a category lists the rewards it holds, each one editable from there like any other reward.

Editor > Crates > Crate > Rewards > Category

## Where Groups Appear | Menu | Behaviour | | ------------------------------------------------------------------- | ------------------------------------------------------------------ | | Rewards Preview | The category opens a preview filtered to that rarity. | | Select Reward | The category opens the rewards of that rarity to choose from. | | [Mass Selection](../mass-opening/mass-selection.md) | The category opens a filtered selection shared with the main menu. | | Editor > Crates > Crate > Rewards | The category opens its settings and the rewards it contains. | ## Display Item By default a category is shown as a chest named after the rarity, with the number of rewards it contains in the lore. Opening the category from the crate reward list in the editor gives access to its settings, where the icon can be replaced with any item and given a custom display name and lore, both supporting MiniMessage. An Item Properties sub-menu goes further: RGB color, item flags, banner patterns, enchantments, model data and item model, enchantment glint override, potion effects, armor trim, and tooltip style.

Editor > Crates > Crate > Rewards > Category

## Preview Menu Clicking a category in the rewards preview opens the crate's own preview menu, filtered to that rarity. With this option you can point a category at a different preview menu instead, which is useful to give a rarity its own title, size or decoration. Leaving it unset keeps the crate's preview menu.

Editor > Crates > Crate > Rewards > Category

Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/rarity/reward-groups --- # 🥇 Reward Rarity By assigning a rarity to your rewards, you can easily organize them across different crates.

Editor > Crates > Crate > Rewards > Reward

## Rarity Display When you select a rarity for your reward, its rarity is used to compute the reward's actual win chance (via the rarity's [Weight](README.md#rarity-weight)), and the rarity's display name becomes available in the reward's lore through the `%rarity_name%` placeholder. Since the chance calculation already accounts for the rarity's weight, the reward's displayed percentage always reflects the rarity automatically, without needing a separate sync toggle. If the rarity has [Required Keys](README.md#required-keys) set, it also overrides the reward's own Required Keys value when the crate uses Selective (non RNG) mode.

Editor > Crates > Crate > Rewards

Editor > Crates > Crate > Rewards > Reward

## Reward Groups A rarity with [Group Rewards](README.md#group-rewards) enabled collapses every reward carrying it into one category icon instead of listing them one by one. Players open the category to browse or pick from it, which keeps crates with a long reward list readable. Rewards without a grouped rarity keep their own slot and are listed after the categories. A rarity that is disabled never groups, its rewards go back to being listed individually.

Editor > Crates > Crate > Rewards

Opening a category lists the rewards it holds, each one editable from there like any other reward.

Editor > Crates > Crate > Rewards > Category

### Where Groups Appear | Menu | Behaviour | | ------------------------------------------------------------------- | ------------------------------------------------------------------ | | Rewards Preview | The category opens a preview filtered to that rarity. | | Select Reward | The category opens the rewards of that rarity to choose from. | | [Mass Selection](../mass-opening/README.md#mass-selection) | The category opens a filtered selection shared with the main menu. | | Editor > Crates > Crate > Rewards | The category opens its settings and the rewards it contains. | ### Display Item By default a category is shown as a chest named after the rarity, with the number of rewards it contains in the lore. Opening the category from the crate reward list in the editor gives access to its settings, where the icon can be replaced with any item and given a custom display name and lore, both supporting MiniMessage. An Item Properties sub-menu goes further: RGB color, item flags, banner patterns, enchantments, model data and item model, enchantment glint override, potion effects, armor trim, and tooltip style.

Editor > Crates > Crate > Rewards > Category

### Preview Menu Clicking a category in the rewards preview opens the crate's own preview menu, filtered to that rarity. With this option you can point a category at a different preview menu instead, which is useful to give a rarity its own title, size or decoration. Leaving it unset keeps the crate's preview menu.

Editor > Crates > Crate > Rewards > Category

Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/rarity/reward-rarity --- # 🗄️ Redis ## Information The Redis add-on caches player data in Redis and keeps it in sync across a network of servers, so keys, cooldowns and win limits stay consistent as players move between them. 👉 [You can purchase this add-on on Phoenix Plugins](https://www.phoenixplugins.com/) ## Installation To install this add-on, you can either: - Drag and drop the jar file into the PhoenixCrates/addons folder, then restart your server. - Download the plugin with the add-on selected during the downloading. ## Redis Redis sits in front of your database, it does not replace it. On the first start it generates a `redis.yml` file in the plugin's folder, where you set your connection details. > **Warning:** You still need MySQL configured. Redis is only the cache and locking layer, all data is still written to the database. ## Player Locking While a server is handling a player, it holds a lock on that player in Redis so no other server can write their data at the same time. The lock is refreshed for as long as the player is online, and released when they leave or when the server shuts down. If a lock cannot be obtained in time, the change is written straight to the database instead, so no rewards or keys are lost. ## Cross-Server Messaging Servers connected to the same Redis with the same key prefix send each other messages, so an action taken on one server reaches the rest of the network. Resetting every [Crate Claim](crate-claim/README.md#admin-commands), for example, also clears the claims cached on the other servers. Messaging is enabled by default. If the messaging connection drops, the server keeps retrying on its own until it is restored. ## Settings | Setting | Description | | ------- | ----------- | | Host / Port / Password / Database | The connection details of your Redis server. | | Connection Pool | The maximum, idle, and minimum number of connections kept open. Default is `8`, `8`, and `0`. | | Key Prefix | The prefix used for every key the add-on writes and for its messaging channel. Networks sharing one Redis server stay apart, with separate player data, locks and messages, as long as each uses its own prefix. Default is `phoenixcrates`. | | Data TTL | How long, in seconds, cached player data is kept. Default is `3600`. | | Lock TTL | How long, in seconds, a player lock stays valid without a refresh. Default is `15`. | | Heartbeat Interval | How often, in seconds, held locks are refreshed. Default is `5`. | | Lock Poll Interval | How often, in milliseconds, a server retries while waiting for a lock. Default is `200`. | | Max Lock Wait | How long, in milliseconds, to keep waiting for a lock before giving up and writing straight to the database. Default is `15000`. | | Messaging | Turns cross-server messaging on or off. Enabled by default. | | Messaging Channel | The channel servers talk over, placed after the key prefix. Default is `messages`. | | Reconnect Delay | How long, in seconds, to wait before retrying a lost messaging connection. Default is `5`, and the minimum is `1`. | | Debug | Logs every cache and lock operation to the console. Disabled by default. | ```yaml lock: heartbeat-interval-seconds: 5 ttl-seconds: 15 poll-interval-ms: 200 max-wait-ms: 15000 ``` > **Info:** The two lock timing options are not written into `redis.yml` when the file is first created. Add them yourself if you need to change them from the defaults above. > **Info:** If the connection to Redis fails on startup, the add-on logs a warning and the plugin keeps running on the database alone, without cross-server messaging. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/redis --- # 🔁 Reward On Loop ## Information The Reward On Loop add-on gives a reward to every online player on a fixed timer, independently from crates and keys.

Reward On Loop - Add-On

👉 [You can claim this add-on for free on Phoenix Plugins](https://www.phoenixplugins.com/product/reward-on-loop) ## Installation To install this add-on, you can either: - Drag and drop the jar file into the PhoenixCrates/addons folder, then restart your server. - Download the plugin with the add-on selected during the downloading. > **Warning:** The add-on requires the Premium edition. PlaceholderAPI is only needed for the countdown placeholders, the rewards themselves fire without it. ## Loop Rewards Loop rewards are reached from the Reward On Loop button in the main editor. Each one runs on its own timer, so several can fire on completely different schedules.

Editor

### Add Loop Reward Creates a new loop reward and opens it for editing. There is no limit on how many you can have, and a new one starts on its interval right away.

Editor > Loop Rewards

### Display Item The icon and name the reward is listed under in the editor. It is never given to anyone, but its name is what `%reward%` prints in the win message.

Editor > Loop Reward

### Win Items The physical items handed to each player when the reward fires.

Editor > Loop Reward

### Win Commands The commands run when the reward fires, once per receiving player.

Editor > Loop Reward

### Win Message The message each receiving player is sent. Leaving it empty sends nothing at all, which is the way to make a reward arrive silently.

Editor > Loop Reward

### Interval (seconds) How long between two firings of this reward. Changing it restarts the countdown, so the next reward is a full interval away rather than carrying over what had already elapsed. An interval of `0` stops the reward from ever firing, which is how a loop reward is paused without deleting it.

Editor > Loop Reward

### Timer Mode Whether the countdown is shared or personal. Changing it restarts the countdown the same way the interval does. | Mode | Behaviour | | ---- | --------- | | Global | One countdown for the whole server, so everyone is rewarded at the same moment. This is the default. | | Per Player | Each player has their own countdown, starting the moment they join. |

Editor > Loop Reward

> **Warning:** A Per Player countdown is dropped when the player disconnects, so they begin a fresh interval on their next join instead of resuming where they left off. A player who reconnects often enough never reaches the reward. ### Required Permissions Restricts the reward to players holding at least one of the listed permissions. An empty list, which is the default, gives it to everyone.

Editor > Loop Reward

### Max Win Item Amount Caps how many of the win items are actually delivered per firing. Unlimited hands over the whole list.

Editor > Loop Reward

### Max Win Command Amount The same cap for the win commands.

Editor > Loop Reward

### Max Wins Per Player How many times one player may receive this reward before being skipped. The counts reset when the server restarts.

Editor > Loop Reward

> **Info:** Win counts are held in memory only, so a server restart lets everyone win up to the cap again. Renaming the reward's identifier clears them the same way. ### Identifier The internal name the countdown placeholders address the reward by. It cannot contain spaces, and renaming it restarts the countdown.

Editor > Loop Reward

### Delete Permanently removes the loop reward after a confirmation prompt.

Editor > Loop Reward

> **Info:** With the [IP Limit](../ip-limit/) add-on installed, a loop reward reaches only a limited number of accounts per IP address each time it fires. That cap is set under Global Limits and cannot be overridden per key or crate. ## Placeholders Every placeholder reports the time left until a loop reward fires again. With Per Player timer mode they show the viewing player's own countdown, and with Global they show the one shared countdown. | Placeholder | Description | | ----------- | ----------- | | %phoenixcrates_rewardonloop_nextReward_\% | Time remaining, formatted as `1h 20m 5s`. | | %phoenixcrates_rewardonloop_nextReward_\_hours% | Whole hours remaining. | | %phoenixcrates_rewardonloop_nextReward_\_minutes% | Minutes remaining within the current hour. | | %phoenixcrates_rewardonloop_nextReward_\_seconds% | Seconds remaining within the current minute. | The three unit variants are parts of one countdown rather than three separate totals, so they are meant to be combined into a single line. A reward identifier that does not exist reports zero rather than an error, so a countdown stuck at `0s` usually means the identifier is misspelled. > **Info:** `hours`, `minutes`, `seconds` and `formatted` are read as unit suffixes, so a reward whose identifier ends in one of them cannot be queried. Rename it if a countdown refuses to resolve. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/reward-on-loop --- # 🎁 Loop Rewards ## Reward On Loop Loop rewards are reached from the Reward On Loop button in the main editor. Each one runs on its own timer, so several can fire on completely different schedules.

Editor

## Add Loop Reward Creates a new loop reward and opens it for editing. There is no limit on how many you can have, and a new one starts on its interval right away.

Editor > Loop Rewards

## Display Item The icon and name the reward is listed under in the editor. It is never given to anyone, but its name is what `%reward%` prints in the win message.

Editor > Loop Reward

## Win Items The physical items handed to each player when the reward fires.

Editor > Loop Reward

## Win Commands The commands run when the reward fires, once per receiving player.

Editor > Loop Reward

## Win Message The message each receiving player is sent. Leaving it empty sends nothing at all, which is the way to make a reward arrive silently.

Editor > Loop Reward

## Interval (seconds) How long between two firings of this reward. Changing it restarts the countdown, so the next reward is a full interval away rather than carrying over what had already elapsed. An interval of `0` stops the reward from ever firing, which is how a loop reward is paused without deleting it.

Editor > Loop Reward

## Timer Mode Whether the countdown is shared or personal. Changing it restarts the countdown the same way the interval does. | Mode | Behaviour | | ---- | --------- | | Global | One countdown for the whole server, so everyone is rewarded at the same moment. This is the default. | | Per Player | Each player has their own countdown, starting the moment they join. |

Editor > Loop Reward

> **Warning:** A Per Player countdown is dropped when the player disconnects, so they begin a fresh interval on their next join instead of resuming where they left off. A player who reconnects often enough never reaches the reward. ## Required Permissions Restricts the reward to players holding at least one of the listed permissions. An empty list, which is the default, gives it to everyone.

Editor > Loop Reward

## Max Win Item Amount Caps how many of the win items are actually delivered per firing. Unlimited hands over the whole list.

Editor > Loop Reward

## Max Win Command Amount The same cap for the win commands.

Editor > Loop Reward

## Max Wins Per Player How many times one player may receive this reward before being skipped for good.

Editor > Loop Reward

> **Info:** Win counts are held in memory only, so a server restart lets everyone win up to the cap again. Renaming the reward's identifier clears them the same way. ## Identifier The internal name the countdown placeholders address the reward by. It cannot contain spaces, and renaming it restarts the countdown.

Editor > Loop Reward

## Delete Permanently removes the loop reward after a confirmation prompt.

Editor > Loop Reward

> **Info:** With the [IP Limit](../ip-limit/) add-on installed, a loop reward reaches only a limited number of accounts per IP address each time it fires. That cap is set under Global Limits and cannot be overridden per key or crate. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/reward-on-loop/loop-rewards --- # 📜 Placeholders ## PlaceholderAPI Placeholders Every placeholder reports the time left until a loop reward fires again. With Per Player timer mode they show the viewing player's own countdown, and with Global they show the one shared countdown. | Placeholder | Description | | ----------- | ----------- | | %phoenixcrates_rewardonloop_nextReward_\% | Time remaining, formatted as `1h 20m 5s`. | | %phoenixcrates_rewardonloop_nextReward_\_hours% | Whole hours remaining. | | %phoenixcrates_rewardonloop_nextReward_\_minutes% | Minutes remaining within the current hour. | | %phoenixcrates_rewardonloop_nextReward_\_seconds% | Seconds remaining within the current minute. | The three unit variants are parts of one countdown rather than three separate totals, so they are meant to be combined into a single line. A reward identifier that does not exist reports zero rather than an error, so a countdown stuck at `0s` usually means the identifier is misspelled. > **Info:** `hours`, `minutes`, `seconds` and `formatted` are read as unit suffixes, so a reward whose identifier ends in one of them cannot be queried. Rename it if a countdown refuses to resolve. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/reward-on-loop/placeholders --- # 🎟️ Vouchers ## Information The Vouchers add-on adds redeemable codes. A code can hand out crate keys, items and commands, and can be limited by how many times it is used in total, how many times one player may use it, and when it stops working. It is the piece a giveaway needs: a code posted in Discord, a code bundled with a store purchase, or a one-off code for a single player, all created in game without editing a file. ## Installation To install this add-on, you can either: - Drag and drop the jar file into the PhoenixCrates/addons folder, then restart your server. - Download the plugin with the add-on selected during the downloading. > **Warning:** The add-on requires the Premium edition. ## Files | File | What it holds | | ---- | ------------- | | `PhoenixCrates/vouchers.yml` | The codes, their rewards and the code generator settings. | | `PhoenixCrates/translations/vouchers.translations..yml` | The add-on messages. | Which codes a player has redeemed is stored per player in the database, in the `player_vouchers_table` table. The number of times a code has been used across the whole server is stored on the code itself in `vouchers.yml`, so it survives a restart. Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/vouchers --- # 🏷️ Codes ## Codes Every code lives under `vouchers` in vouchers.yml. ```yaml generated-code-alphabet: ABCDEFGHJKLMNPQRSTUVWXYZ23456789 generated-code-length: 8 vouchers: '0': code: SUMMER25 enabled: true display-name: '&6Summer Giveaway' display-item: material: PAPER display-name: '&aVoucher' amount: 1 key-rewards: '0': key: vote amount: 5 win-items: {} win-commands: [] redeem-message: - '&aYou redeemed the code &f%code%&a!' broadcast-message: - '&e%player% &aredeemed the code &f%code%&a!' broadcast: false max-uses: 100 max-uses-per-player: 1 expires-at: -1 permission: '' uses: 0 max-win-item-amount: -1 max-win-command-amount: -1 ``` > **Info:** Codes and their key rewards are stored as numbered sections rather than YAML lists, the same shape the crate rewards use. The numbers are positions only and have to stay unique inside their section. ## Options | Option | What it does | | ------ | ------------ | | `code` | What the player types. Matched without regard to casing, so `summer25` and `SUMMER25` are the same code. | | `enabled` | Switches the code off without deleting it or losing its usage count. | | `display-name` | A friendly name used in messages. Falls back to the code itself when empty. | | `display-item` | The icon the reward pipeline uses when the items are handed over. | | `key-rewards` | The keys the code gives, as a list of `key` and `amount` pairs. | | `win-items` | Items the code gives. | | `win-commands` | Commands run when the code is redeemed. Prefix a command with `*` to run it as the player instead of the console. | | `redeem-message` | Sent to the player who redeemed the code. | | `broadcast-message` | Sent to every online player, only when `broadcast` is on. | | `broadcast` | Announces the redemption to the whole server. | | `max-uses` | Redemptions allowed across the whole server, `-1` for unlimited. | | `max-uses-per-player` | Redemptions allowed per player, `-1` for unlimited. Defaults to `1`. | | `expires-at` | Epoch milliseconds after which the code stops working, `-1` for never. | | `permission` | The player needs this to redeem the code. Leave empty for everyone. | | `uses` | How many times the code has been redeemed. Maintained by the plugin. | | `max-win-item-amount` | How many of the win items are given, `-1` for all of them. | | `max-win-command-amount` | How many of the win commands are run, `-1` for all of them. | > **Warning:** `uses` is written by the plugin. Editing it by hand changes how many redemptions are left on a code with a `max-uses` cap, and setting it back to `0` reopens a code that had run out. ## Limits The two caps do different jobs and are usually combined. `max-uses-per-player` stops one player redeeming the same code repeatedly, and `max-uses` caps the giveaway as a whole. Both are enforced at the moment of redemption rather than on a timer, so two players redeeming the last remaining use at the same instant cannot both get through — one of them is told the code is exhausted. ## Generated codes `generated-code-alphabet` and `generated-code-length` control the codes produced by `/crate createVoucher` when it is asked to generate one. The default alphabet leaves out `I`, `O`, `0` and `1`, so a code read off a screenshot or a Discord message cannot be mistyped into a different valid code. Generated codes are always checked against the existing ones before being used. ## Message placeholders `redeem-message` and `broadcast-message` accept: | Placeholder | Value | | ----------- | ----- | | `%player%` | The player who redeemed the code. | | `%code%` | The code itself. | | `%voucher%` | The display name, falling back to the code. | Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/vouchers/codes --- # 🤖 Commands ## Player Commands * `/crate redeem ` - Redeems a code. Needs no permission, though an individual code can require one through its own `permission` option. ## Admin Commands * `/crate createVoucher [amount] [uses]` - Creates a code granting a number of one key. Pass `-` as the code to generate one instead of choosing it. `uses` is the total across the server, `-1` for unlimited. Requires `phoenixcrates.command.createvoucher`. * `/crate deleteVoucher ` - Deletes a code. Requires `phoenixcrates.command.deletevoucher`. * `/crate vouchers` - Lists every code with its usage count and status. Requires `phoenixcrates.command.vouchers`. * `/crate resetVouchers ` - Clears which codes a player has redeemed, letting them redeem them all again. Requires `phoenixcrates.command.resetvouchers`. ## Permissions | Permission | What it allows | | ---------- | -------------- | | `phoenixcrates.command.createvoucher` | Creating codes. | | `phoenixcrates.command.deletevoucher` | Deleting codes. | | `phoenixcrates.command.vouchers` | Listing codes. | | `phoenixcrates.command.resetvouchers` | Resetting a player's redeemed codes. | ## Creating a code in game ``` /crate createVoucher SUMMER25 vote 5 100 ``` Creates `SUMMER25`, granting five `vote` keys, redeemable a hundred times across the server and once per player. ``` /crate createVoucher - legendary 1 1 ``` Generates a code granting a single `legendary` key that only one player can ever use, which is the shape a personal reward or a single-winner giveaway takes. A code made this way is written straight into vouchers.yml and works immediately, with no reload. Anything the command does not cover — items, commands, an expiry date, a permission — is edited into the file afterwards. > **Info:** The command refuses a code that already exists rather than overwriting it, so an accidental repeat cannot wipe the usage count of a live giveaway. ## Status in the list `/crate vouchers` marks each code as one of: | Status | Meaning | | ------ | ------- | | `active` | Redeemable. | | `disabled` | `enabled` is off. | | `expired` | Past its `expires-at`. | | `exhausted` | Has reached `max-uses`. | Source: https://www.phoenixplugins.com/docs/phoenix-crates/add-ons/vouchers/commands --- # 🌐 API > **Danger:** The API is only available for the premium version of the plugin. Build your own extensions for Phoenix Crates with our public API. [Events](events.md) and [Examples](examples.md) have their own pages. ## Maven Repository ```xml phoenixplugins https://repo.phoenixplugins.com/ ``` ## Dependency ```xml com.phoenixplugins.phoenixcrates api 1.0.0-SNAPSHOT ``` ## Advanced Access (Internal Classes) Our public API covers the recommended integration points for addons. If you need deeper access to internal classes and systems, we recommend using a direct `systemPath` dependency to your local Phoenix Crates plugin JAR. ```xml com.phoenixplugins.phoenixcrates internal 1.0.0-SNAPSHOT system ${project.basedir}/libs/PhoenixCrates-1.0.0-SNAPSHOT.jar ``` Place the plugin JAR in your project's `libs` folder before building. ## JavaDocs * [Open Phoenix Crates JavaDocs](https://www.phoenixplugins.com/javadocs/phoenix-crates) ## Custom Addons Custom Addons are extensions that allow you to extend, modify, or enhance Phoenix Crates behavior with your own Java code. ### Before You Start 1. Add the [Maven Repository](#maven-repository) and the [Dependency](#dependency) above. 2. Create your addon project (Maven or Gradle). 3. Make sure your final artifact is a shaded or standalone JAR when needed. ### addon.yml Create an `addon.yml` file in your project's resources folder. ```yaml name: AddonName main: your.path.AddonExample author: [YourName] version: 1.0.0 description: Small description (optional) website: https://your-website.com (optional) ``` Required fields: * `name`: Display name of your addon. * `main`: Fully qualified path to your addon main class. * `author`: One or more addon authors. * `version`: Addon version. ### Main Class Example The `main` value in `addon.yml` must point to your class that extends `Addon`. ```java package your.path; import com.phoenixplugins.phoenixcrates.api.sdk.plugin.addons.Addon; public class AddonExample extends Addon { @Override public void onLoad() { // Called when the addon is loaded. } @Override public void onEnable() { // Register listeners, commands, tasks, etc. } @Override public void onDisable() { // Cleanup logic. } @Override public String getRequiredPluginVersion() { return "5.0.0"; } } ``` ### Build and Install 1. Build your addon JAR with your normal project build command. 2. Move the compiled JAR into `plugins/PhoenixCrates/addons`. 3. Restart the server. 4. Check console logs to confirm the addon was loaded successfully. ## Custom Animations Create your own opening phase animations and register them at runtime through the API. ### 1. Create Your Phase Class Extend `OpeningPhaseAnimation` and implement the lifecycle methods: ```java public class YourPhaseAnimation extends OpeningPhaseAnimation { public YourPhaseAnimation(OpeningCrateAnimation animation, OpeningPhaseType type, EmptyOpeningPhaseData data) { super(animation, type, data); } @Override public void load() { } @Override public void tick() { } @Override public void unload() { } } ``` ### 2. Register on Enable Register your phase during addon startup and unregister it on shutdown: ```java public void onEnable() { registerPhase( new OpeningPhaseType(PhaseType.FIRST, "YOUR_PHASE_IDENTIFIER", "Your Display Name", XMaterial.STONE, ServerVersion.v1_16_R1, new XMaterial[] {}, EmptyOpeningPhaseData.class, (animation, type, data) -> new YourPhaseAnimation(animation, type, (EmptyOpeningPhaseData) data), () -> new EmptyOpeningPhaseData())); } public void onDisable() { for (final OpeningPhaseType type : this.registeredPhases) { OpeningPhaseType.unregisterPhase(type); } } private void registerPhase(OpeningPhaseType phase) { // Registering first phase animations OpeningPhaseType.registerPhase(phase); // Caching to unload later on this.registeredPhases.add(phase); } ``` ### Good Practices * Use unique identifiers for each custom phase. * Keep heavy logic out of `tick()` when possible. * Always unregister phases in `onDisable()`. * Test phases on the same Minecraft version as production. ## Custom Model Engines A plugin can register its own model engine, and crates can then use it like Model Engine or Better Model. The engine is shown in the crate editor, see [Crate Block Engine](../main-features/crate-engine-mode/README.md#engines-from-other-plugins). These classes are marked experimental. Implement `CrateModelEngine` from `com.phoenixplugins.phoenixcrates.api.crate.engine.model`: | Method | Purpose | | ------ | ------- | | `getName()` | The engine name, `[a-z0-9_]{1,32}` after lowercasing. | | `isReady()` | Whether the engine can spawn models yet. | | `whenReady(Runnable)` | Runs the task once the engine is ready. | | `getModelIds()` | Every model the editor can offer. | | `getAnimationIds(String modelId)` | The animations of a model. | | `hasModel(String modelId)` | Whether a model exists. | | `spawn(CrateModelSpawn)` | Spawns a model and returns a `CrateModel`, or `null` if it fails. | `CrateModelSpawn` carries the location, model id, scale, view distance, an optional viewer when the model is shown to one player only, and an optional `CrateModelClickHandler` called with the player and whether it was a left click. The returned `CrateModel` implements `isValid()`, `hasAnimation(String)`, `playLoop(String)`, `playOnce(String, Runnable)`, `stopAnimation(String)`, `stopAllAnimations()`, `show(Player)`, `hide(Player)`, `getHeight()` and `remove()`. Register it from your plugin when it enables: ```java CrateModelEngine.register(this, new YourModelEngine()); ``` `CrateModelEngine.unregister(engine)` removes it again. Source: https://www.phoenixplugins.com/docs/phoenix-crates/api --- # 🔧 Custom Addons > **Danger:** The API is only available for the premium version of the plugin. Custom Addons are extensions that allow you to extend, modify, or enhance Phoenix Crates behavior with your own Java code. ## Before You Start 1. Add the API dependency from the [API page](README.md). 2. Create your addon project (Maven or Gradle). 3. Make sure your final artifact is a shaded or standalone JAR when needed. ## addon.yml Create an `addon.yml` file in your project's resources folder. ```yaml name: AddonName main: your.path.AddonExample author: [YourName] version: 1.0.0 description: Small description (optional) website: https://your-website.com (optional) ``` Required fields: * `name`: Display name of your addon. * `main`: Fully qualified path to your addon main class. * `author`: One or more addon authors. * `version`: Addon version. ## Main Class Example The `main` value in `addon.yml` must point to your class that extends `Addon`. ```java package your.path; import com.phoenixplugins.phoenixcrates.api.sdk.plugin.addons.Addon; public class AddonExample extends Addon { @Override public void onLoad() { // Called when the addon is loaded. } @Override public void onEnable() { // Register listeners, commands, tasks, etc. } @Override public void onDisable() { // Cleanup logic. } @Override public String getRequiredPluginVersion() { return "5.0.0"; } } ``` ## Build and Install 1. Build your addon JAR with your normal project build command. 2. Move the compiled JAR into `plugins/PhoenixCrates/addons`. 3. Restart the server. 4. Check console logs to confirm the addon was loaded successfully. ## Next Step After your addon loads correctly, continue with [🎞️ Custom Animations](custom-animations.md) to register your own crate animation phases. Source: https://www.phoenixplugins.com/docs/phoenix-crates/api/custom-addons --- # 🎞️ Custom Animations > **Danger:** The API is only available for the premium version of the plugin. Create your own opening phase animations and register them at runtime through the API. ## 1. Create Your Phase Class Extend `OpeningPhaseAnimation` and implement the lifecycle methods: ```java public class YourPhaseAnimation extends OpeningPhaseAnimation { public YourPhaseAnimation(OpeningCrateAnimation animation, OpeningPhaseType type, EmptyOpeningPhaseData data) { super(animation, type, data); } @Override public void load() { } @Override public void tick() { } @Override public void unload() { } } ``` ## 2. Register on Enable Register your phase during addon startup and unregister it on shutdown: ```java public void onEnable() { registerPhase( new OpeningPhaseType(PhaseType.FIRST, "YOUR_PHASE_IDENTIFIER", "Your Display Name", XMaterial.STONE, ServerVersion.v1_16_R1, new XMaterial[] {}, EmptyOpeningPhaseData.class, (animation, type, data) -> new YourPhaseAnimation(animation, type, (EmptyOpeningPhaseData) data), () -> new EmptyOpeningPhaseData())); } public void onDisable() { for (final OpeningPhaseType type : this.registeredPhases) { OpeningPhaseType.unregisterPhase(type); } } private void registerPhase(OpeningPhaseType phase) { // Registering first phase animations OpeningPhaseType.registerPhase(phase); // Caching to unload later on this.registeredPhases.add(phase); } ``` ## Good Practices * Use unique identifiers for each custom phase. * Keep heavy logic out of `tick()` when possible. * Always unregister phases in `onDisable()`. * Test phases on the same Minecraft version as production. ## Need Addon Setup First? If you have not created your addon bootstrap yet, start with [🔧 Custom Addons](custom-addons.md). Source: https://www.phoenixplugins.com/docs/phoenix-crates/api/custom-animations --- # 📡 Events > **Danger:** The API is only available for the premium version of the plugin. All events are standard Bukkit events, registered the usual way with `@EventHandler`. Crate events live in `com.phoenixplugins.phoenixcrates.api.crate.events`, item delivery in `com.phoenixplugins.phoenixcrates.api.events.items`. ## Event List | Event | Fires when | Cancellable | | ---------------------------- | --------------------------------------------------------------- | ----------- | | `CratePlaceEvent` | A player places a crate item in the world | Yes | | `CratePreviewOpenEvent` | The rewards preview menu is about to open | Yes | | `CratePreOpenEvent` | An opening has been requested, before any check runs | Yes | | `CrateOpenEvent` | The opening has started | No | | `CrateRewardSelectionEvent` | A random crate is choosing which reward to award | No | | `CrateSelectiveConfirmEvent` | A player confirms a reward in Selective mode | Yes | | `CratePreRerollEvent` | A reroll has been requested | Yes | | `CrateRerollEvent` | A reroll has produced a new reward | No | | `CrateRewardWinItemsEvent` | The item list for a win has been built, before it is given | No | | `CrateRewardPlayerEvent` | A player has been awarded a reward | No | | `ItemDeliveryEvent` | Items are about to be delivered to a player | No | Several of these are not cancellable but still let a listener change the outcome, which is covered per event below. ## CratePlaceEvent Fired when a player places a crate item. Exposes `getCrate()` (the `CrateType`), `getWhoPlaced()` and `getLocation()`. > **Warning:** This event fires **before** the `phoenixcrates.admin` check. A listener that only wants to veto placements in protected regions should not assume the placement would otherwise have succeeded. ## CratePreviewOpenEvent Fired before the rewards preview opens. Exposes `getCrateType()`, `getPlayer()` and `getPreviewMenu()`, the name of the menu that is about to be used. Cancel it to block the preview. ## CratePreOpenEvent Fired as soon as an opening is requested and before the plugin checks keys, permission, cooldown or cost. Cancel it to stop the opening with no key consumed. Exposes `getCrate()`, `getPlayer()` and `getType()`. This is the event to use for your own access rules. See [Examples](examples.md). ## CrateOpenEvent Fired once an opening has passed every check and has started. Not cancellable, since the key has already been taken. Use it for logging and metrics, which is exactly what the built-in logger does. ## CrateRewardSelectionEvent Fired while a crate in Random mode is picking a reward. Exposes `getCrate()`, `getPlayer()`, `getKey()` and `getCandidates()`, the rewards that are currently eligible for this player. To choose the reward yourself, call `setSelectedReward()` **and** `setHandled(true)`. Setting the reward without marking the event handled lets the normal selection run and replace your choice. ## CrateSelectiveConfirmEvent Fired when a player confirms a reward on a crate in Selective (non RNG) mode. Exposes `getCrate()`, `getPlayer()` and `getSelectedReward()`. Cancel it to refuse the selection. ## CratePreRerollEvent Fired when a player requests a reroll. Exposes `getSession()`, the active `OpeningSession`. Cancel it to refuse the reroll, or call `setHandled(true)` to tell the plugin your listener has taken over the reroll itself. ## CrateRerollEvent Fired once a reroll has run and produced a new reward, so it is the counterpart to `CratePreRerollEvent`. Exposes `getCrate()`, `getPlayer()` and `getReward()`, the reward the reroll landed on. A reroll in a normal opening replaces every reward, so the event fires once per new reward. A reroll from the Mass Opening menu targets one reward, so it fires once. Use it for logging and metrics. To actually block or take over a reroll, use `CratePreRerollEvent`. ## CrateRewardWinItemsEvent Fired after the final item list for a win has been built and before those items reach the player. Exposes `getCrate()`, `getReward()`, `getPlayer()` and a mutable `getWinItems()`, which `setWinItems()` can replace outright. This is the place to add a bonus item, apply your own NBT, or swap items per player. ## CrateRewardPlayerEvent Fired when a player is awarded a reward. Exposes `getCrate()`, `getPlayer()` and `getReward()`, which is settable. ## ItemDeliveryEvent Fired whenever the plugin hands items to a player, whether from an opening or from a command. Exposes `getPlayer()`, `getPlayerData()`, `getRemainingItems()` and `getSource()`, which is one of `KEY_GRANT`, `CRATE_GRANT` or `REWARD_GRANT`. Edit `getRemainingItems()` or call `setRemainingItems()` to change what is delivered, and `consumeAll()` to take responsibility for every item yourself, which is how the Crate Claim add-on stores items for offline players. Use `getRemainingItemsSnapshot()` if you need a copy that is safe to hold onto. Source: https://www.phoenixplugins.com/docs/phoenix-crates/api/events --- # 🧪 Examples > **Danger:** These examples target the public API module and are written to avoid depending on internal classes. ## 1) Listen and override reward selection Use `CrateRewardSelectionEvent` to choose a reward yourself. ```java import com.phoenixplugins.phoenixcrates.api.crate.events.CrateRewardSelectionEvent; import com.phoenixplugins.phoenixcrates.api.reward.BaseReward; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import java.util.Comparator; public final class RewardSelectionListener implements Listener { @EventHandler public void onRewardSelection(CrateRewardSelectionEvent event) { BaseReward best = event.getCandidates().stream() .max(Comparator.comparingDouble(BaseReward::getWeight)) .orElse(null); if (best != null) { event.setSelectedReward(best); event.setHandled(true); } } } ``` Do not set only `selectedReward` and forget `handled`, otherwise the default flow can still replace your choice. ## 2) Validate opening attempts before they start Use `CratePreOpenEvent` when you want to block a crate opening with your own checks. ```java import com.phoenixplugins.phoenixcrates.api.crate.events.CratePreOpenEvent; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; public final class OpenGuardListener implements Listener { @EventHandler public void onPreOpen(CratePreOpenEvent event) { if (!event.getPlayer().hasPermission("myaddon.open")) { event.setCancelled(true); event.getPlayer().sendMessage("You cannot open this crate right now."); } } } ``` ## 3) Query crates from the manager Access the manager through `PhoenixCratesAPI`. ```java import com.phoenixplugins.phoenixcrates.api.PhoenixCratesAPI; import com.phoenixplugins.phoenixcrates.api.crate.CrateType; import java.util.List; public final class CratesDebugService { public List getEnabledTypes() { return PhoenixCratesAPI.getCratesManager().getCrateTypes(); } public int getRegisteredCount() { return PhoenixCratesAPI.getCratesManager().countRegisteredTypes(); } } ``` ## 4) Inject a custom player data layer The player data layer supports chain-of-responsibility style custom caching. ```java import com.phoenixplugins.phoenixcrates.api.PhoenixCratesAPI; import com.phoenixplugins.phoenixcrates.api.player.PlayerDataLayer; import com.phoenixplugins.phoenixcrates.api.player.PlayerDbModel; import java.util.UUID; import java.util.concurrent.CompletableFuture; public final class MyDataLayer implements PlayerDataLayer { private PlayerDataLayer next; @Override public CompletableFuture fetchByUniqueId(UUID uniqueId) { return next == null ? CompletableFuture.completedFuture(null) : next.fetchByUniqueId(uniqueId); } @Override public CompletableFuture insert(T model) { return next.insert(model); } @Override public CompletableFuture update(T model) { return next.update(model); } @Override public void setNextLayer(PlayerDataLayer nextLayer) { this.next = nextLayer; } @Override public PlayerDataLayer getNextLayer() { return this.next; } } // During addon load: // PhoenixCratesAPI.getPlayersManager().setPlayerDataLayer(new MyDataLayer()); ``` Do not block the main thread waiting for `CompletableFuture` results. ## 5) Read player crate data safely Use the async fetch API for offline/online players. ```java import com.phoenixplugins.phoenixcrates.api.PhoenixCratesAPI; import org.bukkit.OfflinePlayer; public final class PlayerDataService { public void loadData(OfflinePlayer player) { PhoenixCratesAPI.getPlayersManager() .fetchPlayerDataAsync(player) .thenAccept(data -> { if (data != null) { // Read fields/modules from your callback. } }); } } ``` ## 6) Track openings and rerolls for analytics Listen to open and reroll events for metrics or logs. ```java import com.phoenixplugins.phoenixcrates.api.crate.events.CrateOpenEvent; import com.phoenixplugins.phoenixcrates.api.crate.events.CrateRerollEvent; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; public final class AnalyticsListener implements Listener { @EventHandler public void onOpen(CrateOpenEvent event) { // Store event.getPlayer().getUniqueId() + event.getType().getIdentifier() } @EventHandler public void onReroll(CrateRerollEvent event) { // Store event.getPlayer().getUniqueId() + event.getReward().getIdentifier() } } ``` > **Info:** A reroll in a normal opening replaces every reward, so `CrateRerollEvent` fires once per new reward. To block or take over a reroll instead of recording it, use `CratePreRerollEvent`. Every event is listed on the [Events](events.md) page. ## 7) Customize final item delivery Use `ItemDeliveryEvent` to edit or consume the list of items before they are delivered. ```java import com.phoenixplugins.phoenixcrates.api.events.items.ItemDeliveryEvent; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.inventory.ItemStack; import java.util.ArrayList; import java.util.List; public final class ItemDeliveryListener implements Listener { @EventHandler public void onDelivery(ItemDeliveryEvent event) { List filtered = new ArrayList<>(event.getRemainingItemsSnapshot()); filtered.removeIf(item -> item.getAmount() <= 0); event.setRemainingItems(filtered); } } ``` ## 8) Inspect and manage animation phases Use the animation registry to discover or register phases. ```java import com.phoenixplugins.phoenixcrates.api.PhoenixCratesAPI; import com.phoenixplugins.phoenixcrates.api.crate.animation.AnimationPhase; import com.phoenixplugins.phoenixcrates.api.crate.animation.PhaseType; import java.util.Collection; import java.util.Optional; public final class AnimationRegistryService { public Collection getOpeningPhases() { return PhoenixCratesAPI.getAnimationsRegistry().getPhases(PhaseType.OPENING); } public Optional findById(String id) { return PhoenixCratesAPI.getAnimationsRegistry().getPhaseById(PhaseType.OPENING, id); } } ``` ## What is not supported by API-only integrations * Do not depend on internal classes from plugin modules outside `com.phoenixplugins.phoenixcrates.api.*`. * Do not call methods marked internal/unsafe unless you are maintaining plugin internals. * Do not assume constructor availability for concrete runtime implementations. * Do not override the full opening flow by reflection; use events and managers instead. Source: https://www.phoenixplugins.com/docs/phoenix-crates/api/examples --- # 📂 Crate Configuration File ## Example Crate Each crate has its file inside the crates folder. Check the default structure of a crate: ```yml enabled: true identifier: example1 item: material: custom:example_crate amount: 1 display-name: '&eExample #1' block-material: BROWN_WOOL engine: VANILLA_BLOCK open-cost: engine: NONE amount: 0.0 currency: '' key-skips-cost: false open-cooldown: 0 simultaneous-openings: true preview-item: false permission: required: false permission: phoenixcrates.crate.example1 idle-effects: - CIRCLE;{REDSTONE;#ff0000;0.0;1.0;2.0;0.0;0.0;1} opening-animation: pre-open: DEFAULT open: SPOTLIGHT_GUI display: NONE hologram: type: BUILTIN offset: 0.0 lines: - '&e&l%name%' - '' - '&aRight &7Click to open' - '&cLeft &7Click to preview' menus: rewards: default_rewards_preview select-reward: default_select_reward rerolls: default_crate_reroll preview-actions: [] key-required: true linked-keys-ids: - example1 allow-open-command: true broadcast: message: '&ePlayer &a%player% &ejust got &6"%reward%" &ereward from the crate &6%crate%&e!' max-win-rewards: 0 rewards-mode: RANDOM rewards: '0': enabled: true identifier: reward_1783907600221 display-item: material: custom:example_crate amount: 4 win-items: '0': material: custom:grass_block amount: 1 win-commands: [] broadcast: false weight: 100.0 win-limits: -1 global-win-limit: -1 cooldowns: win-limit-cooldown: 0 global-win-limit-cooldown: 0 time-limited-cooldown: 0 time-limited-expiry: 0 guaranteed-win: -1 required-keys: 1 allow-win-message: false notification-type: CHAT share-players-online: false restricted-permissions: [] required-permissions: [] max-win: item-amount: 1 command-amount: -1 alternative-reward: enabled: false reward: item: material: DIAMOND_PICKAXE display-name: '&aAlternative Item' amount: 1 virtual: false broadcast: false allow-win-message: true share-players-online: false commands: [] guaranteed-reward-type: DISABLED reroll: enabled: false free-rolls: 0 groups: '0': namespace: common rerolls: 3 replay-animation: false skip-same-reward: false extra-settings: animation: display-item-position: x: 0.0 y: 2.0 z: 0.0 display-item-name-position: x: 0.0 y: 0.3 z: 0.0 skip-on-esc: false clicks: open: RIGHT preview: LEFT event-actions: open: [] win: [] close: [] denied: [] ``` ## Clicks `clicks` takes `LEFT`, `RIGHT`, `BOTH` or `NONE`, as set from [Click Behaviour](../main-features/crates/README.md#click-behaviour). ## Event Actions `event-actions` overrides the global lists from `config.yml` for this crate, event by event. A reward can also carry a `win-actions` list of its own, which takes over from both. See [Event Actions](../main-features/crates/README.md#event-actions). ## Idle Effects The `idle-effects` lines pack a whole particle effect into one string, in the form `TYPE;{PARTICLE;COLOR;offsetX;offsetY;offsetZ;spread;velocity;amount}`. Each field is explained on the [Idle Animations](../main-features/animations/README.md#in-the-config-file) page. ## Item Storage Every crate file starts with an `internal-storage` section holding the raw items the crate uses, each under a name that the rest of the file points at with `custom:`. It is written by the plugin, so a crate item, a reward item or a display item edited from the editor ends up there instead of being repeated inline. Editing an item by hand means editing its entry in that section. Removing an entry that something still points at leaves that part of the crate without an item. ## Add-on Sections Installed add-ons append their own section to every crate file, and Mass Opening also adds its two menu names into the existing `menus` section. A file only grows once the add-on has run for the first time, and deleting a section makes it come back with its defaults. ```yml mass-opening: enabled: false presets: first: enabled: true amount: 6 open-all: enabled: true max-amount: 100 lootbox: enabled: false menus: mass-reroll: default_crate_mass_reroll mass-selective: default_crate_mass_selective ``` ## File Structure Everything the plugin writes lives in plugins/PhoenixCrates. ``` plugins/PhoenixCrates/ ├── addons/ ├── crates/ ├── keys/ ├── menus/ ├── translations/ ├── internal/ ├── logs/ ├── config.yml ├── locations.yml ├── internal_storage.yml ├── messages.yml └── rarities.yml ``` ### Folders | Folder | Contents | | ---------------- | ------------------------------------------------------------------------------------------------- | | **crates** | One file per crate. See [Example Crate](#example-crate). | | **keys** | One file per key. | | **menus** | The menu layouts. See [Customize Menus](customize-menus.md). | | **addons** | Add-on jars. Drop a new add-on here and restart. | | **translations** | The language files. See [Languages & Translations](languages.md). | | **internal** | Plugin-managed working data. Never edit this by hand. | | **logs** | Written by the logger. See [Log the Actions](../features/log-the-actions.md). | ### Files | File | Contents | | ------------------------ | ---------------------------------------------------------------------------------------------------------- | | **config.yml** | The main settings, the database connection and the license. See [Main Configuration](main-configuration.md). | | **locations.yml** | Every crate placed in the world, with its coordinates and facing. See the note below. | | **internal_storage.yml** | Items saved from the editor that are not tied to a single crate. | | **messages.yml** | Legacy message file, kept for configurations made before translations were introduced. | | **rarities.yml** | The rarities, when the Rarity add-on is installed. | Installed add-ons add one file each: `crate-claim.yml`, `mass-opening.yml`, `ip-limit.yml`, `reward-on-loop.yml`, `redis.yml`, and `logger.yml` for the logger. > **Warning:** locations.yml is what makes a placed crate exist. Deleting it leaves every crate configured but no longer placed anywhere in the world. ### What Lives in the Database Player progress is **not** in these files. Virtual keys, open cooldowns, opened counts, win limits and rerolls are all stored in the database configured in `config.yml`, which is SQLite (a file inside the plugin folder) by default and MySQL if you set it up. ### Moving to Another Server To carry your setup across: * **Configuration** - copy `crates/`, `keys/`, `menus/`, `translations/`, `config.yml`, `internal_storage.yml`, `rarities.yml` and the add-on files. * **Placed crates** - copy `locations.yml`, but only if the worlds come across too. A location pointing at a world that does not exist is skipped. * **Player progress** - point the new server at the same MySQL database, or copy the SQLite file across. > **Danger:** If you copy `config.yml` to a second server, remember that a license only allows a limited number of concurrent sessions. See [Licensing](../plugin-information/licensing.md). ### What to Back Up The whole plugins/PhoenixCrates folder, plus your database if you use MySQL. The editor writes changes to these files as you make them, so a backup taken while the server runs is a valid one. ### Reporting a Problem Turning on `debug` in `config.yml` adds verbose console logging and creates a debug\_output folder with extra diagnostics. Both are useful to attach when you report an issue to us. Source: https://www.phoenixplugins.com/docs/phoenix-crates/configurations/crate-configuration-file --- # 🎑 Customize Menus ## Crate Menus All the crate menus you can customize for the plugin are located in the menus folder of Phoenix Crates. These menus are: * The rewards preview menu - REWARDS\_PREVIEW * The select reward menu - SELECT\_REWARD * The confirmation menu - CONFIRMATION * The reroll menu - CRATE\_REROLL * The virtual keys menu - VIRTUAL\_KEYS Add-ons register menus of their own, which only exist once the add-on is installed: * The mass opening menu - CRATE\_MASS\_OPENING * The mass reroll menu - CRATE\_MASS\_REROLL * The mass selection menu - CRATE\_MASS\_SELECTIVE * The claim menu - CRATE\_CLAIM

Menus Folder

If you want to have a different preview menu for a crate, you can simply create your own custom menu and attach it to the crate's [Preview Menu](../main-features/crates/README.md#menus) instead of changing the default one. The layout of every menu can also be changed in-game with the [In-Game Menu Editor](in-game-menu-editor.md) ⭐. ## Menu Settings Menu settings can be found in any type of menu. From there, you can specify the type of menu you want, the title of the menu, the number of rows it will have, the refresh rate, and the actions that will run when the user clicks to preview it. ```yaml settings: type: # REWARDS_PREVIEW, SELECT_REWARD, CONFIRMATION, CRATE_REROLL, VIRTUAL_KEYS title: '%crate% Rewards' rows: # 1, 2, 3, 4, 5, 6 refresh: enabled: false rate: 20 on-open-actions: [] ``` You can change the rows number if you want to adjust the rows that the menu will have. ## Confirmation Menu The confirmation menu is shown to players before an action is carried out, such as opening a crate with an Open Money Cost or picking a reward in Selective mode. It has its own `confirm` and `cancel` items alongside the usual `item-slot`, which shows the item the player is about to receive/select. This menu can be skipped entirely with the Disable Confirmation Menus option, found in the editor's Settings menu. ## Pagination Pagination is another main option that menus have. With this, you can create multiple pages, set your preview page item, the next page item, and a material that will fill specific slots. ## Items With the items, you can create custom entries to be included in your menu. These could be items to close the menu or items that display where players can purchase keys. ```yaml items: close-menu: slot: '49' material: ARROW amount: 1 custom-model-data: 0 glow: false hide-attributes: false display-name: '&aClose Menu' lore: - '&7Click here to close this menu.' - '' - '&6Left-Click: &eClose menu.' actions: - '[CLOSE_INVENTORY]' ``` Two more options are available on any item and are not in the example above: * **item-model** - The item model identifier to use, on server versions that support it. * **hide-tooltip** - Hides the item's tooltip completely. This is what the filler panes in the default menus use. The `slot` accepts a single slot (`'49'`), a range (`'45-53'`), or a comma separated mix of both (`'0, 8, 45-53'`), so one entry can fill several slots at once. ## Item Material Every item in a menu takes a `material`, the pagination arrows, the decorative fillers and the available keys item included. Alongside vanilla materials it accepts the same [hooked values](reward-config-editing.md#hooked-materials) as a reward, so any of them can be a custom item from ItemsAdder, Nexo, CraftEngine, MMOItems, ExecutableItems, Mythic Items or HeadDatabase. ```yaml pagination: next-item: slot: '26' material: itemsadder:medieval_crates:next_arrow custom-model-data: 0 item-model: '' display-name: '&6Next page - Page %page%' ``` > **Danger:** The parts of a hooked material are separated by colons, never dashes, and an ItemsAdder value keeps its namespace, so it has three parts. `itemsadder-medieval_crates-next_arrow` and `itemsadder:next_arrow` both fail. Keep `custom-model-data` at 0 and `item-model` empty on a hooked material. Both are applied on top of whatever the hook returns and would override the model the custom item already carries. A 0 and an empty value are skipped, leaving the hook's own model alone. An item rendering as a barrier means the material was accepted as a hooked value but nothing came back, either because the id is wrong or because the hooking plugin had not finished loading its items when the menu was built. A material rejected outright is logged as an unknown material on startup instead. ## Reward The rewards are the items you offer in your crate. You can adjust their names, lore, and configure them as you wish. The selective reward option also includes a setting for a locked item, in case the reward has already been claimed. The reward slots will be based on the slots: that were set in the pagination ```yaml reward: name: '&7%reward_name%' lore: - '%reward_lore%' - '' - '&eYour percentage: &6%percentage%%' - '&eYour chance: &6%chance%%' - '' - '&7Check our &6&lWIKI &7to understand the difference' - '&7between percentage and chance.' - '' - '&7(This lore is configured at the menus folder)' ``` ## Review & Reroll These two items are found in the reroll menu. The review option allows you to claim the reward you won, while the reroll option lets you get another reward instead. ## Virtual Keys Menu The menu behind `/crates virtualKeys` lives in menus/virtual\_keys.yml and is customized like any other, with its own settings, pagination and items. On top of those it has a `key-item` block, which is the entry rendered for each of the player's keys. ```yaml key-item: display-name: '&e%key_name%' lore: - '%item_lore%' - '' - '&fAmount: &e%amount%' ``` | Placeholder | Description | | ------------ | -------------------------------------------- | | %key\_name% | The key's display name. | | %amount% | How many of that key the player has. | | %item\_lore% | The lore of the key item itself. | The item's material comes from the key, so it always looks like the real key. > **Info:** The menu only lists keys that are set to Virtual, are enabled, and that the player currently owns at least one of. A physical key never shows up here, and a key the player has none of is left out rather than shown as zero. Source: https://www.phoenixplugins.com/docs/phoenix-crates/configurations/customize-menus --- # 🗂️ File Structure ## Overview Everything the plugin writes lives in plugins/PhoenixCrates. ``` plugins/PhoenixCrates/ ├── addons/ ├── crates/ ├── keys/ ├── menus/ ├── translations/ ├── internal/ ├── logs/ ├── config.yml ├── locations.yml ├── internal_storage.yml ├── messages.yml └── rarities.yml ``` ## Folders | Folder | Contents | | ---------------- | ------------------------------------------------------------------------------------------------- | | **crates** | One file per crate. See [Crate Configuration File](crate-configuration-file.md). | | **keys** | One file per key. | | **menus** | The menu layouts. See [Customize Menus](customize-menus.md). | | **addons** | Add-on jars. Drop a new add-on here and restart. | | **translations** | The language files. See [Languages & Translations](languages.md). | | **internal** | Plugin-managed working data. Never edit this by hand. | | **logs** | Written by the logger. See [Log the Actions](../features/log-the-actions.md). | ## Files | File | Contents | | ------------------------ | ---------------------------------------------------------------------------------------------------------- | | **config.yml** | The main settings, the database connection and the license. See [Main Configuration](main-configuration.md). | | **locations.yml** | Every crate placed in the world, with its coordinates and facing. See the note below. | | **internal_storage.yml** | Items saved from the editor that are not tied to a single crate. | | **messages.yml** | Legacy message file, kept for configurations made before translations were introduced. | | **rarities.yml** | The rarities, when the Rarity add-on is installed. | Installed add-ons add one file each: `crate-claim.yml`, `mass-opening.yml`, `ip-limit.yml`, `reward-on-loop.yml`, `redis.yml`, and `logger.yml` for the logger. > **Warning:** locations.yml is what makes a placed crate exist. Deleting it leaves every crate configured but no longer placed anywhere in the world. ## What Lives in the Database Player progress is **not** in these files. Virtual keys, open cooldowns, opened counts, win limits and rerolls are all stored in the database configured in `config.yml`, which is SQLite (a file inside the plugin folder) by default and MySQL if you set it up. ## Moving to Another Server To carry your setup across: * **Configuration** - copy `crates/`, `keys/`, `menus/`, `translations/`, `config.yml`, `internal_storage.yml`, `rarities.yml` and the add-on files. * **Placed crates** - copy `locations.yml`, but only if the worlds come across too. A location pointing at a world that does not exist is skipped. * **Player progress** - point the new server at the same MySQL database, or copy the SQLite file across. > **Danger:** If you copy `config.yml` to a second server, remember that a license only allows a limited number of concurrent sessions. See [Licensing](../plugin-information/licensing.md). ## What to Back Up The whole plugins/PhoenixCrates folder, plus your database if you use MySQL. The editor writes changes to these files as you make them, so a backup taken while the server runs is a valid one. ## Reporting a Problem Turning on `debug` in `config.yml` adds verbose console logging and creates a debug\_output folder with extra diagnostics. Both are useful to attach when you report an issue to us. Source: https://www.phoenixplugins.com/docs/phoenix-crates/configurations/file-structure --- # 🛠️ GeyserMC (Bedrock) ## Overview For Bedrock to work, the most common practice is to have a Java version with Geyser that allows Bedrock clients. **Please note:** This guide will not cover the installation process of Geyser itself. Refer to the Geyser wiki for comprehensive installation instructions: [Geyser Wiki Setup](https://wiki.geysermc.org/geyser/setup/) ## Bedrock Forms > **Info:** These options are in the bedrock section of config.yml. They have no editor option. Bedrock players can use the player menus as native Bedrock forms instead of chest menus. Forms need Floodgate or Geyser to be installed on the same server as the plugin. Without either, everyone gets the chest menus. ```yaml bedrock: forms: true input-modes: [] allow-opt-out: true resize-chest-menus: true icons: enabled: true fallback-url: "" head-url: "https://mc-heads.net/head/%texture%" ``` | Menu | Bedrock form | | --- | --- | | Rewards preview | A button per reward with its chance, or the keys it needs in selective crates. Tapping a reward shows its full description. Reward groups open their own list. | | Reward selection | A button per reward with the keys it needs. Tapping an unlocked reward redeems it, a locked one shows why it is locked. | | Confirmation | A confirm and a cancel button. | | Reroll | A claim and a reroll button, or only claim when no rerolls are left. Closing the form claims the reward. | | Virtual keys | A button per key with the amount owned. | The preview and selection forms list the keys the player owns for that crate at the top. Buttons use the menu titles and the reward, key and button names of the menu files, with colors kept and hex colors removed, since forms cannot show them. The rest of the form text comes from the bedrock section of the translations file. Opening animations are not forms and look the same as on Java. The [Crate Claim](../add-ons/crate-claim/README.md), [Milestones](../add-ons/milestones/README.md) and [Mass Opening](../add-ons/mass-opening/README.md) add-ons have forms for their player menus too, described on their pages. Every other menu, the editor included, stays a chest menu. A button with several click actions asks Bedrock players which one to run, since Bedrock cannot Shift or right-click, and text input opens as a form. If a form cannot be sent, the player gets the chest menu instead and the console says so. ### Forms Turns Bedrock forms on or off for the whole server. When off, Bedrock players get the chest menus like everyone else. ### Input Modes Limits forms to Bedrock players on certain devices, by their input mode: `TOUCH`, `CONTROLLER`, `KEYBOARD_MOUSE` or `VR`. Players on any other input get chest menus. Leave the list empty to give forms to every Bedrock player. ### Allow Opt Out Lets Bedrock players choose chest menus for themselves. The preview, selection and virtual keys forms get a button to switch to chest menus, and `/crates forms` switches between the two. The choice is remembered per player. When this is off, every Bedrock player gets forms and the command is refused. ### Resize Chest Menus Bedrock only draws chest menus of 3 or 6 rows cleanly. With this on, a player menu of 1 or 2 rows is opened with 3 rows and a menu of 4 or 5 rows with 6, for Bedrock players who get chest menus. Java players always see the rows the menu is set to. ### Icons Adds an icon to form buttons. * **enabled** - Turns icons on or off. * **fallback-url** - An image URL for materials the built-in icon table does not know. `%material%` is replaced by the material name in lower case. Leave it empty for no icon. * **head-url** - An image URL for player heads. `%texture%` is replaced by the head's texture id, or the owner's name when it has no texture. Leave it empty for no head icons. Vanilla items use the Bedrock texture of the same item. Items with custom model data or an item model get no icon, since their texture only exists in a resource pack. ## Step by Step Guide ### Step 1: Install Geyser Optional Pack The GeyserOptionalPack is a resource pack specifically designed for Bedrock Edition clients playing on Geyser servers. It adds features and bug fixes to bring the Bedrock experience closer to Java Edition, including improvements in model rendering. A resource pack allows for additional features and bug fixes to be implemented within the limitations of Bedrock Edition. You can download the GeyserOptionalPack from the official GitHub repository: [GeyserOptionalPack GitHub](https://github.com/GeyserMC/GeyserOptionalPack). ### Step 2: Convert Your Java Resource Pack to Bedrock While some complex Java textures require manual conversion, this guide will focus on converting simpler models. There are two main approaches depending on your source for the Java models: #### 2.1 Using Kastle Java to Bedrock Converter: We will be using Kas-tle's java2bedrock conversion tool available at this link: Kas-tle java2bedrock conversion. **Here's how to convert your Java resource pack to Bedrock using java2bedrock.sh:** **2.1.1 Convert the Java Model Engine Resource Pack (Optional):** * Extract the `resource_pack.zip` file from `plugins/ModelEngine/resource_pack.zip`. * Merge the extracted files with your other java resource packs (if needed) and proceed to the next step. **2.1.2 Uploading Your Java Resource Pack:** Unfortunately, in most cases, you won't have a direct URL for your Java resource pack. Here's a workaround using Dropbox: 1. Upload your Java resource pack to Dropbox. 2. Get a direct download link for the file. To do this, access the file in Dropbox and click the "..." menu. Then, select "Share" and copy the link. 3. **Important:** Append "\&dl=1" to the end of the copied URL. This enables direct downloading. **2.1.3 Generate Bedrock Resource Pack:** * Visit the java2bedrock.sh conversion link ([Kas-tle java2bedrock conversion](https://github.com/Kas-tle/java2bedrock.sh/issues/new?assignees=\&labels=conversion\&template=pack-conversion.yml\&title=%5BPack%5D%3A+)). * Paste your modified Dropbox download URL (with "\&dl=1") into the "Java Pack Direct Download URL" option. * Follow the converter's instructions to complete the conversion process. * Click on "Submit new issue" to initiate the conversion. * Wait for the conversion to be over **2.1.4 Using the Converted Resource Pack:** * Once the conversion is complete, download the generated Bedrock resource pack. * Place the converted Bedrock resource pack in the `Geyser > packs` folder on your server. * Place the file `geyser_mappings.json` file in the `Geyser > custom_mappings` folder on your server. ## Bedrock Skull Textures Bedrock cannot load player head textures on its own, so opening animations that use heads need every head registered in Geyser's `skin-hashes` option, following the [Geyser custom skulls guide](https://geysermc.org/wiki/geyser/custom-skulls/). Add the part of each link after `http://textures.minecraft.net/texture/`.
Christmas Crate Animations add-on | Animation | Heads | | --- | --- | | Santa Claus | [Santa](http://textures.minecraft.net/texture/14e424b1676feec3a3f8ebade9e7d6a6f71f7756a869f36f7df0fc182d436e), [Kid](http://textures.minecraft.net/texture/5c8d3e33cb1ca1aacf9dad322f4f7519cd7dfa509c33b7dd87b5398ee0ac17a8) | | Elf | [Present](http://textures.minecraft.net/texture/45368f5635ff6c3407f0f356c5b6e0947bcd5e38490c9aa8b8b582a4f21ae3cb), [TV](http://textures.minecraft.net/texture/7bbe8fd1aa39f15076e884dfe6ddb9a3f3761db31e2b1f9940b5dfd34d1c4d), [Elf](http://textures.minecraft.net/texture/4ec5455f43426ca1874b5c7b4a492ec3722a502f8b9599e758e133fed8b3c1e4) | | Christmas Tree | [Ornament](http://textures.minecraft.net/texture/2db24dc262631663ba1e3e3398645013dc5cd2331ec9b9f3eb26855a0b104baa) | | Presents, every animation | [White](http://textures.minecraft.net/texture/e47b37e67a89159bf4acc4a44d4328f4efc0181605142288e5eed1ab8aed913c), [Green](http://textures.minecraft.net/texture/28dc3c84491c4ff103de6ea01880e2d83432cd4878b84d6b43253cc51fd978e7), [Blue](http://textures.minecraft.net/texture/5b85e29f29ec9a90e482ea5b8391bcb4560bbae0dcd15d7ce1d86016b4356e98), [Purple](http://textures.minecraft.net/texture/e9e39d91c04c30cc1f530fee798eed279dde60f95c2e1d155c0fdd361d0962ed), [Yellow](http://textures.minecraft.net/texture/abd98792dd92d9719894341ac9012a584c4428558fd2c712f78e5f0d4da85470), [Red](http://textures.minecraft.net/texture/45368f5635ff6c3407f0f356c5b6e0947bcd5e38490c9aa8b8b582a4f21ae3cb) | | Ornaments, every animation | [Red](http://textures.minecraft.net/texture/c6f518cdcc30da6e21833f3d90366c3703c27a0170b928fb15b5e51816f4e15e), [Orange](http://textures.minecraft.net/texture/ad53ec557eca3c5a08be794164b2e9b6a7fb703a33388f0a9c02c3b16c2945e4), [Yellow](http://textures.minecraft.net/texture/c0dac2501c9e756767f6943323ad5955b5a975bb09be12364ef80ea3f1ca7b06), [Lime](http://textures.minecraft.net/texture/9b68ca27a304d21e2e8a99a748093f95ae5b148c59d7af0b5670f1d15202502e), [Green](http://textures.minecraft.net/texture/41e7340dd4c009c43c398bc40d9aed147014057a7f43722c6cdc9b45837015f5), [Dark Green](http://textures.minecraft.net/texture/b605c66347f327c5eed27672d7a0e347f4e36c006353c91b78935ba28116504), [Dark Aqua](http://textures.minecraft.net/texture/623323728e9df5c38053176465da1f4c855cd6a3a5f3928a223150e680441a8f), [Dark Blue](http://textures.minecraft.net/texture/86f901bbde8cd67520fa0c7ae461ee7ca66ce3c4c481cd5c12fb43712eea6b63), [Aqua](http://textures.minecraft.net/texture/29273cb3c79ecd53c13b4d71e9afd919d1dcba1410c2538b8fe099ecd61a6cb4), [Very Dark Blue](http://textures.minecraft.net/texture/17f85d2edc530c4f33a35c7cccefea9528812137ae13e040e1169032b4f39c53), [Purple](http://textures.minecraft.net/texture/431d901ceeb38d0f9c63ae66cd5a46e33a09c0349d383f5a5c7c3726e0e0e371), [Magenta](http://textures.minecraft.net/texture/94b3aed343afb22d536ca60cf95e56cf334c68bc41b1369ec9b06f4dd050e6cb), [Pink](http://textures.minecraft.net/texture/87f5c30a117ee8ae80c7858ac42c67b2bbe5e600a60ceeaa2817f862dd89333d) |
Source: https://www.phoenixplugins.com/docs/phoenix-crates/configurations/geysermc-bedrock --- # 🎰 GUI Animation Files ⭐ > **Info:** Folder: **plugins/PhoenixCrates/animations**. Premium only. ## Animations Folder The animations folder of Phoenix Crates holds the layout, timing and sounds of the GUI animations. It is created the first time the plugin starts. * The CSGO animation - csgo.yml * The Colored CSGO animation - colored-csgo.yml * The Spotlight animation - spotlight.yml * The Rainbow animation - rainbow.yml * The Flip Cards animation - flip.yml * The Blackout animation - blackout.yml * The Snake animation - snake.yml * The Ring Carousel animation - ring-carousel.yml Out of the box, every value matches the animation as it has always played, so nothing changes until you edit a file. Run /crates reload after an edit. The title, filler item, marker items and chance lore of an animation stay per crate and are changed in the [In-Game Editor](../main-features/animations/opening-animations/post-open-animations.md#csgo-gui). The files only decide where things are, how long the spin takes and what it sounds like. ## CSGO Settings ```yaml type: CSGO_GUI name: CSGO (GUI) description: Horizontal scrolling roulette icon: CHEST rows: 3 slots: track: [10, 11, 12, 13, 14, 15, 16] winning: 13 markers: [4, 22] timing: spin-steps: 79 slow-down-steps: min: 2 max: 5 result-hold-ticks: 50 sounds: start: - BLOCK_NOTE_BLOCK_HAT;0.3;1.6 tick: - UI_BUTTON_CLICK;0.12;1.1 win: - BLOCK_NOTE_BLOCK_HARP;0.36;1.76 - BLOCK_NOTE_BLOCK_HARP;0.36;2.0 - ENTITY_PLAYER_LEVELUP;0.45;1.6 ``` * rows - The number of rows of the menu, from 1 to 6. * slots.track - The slots the rewards move through, in the order they move. Rewards enter at the last slot and leave at the first one. The track does not have to be a straight line. * slots.winning - The track slot the winning reward stops on. If it is not on the track, the middle of the track is used. * slots.markers - The slots that show the marker items pointing at the winning slot. * timing.spin-steps - How many times the rewards move before stopping. A higher number makes the spin longer. * timing.slow-down-steps - The last steps before the stop play slowly. A random number between min and max is picked every opening. * timing.result-hold-ticks - How long the result stays on screen before the menu closes, in ticks (20 ticks = 1 second). * sounds - The sounds played when the spin starts, on every step, and when it stops. Each sound is written as SOUND;volume;pitch. Leave a list empty (\[]) to play no sound. Slots outside the menu, and duplicates, are skipped with a warning in the console. ## Other Animations Every file starts with the same type, name, description, icon and rows as CSGO, and every animation has sounds.start, sounds.win and timing.result-hold-ticks. The rest differs per animation. colored-csgo.yml has the same settings as CSGO. | File | Setting | What it does | |---|---|---| | spotlight.yml | slots.rewards | The reward slots, one per lane, in the order the beam sweeps them. The beam lights the whole column of a lane. | | | slots.winning | The lanes the beam can stop on. | | | timing.laps | How many full sweeps the beam makes before stopping. | | | timing.slow-down-steps | The number of slow steps before the stop, picked at random between min and max. | | | sounds.scan, sounds.scan-pitch-rise | The sound of each beam step, and how much its pitch rises by the end of the spin. | | rainbow.yml | slots.winning | The slot the reward is revealed in. | | | slots.lock-order | The slots that lock in, in order. | | | slots.lock-group-size | How many slots of the order lock together. | | | timing.chaos-ticks, timing.lock-interval-ticks, timing.slow-down-ticks | How long the colours spin before the first lock, the time between locks, and how long the final slow-down takes. | | | sounds.tick, sounds.lock, sounds.slow-down | The spin sound, then a sound for each lock and each slow-down step. | | flip.yml | slots.cards | The card slots. | | | slots.winning | The cards the reward can end up on. | | | timing.slow-down-ticks | The wait after each of the last cards vanishes, in order. Earlier cards vanish every tick. | | | sounds.reveal, sounds.vanish, sounds.final-vanish | The sound of a card turning, of a card vanishing, and a sound for each of the last cards vanishing. | | blackout.yml | slots.winning | The slot the reward is revealed in. | | | slots.rings | The groups of slots that lock together, outside in. Each group is written as "0, 8, 18, 26". | | | timing.chaos-ticks, timing.ring-interval-ticks, timing.slow-down-ticks | How long the slots flash before the first group locks, the time between groups, and how long the final slow-down takes. | | | sounds.ring, sounds.ring-pitch-step, sounds.slow-down, sounds.slow-down-pitch-step | The sound of each group locking and of each slow-down step, and how much higher each next one plays. | | snake.yml | slots.path-1, slots.path-2 | The slots each snake moves through, in order, until both meet at the winning slot. | | | timing.ticks-per-step, timing.pause-ticks | How fast the snakes move, and the pause after they meet. | | | sounds.step, sounds.meet | A sound for each step, and the sound when the snakes meet. | | ring-carousel.yml | slots.ring | The slots of the ring, in the order rewards move. | | | slots.winning | The ring slots the reward can stop on. | | | slots.marker-path, slots.corners, slots.interior | The slots of the outer marker that runs around the ring, the corner glass and the inner glass. | | | timing.spin-steps, timing.slow-down-steps | The same as CSGO. | In the lists for a sound played once per lock, step or card, the first entry plays the first time, the second entry the second time, and the last entry repeats after that. Write several sounds in one entry with commas to play them together. ## Creating Your Own Animation Copy one of the files to a new file in the same folder, for example csgo.yml to vertical.yml, keep its type and change the slots. After /crates reload, it appears as a new opening animation named after the file (VERTICAL) that you can pick for any crate, with the name, description and icon from the file. A vertical roulette in a 5-row menu: ```yaml type: CSGO_GUI name: Vertical Roulette description: Rewards fall down the middle column icon: HOPPER rows: 5 slots: track: [4, 13, 22, 31, 40] winning: 22 markers: [21, 23] ``` > **Info:** The file name cannot match an animation that already exists, such as ROULETTE. Such a file is skipped with a warning in the console. Source: https://www.phoenixplugins.com/docs/phoenix-crates/configurations/gui-animation-files --- # 🖼️ In-Game Menu Editor > **Info:** Available in the Premium+ plan of Phoenix Crates. The editor changes the same menu files described in [Customize Menus](customize-menus.md). A menu saved in-game is live straight away, with no reload. ## Opening the Editor There are two ways in, both needing phoenixcrates.command.editor:

Editor (Menu Layouts)

Menu Layouts (Default Rewards Preview)

* **Editor > Menu Layouts** lists every menu file by its name. Left-click one to edit it. * /crates editLayout \ opens one menu directly, by its file name without `.yml`, such as `default_rewards_preview`. Your own menu files, such as a second preview menu for one crate, are listed too. Add-on menus are listed once their add-on is installed. The menu opens as it looks to players, with every button in place. The slots where the menu shows its own content, such as the rewards or the keys, appear as lime panes. > **Warning:** While you edit, your hotbar holds the editor tools. Your own hotbar items are saved to a backup file first, and the editor does not open if that backup fails. They come back when you close the menu. ## Editing a Button With no tool turned on, click any button to open its editor. Every field there changes that one button: | Field | Description | | --- | --- | | Look | Drop an item here to copy its material, custom model data, item model and head texture. | | Display Name | The name of the button. | | Lore | The lore of the button. | | Amount | How many are shown, 1 to 64. | | Glow | Makes the button glow. | | Hide Attributes | Hides attack damage and similar lines. | | Custom Model Data | The custom model data of the button. | | Click Actions | The [actions](../plugin-information/action-types.md) run when the button is clicked. | | Hide Tooltip | Hides the tooltip entirely. | | Tooltip Style | The tooltip style, such as `minecraft:blue`. | | Delete | Removes the button. | A field only appears when the button has that option, and Delete only appears on decoration. The plugin's own buttons, such as the page arrows, can be moved and restyled but not deleted. ## Drag and Drop Pick up any item from your inventory and drop it: * **On a button** to give the button that item's look. The name, lore and actions stay. * **On an empty slot** to add the item as new decoration, with its look, name and lore. This is the quickest way to put a custom item from a resource pack or a textured head into a menu. ## Hotbar Tools Right-click a tool while holding it, or click it in your inventory. The first three are modes: one is on at a time, it glows while on, and using it again turns it off. | Slot | Tool | Description | | --- | --- | --- | | 1 | Reordering | Click a button, then click where it should go. If that slot is taken, the two buttons swap places. | | 2 | Item Slots | Click an empty slot to add it to the menu's item slots, or click a lime slot to remove it. Also repeats decoration: click it to select it, then click empty slots to put it there too. | | 3 | New Button | Click an empty slot to place a new button there. Its editor opens straight away. | | 4 | Add a Row | Makes the menu one row taller, up to 6. | | 5 | Remove a Row | Makes the menu one row shorter, down to 1. | | 8 | Menu Title | Type the new title, in a dialog where the server supports one, otherwise in chat. | | 9 | Templates & Text | Opens the parts of the menu that have no slot of their own. | A slot group always keeps at least one slot, and a button locked to a single slot cannot be repeated. Removing a row does not delete what was on it. Anything left below the last row is hidden, you are told how many slots, and adding the row back shows it again. ## Templates & Text Templates are buttons the menu draws by itself, once per entry, rather than placing them on a slot. Editing one restyles every copy of it. Text entries are the lines the menu adds by itself rather than a button you place. ## Saving Close the menu to save. The file is written, the menu is live for players at once, and your hotbar is given back. If you opened it from the Menu Layouts list, the list opens again. The menu is also saved when you leave the server, when you die, and when the server stops. Dying ends the session, and your own hotbar items drop with the rest of your inventory. If the server crashes mid-edit, your hotbar is given back the next time you join. While editing, the tools cannot be dropped, placed or moved, and you cannot swap hands. > **Info:** Two admins can open the same menu at the same time. The second is warned, and whoever closes last overwrites the other's changes. Source: https://www.phoenixplugins.com/docs/phoenix-crates/configurations/in-game-menu-editor --- # 🌍 Languages & Translations ## Translations Every line the plugin can print lives in one file: ``` PhoenixCrates/translations/translations.en.yml ``` Messages to players, command replies, the holograms, the menus and the whole in-game editor are all in there. Edit it, run /crates reload, and the new text is live. To stop a message from appearing at all, set it to `''` (empty quotes). Every add-on brings its own file into the same folder, named after itself, so the Rarity messages are in `rarity.translations.en.yml` and the Lootbox ones in `lootbox.translations.en.yml`. They work exactly like the main file. > **Info:** Older versions kept this in **messages.yml**. On the first start after upgrading, the plugin copies your text across into the translation file on its own and renames the old one to **old_messages.yml**. Editor text is not carried over, since the old file never had it. ## Language The language the plugin loads is set in config.yml, or from **Editor > Settings > Language**. ```yaml language: UNDEFINED ```

Editor > Settings

UNDEFINED is the value a fresh install starts on, and it behaves as English. It is also the one value the editor will not let you pick again once you have chosen a real language. The picker lists every language the plugin knows about:
CodeLanguageFile
EN_USEnglish (United States)translations.en.yml
AR_SAArabic (Saudi Arabia)translations.ar.yml
PT_BRPortuguese (Brazil)translations.br.yml
PT_PTPortuguese (Portugal)translations.pt.yml
ES_ESSpanish (Spain)translations.es.yml
FR_FRFrench (France)translations.fr.yml
DE_DEGerman (Germany)translations.de.yml
IT_ITItalian (Italy)translations.it.yml
NL_NLDutch (Netherlands)translations.nl.yml
SV_SESwedish (Sweden)translations.sv.yml
PL_PLPolish (Poland)translations.pl.yml
CS_CZCzech (Czechia)translations.cs.yml
RU_RURussian (Russia)translations.ru.yml
TR_TRTurkish (Turkey)translations.tr.yml
EL_GRGreek (Greece)translations.el.yml
HI_INHindi (India)translations.hi.yml
ID_IDIndonesian (Indonesia)translations.id.yml
VI_VNVietnamese (Vietnam)translations.vi.yml
JA_JPJapanese (Japan)translations.ja.yml
KO_KRKorean (South Korea)translations.ko.yml
ZH_CNChinese (Simplified)translations.zh.yml
The file name uses the short form rather than the code, which is worth knowing before you go looking for it — PT_BR writes `translations.br.yml`, not `translations.pt_br.yml`. > **Warning:** Only the languages included in the build you are running can be picked. The rest are dark grey in the editor and clicking skips straight past them. At the moment the plugin ships with English, so the way to run it in another language is to translate the file yourself. ## Setting it from a command /crates setLanguage \ switches language without a full reload. It only accepts a language the build actually ships, and answers `No translation is bundled for language ...` for anything else. While `language` is still UNDEFINED, anyone joining with phoenixcrates.admin is offered a suggestion in chat, picked from where the server appears to be, with the command ready to click. Setting a language yourself stops it. ## Translating the plugin Everything sits under the short language code at the top of the file, and the value is either a line or a list of lines. Translate the right-hand side and leave the keys and the placeholders alone. ```yaml en: unknown-argument: "&cUnknown Argument!" no-permission: "&cYou are not allowed to do this! (Need %permission%)" ``` ```yaml en: error-processing: - "&cAn error occurred while processing this action (Check console):" - "&7%message%" ``` Anything wrapped in `%` is filled in by the plugin, so `%player%`, `%permission%` and `%message%` have to survive the translation to keep working. Colour codes can be moved around freely. > **Info:** English is always loaded first, and the chosen language is laid over the top of it. A key you have not translated yet falls back to its English line rather than printing blank, so a file can be translated a piece at a time. > **Info:** Keep a copy of your translated file before updating the plugin. New keys are added to it automatically — the console prints `Missing value for key "..."` and writes the English default straight into your file — but it is the file your work lives in. ## The editor is translated too Everything under the `editor` keys is the text of the in-game editor — the name and description of every option. Translating those is optional, and skipping them leaves the editor in English while your players see your language. ## Rich Text (MiniMessage) Phoenix Crates understands [MiniMessage](https://docs.advntr.dev/minimessage/format.html) tags, like ``, `` or ``, on top of the classic `&` colour codes. This lets you use gradients, hover text and clickable links, none of which `&` codes can do. ### Format | Example | Result | | -------------------------------------------------------- | -------------------------------------- | | `Hello` | Red text | | `<#ff8800>Hello` | Any hex colour | | `Phoenix Crates` | Text fading from one colour to another | | `Warning` | Bold and underlined | | `Legendary!` | Each letter a different colour | | `Hover` | Text with a tooltip | | `Our site` | Text that opens a link | A closing tag is optional. `Hello` colours the rest of the line, while `Hello there` colours only the first word. ### Where it works | Place | Notes | | ----------------------------- | ------------------------------------------------- | | Chat messages | Everything in the language file that reaches chat | | Crate holograms | The floating text above a crate | | Reward names and lore | Including the rarity group display item | | Menu titles, item names, lore | Anywhere the editor lets you write text | ### Where it doesn't work Titles, subtitles, the action bar and boss bars only understand `&` codes. Those are sent as raw legacy text, so a tag in one of them is shown to the player exactly as you typed it. ### Usage notes * Legacy `&` codes, including `&#RRGGBB` hex, keep working everywhere exactly as before. * In **chat messages**, use one style per line. A chat line is only sent as MiniMessage when it contains no legacy colour codes at all, so mixing `&c` and `` in the same line falls back to legacy and prints the tag. * Everywhere else the two can be mixed freely. A hologram line or an item name is read as MiniMessage as soon as it contains a tag, and any `&` codes in it are converted along with it. * A tag the server does not recognise is left in the text as written rather than being dropped, which is what keeps resource pack glyph tags working. > **Warning:** MiniMessage needs [Paper](https://papermc.io/) or a fork of it. On plain Spigot the tags are printed exactly as you typed them, so stay on `&` codes there. Source: https://www.phoenixplugins.com/docs/phoenix-crates/configurations/languages --- # 📁 Main Configuration ## General Configuration Below is a list of options that are in the config.yml and a description of what they do. * **Knockback** - This option allows you to change the knockback that the player takes when trying to open a crate with the wrong key * **Quick-Open** - This option will enable players to quick open when holding the crate key and shifting right-clicking it. * **Render-Radius** - This option allows you to define the distance that effects will need to stop showing to the player. * **Disable Confirmation Menus** - This option allows you to skip confirmation menus (open money cost, selective reward mode) so players go straight to the action. * **Key Mainhand Requirement** - This option allows you to define whether players will need to have a key in their main hand to open crates. Enabled by default. * **Event Actions** - The actions every crate runs on open, win, close and denied, unless the crate has its own. See [Event Actions](../main-features/crates/README.md#event-actions). All of these options can also be changed in-game from the editor's Settings menu.

Editor > Settings

The following ones exist only in the file: * **Hologram Refresh Rate** - How many ticks pass between two refreshes of the built-in crate holograms. A higher value updates placeholders in the hologram less often and costs less. Values below 10 are raised to 10. * **Internal Pool Size** - `performance.internal-pool-size`, the number of threads the plugin uses for its own background work such as database reads and animation preparation. The default of `5` suits almost every server. Raise it only if you run a very large network and see the plugin queueing work. * **Notify If New Version** - Whether players with the admin permission are told on join that a newer version of the plugin is out. * **Join Reminder** - Lite only, sends players with `phoenixcrates.admin` a message on join about the premium version. * **Send Server Statistics** - Lite only, `send-server-statistics`. Sends the server version, software, join domains and player count to our servers so the server shows on the website. See [Server Statistics](../plugin-information/licensing.md#server-statistics). * **Decimal Separator** - `formatting.decimal-separator`, the character players see between the whole and decimal part of reward chances in the preview and opening menus. Set it to `,` to show `1,5%` instead of `1.5%`. The editor always uses a dot. * **Debug** - Adds verbose logging to the console, useful when reporting an issue. * **Backups Keep** - `backups.keep`, how many backup zips are kept. When a new one is saved, the oldest past this number are deleted. The default is 10. See [Backups & Health Check](../plugin-information/backups-and-health-check.md). * **Product License** - Premium only, your license key. See [Licensing](../plugin-information/licensing.md). ## Broadcast Message (Lite) The Lite version has a single broadcast message shared by every crate, set in `config.yml`. The Premium version does not use this option, because there the broadcast message is configured per crate from the editor. ```yaml crates: broadcast-message: - '&ePlayer &a%player% &ejust got &6"%reward%" &ereward from the crate &6%crate%&e!' ``` ## Event Actions Each event is a list of [actions](../plugin-information/action-types.md). An empty list runs nothing. ```yaml event-actions: open: [] win: - '[SOUND] minecraft:entity.player.levelup; 1; 1' close: [] denied: [] ``` ## Placeholder Cost Engine The currency used by every crate whose open cost runs on the Placeholder engine. It is also editable from the crate's open cost, and each field is explained on [Open Money Cost](../main-features/crates/open-money-cost.md#placeholder-currency). ```yaml cost-engines: placeholder: display-name: Tokens balance: '' withdraw-command: '' whole-number: false ``` ## Commands The virtual keys and the pay key commands can each be turned off, and given an alternative name that is registered next to the default one, which is useful when another plugin already claims the same command. Pay key is disabled by default, so `/crates payKey` only exists after enabling it here. Changes apply on `/crates reload`, without a restart. An alternative name another plugin already uses is not registered, and the console says so. The command still works under `/crates`. ```yaml commands: virtual-keys: enabled: true alternative: virtualkeys pay-key: enabled: false alternative: paykey ``` ## Bedrock How Bedrock players joining through Geyser see the player menus: native forms, chest menu sizes and form icons. Every option is explained on the [GeyserMC (Bedrock)](geysermc-bedrock.md#bedrock-forms) page. ## Database The plugin also supports databases. The available options are mysql and sqlite. ```yaml database: type: sqlite address: localhost name: phoenixcrates_db port: 3306 username: phoenixuser password: phoenixpassword table-prefix: pc ``` On MySQL and MariaDB the plugin creates its tables in the utf8mb4 character set, so names, lore and messages can hold emoji and any symbol. Tables made in another character set by an older version are converted once at startup, with one console line per table. If a table cannot be converted, a console warning names it. ### Connection Pool When using MySQL, the connection pool can be tuned under `database.hikari`. The defaults are good for a normal server, and are worth revisiting only if you run a large network or your database is on a different machine. ```yaml database: hikari: maximumPoolSize: 10 minimumIdle: 5 idleTimeout: 300000 maxLifetime: 1700000 connectionTimeout: 30000 fetch-timeout: 5000 ``` | Option | Description | | ----------------- | ------------------------------------------------------------------------------------------------- | | maximumPoolSize | The most connections the plugin will open at once. | | minimumIdle | How many connections are kept open while idle. | | idleTimeout | How long, in milliseconds, an idle connection is kept before being closed. | | maxLifetime | How long, in milliseconds, a connection lives before being replaced. Keep it under your MySQL `wait_timeout`. | | connectionTimeout | How long, in milliseconds, to wait for a free connection before giving up. | | fetch-timeout | How long, in milliseconds, to wait for a player's data before treating it as unavailable. | > **Info:** If players are told to wait while their data loads when they open a crate, raising `fetch-timeout` or `maximumPoolSize` is usually the fix. Save the file and reload the plugin to apply the changes. ## Messages & Translations Every message the plugin sends lives in the translation file rather than in config.yml, and `language` decides which one is loaded. Editing the wording, silencing a message, and running the plugin in another language are all on [Languages & Translations](languages.md). ## MiniMessage On top of the usual `&` colour codes, text accepts MiniMessage tags for gradients, hover text and clickable links. It has its own page: [Rich Text (MiniMessage)](languages.md#rich-text-minimessage). Source: https://www.phoenixplugins.com/docs/phoenix-crates/configurations/main-configuration --- # 📰 Reward Config Editing > **Danger:** If you copy and paste a reward, make sure to change its identifier, as it must be unique. ## Edit Rewards You can also edit the rewards through the configuration file if you prefer to manage everything manually. ## Reward Options Each entry under `rewards` carries the reward's own settings alongside its items. Every one of them is also editable from [Edit Reward](../main-features/rewards/edit-reward.md), so the table below is mostly useful when generating crates outside the game or editing many rewards at once. | Option | Description | | ------------------------ | ---------------------------------------------------------------------------------------------- | | identifier | Unique id of the reward. Changing it loses the player progress tied to it. | | enabled | Whether the reward can be won at all. | | display-item | The item shown in the preview, never given to the player. | | win-items | The items the player receives, numbered from `'0'`. | | win-commands | Commands run when the reward is won. | | weight | Chance share in Random mode. Higher means more often. | | win-limits | How many times one player can win it. `-1` is unlimited. | | global-win-limit | How many times everyone combined can win it. `-1` is unlimited. | | guaranteed-win | Openings after which the reward is guaranteed. `-1` disables it. | | required-keys | Keys the reward costs in Selective mode. | | required-permissions | Permissions a player must have for the reward to be available. | | restricted-permissions | Permissions that prevent a player from winning the reward. | | broadcast | Whether winning it announces the crate's broadcast message. | | allow-win-message | Whether the winner gets a message. | | notification-type | Where that message goes, `CHAT` or `ACTION_BAR`. | | share-players-online | Whether every online player also receives the reward. | `max-win` caps how much of each list is handed out per win, picked at random, with `-1` meaning the whole list. `item-weights` and `command-weights` give each entry a weight in list order, so an entry with a higher weight is picked more often. Weights go from `0` to `100` and a missing entry counts as `100`: ```yaml max-win: item-amount: 1 command-amount: -1 item-weights: - 50 - 30 - 20 command-weights: [] ``` `cooldowns` holds the three reward cooldowns, in seconds. `time-limited-expiry` is written by the plugin to remember when the time limited window ends, and is not meant to be set by hand: ```yaml cooldowns: win-limit-cooldown: 0 global-win-limit-cooldown: 0 time-limited-cooldown: 0 time-limited-expiry: 0 ``` `alternative-reward` is the reward given once a limit is reached, with its own item, commands and toggles: ```yaml alternative-reward: enabled: false reward: item: material: DIAMOND_PICKAXE display-name: '&aAlternative Item' amount: 1 virtual: false broadcast: false allow-win-message: true share-players-online: false commands: [] ``` Setting `virtual` to `true` keeps the alternative item as a display only, so the player receives nothing but the commands still run. ## Format: The following option is the method you can use for vanilla items. \ **Note:** This option cannot be configured through the in-game editor, as the editor uses the bukkit format to also support custom properties and modded Items. ```yaml display-item: material: PAPER win-items: '0': material: PAPER ``` ## Material: Allows you to set a material on your item. > ```yaml > material: TEXT > ``` > > > **Supported material values:** > > > > * Vanilla (`DIAMOND`). > > * [HeadDatabase ](https://www.spigotmc.org/resources/head-database.14280)(`hdb:id`) > > * [ItemsAdder](https://www.spigotmc.org/resources/%E2%9C%A8itemsadder%E2%AD%90emotes-mobs-items-armors-hud-gui-emojis-blocks-wings-hats-liquids.73355) (`itemsadder:namespace:id`) > > * [Nexo](https://mcmodels.net/products/13172/nexo?srsltid=AfmBOoocUPY8FdXiOkDqM4Rml1Gs449TBz0x_FoKwJBgG8IYvkvMNJ2H) (`nexo:id`) > > * [Mythic Items](https://mythiccraft.io/index.php?ewr-porta) (`mythicitem:id`) > > * [MMOItems](https://www.spigotmc.org/resources/%EF%B8%8F%E2%9A%94%EF%B8%8F-mmoitems-%E2%9A%94%EF%B8%8F-items-weapons-armor-sets-tiers-editor-gui-skills.39267) (`mmoitem:type:id` ) > > * [ExecutableItems](https://www.spigotmc.org/resources/%E2%9A%94%EF%B8%8Fexecutableitems-%E2%AD%90-customize-all-items-add-abilities-%E2%AD%90-ai-items-generation-on-the-discord-%E2%9C%85.83070) (`executableitem:id`) > > * [CraftEngine](https://modrinth.com/plugin/craftengine) (`craftengine:id`) > > > > > - [Materials Link](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html) > **Info:** For hooked items (ItemsAdder, Nexo, MMOItems, ExecutableItems, CraftEngine, etc.), the `id` is the custom item's own identifier as registered in that plugin. ## Hooked Materials A hooked material is the hook name, a colon, then the id the other plugin knows the item by. Only the first colon separates the two, so everything after it reaches that plugin exactly as written. > **Danger:** The separator is a colon, never a dash. `itemsadder-medieval_crates-crate_key` is read as a plain material name, matches none, and is reported as an unknown material in the console. The hook is never reached. The same value written with colons resolves. | Hook | Value | Example | | --------------- | ------------------------ | ------------------------------------ | | ItemsAdder | `itemsadder:namespace:id`| `itemsadder:medieval_crates:crate_key` | | MMOItems | `mmoitem:type:id` | `mmoitem:SWORD:cutlass` | | Nexo | `nexo:id` | `nexo:ruby_sword` | | CraftEngine | `craftengine:id` | `craftengine:default:ruby_sword` | | Mythic Items | `mythicitem:id` | `mythicitem:excalibur` | | ExecutableItems | `executableitem:id` | `executableitem:magic_wand` | | HeadDatabase | `hdb:id` | `hdb:1234` | ItemsAdder and MMOItems ids are built from two parts of their own, so those values have three parts in total. `itemsadder:crate_key` sends only `crate_key` to ItemsAdder and resolves to nothing, and an MMOItems value with no type is rejected. For the rest, pass the id exactly as the plugin registers it, namespace included where it has one. > ```yaml > material: itemsadder:medieval_crates:crate_key > ``` The same values work in every `material` field of the plugin, the [menus](customize-menus.md#item-material) included. > **Info:** When the hook name is valid but the plugin is not installed, or the id resolves to nothing, the item becomes a placeholder rather than the crate failing to load. On a reward it names the hook in its lore, in a menu it is a barrier. ## Display Name Allows you to set a display name on your item. > ```yaml > display-name: '&eExample Reward' > ``` > **Success:** This option also supports [MiniMessage](https://docs.advntr.dev/minimessage/format) Format. ## Lore: Allows you to set a custom lore on your item. > ```yaml > lore: > - '&cLine 1' > - '&eLine 2' > - '&aLine 3' > ``` > **Success:** This option also supports [MiniMessage](https://docs.advntr.dev/minimessage/format) Format. ## Model Data: Allows you to set custom model data on your item. > ```yaml > model-data: 1000 > ``` ## Item Model: Allows you to set a custom [Item Model](https://minecraft.wiki/w/Items_model_definition) (the modern resource-pack item model component) on your item. > ```yaml > item-model: 'minecraft:custom_paper' > ``` > **Warning:** This option requires the resource pack to actually define the referenced item model. If the model doesn't exist, the item will simply render with its base material's texture. ## Amount: Allows you to set a fixed stack size on your item. > ```yaml > amount: 1 > ``` ## Enchants: Allows you to set enchants on your item. > ```yaml > enchants: > - 'PROTECTION:1' > - 'UNBREAKING:1' > ``` > > > * [Enchantsments Link](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html) ## Item Flags: Allows you to set item flags on your item, to hide certain tooltip sections (enchants, attributes, "unbreakable", etc). > ```yaml > flags: > - 'HIDE_ENCHANTS' > ``` > > > * `item-flags` is accepted as an alias, used when `flags` is absent. > > * [Item Flags Link](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/ItemFlag.html) ## Tooltip Style: Allows you to set a custom tooltip style/texture (resource-pack defined) for the item's tooltip box. > ```yaml > tooltip-style: 'minecraft:gui/sprites/widget/inventory_tooltip' > ``` > **Warning:** Requires server version **1.21.2+**. On older server versions this option is ignored. ## Enchantment Glint Override: Allows you to force the enchantment glint (the shimmering/glowing effect) on or off, independently of whether the item is actually enchanted. > ```yaml > enchantment-glint-override: true # Boolean (`true`/`false`) > ``` > **Warning:** Requires server version **1.20.5+**. On older server versions this option is ignored. ## Banner Meta: Allows you to add banner patterns to your item. Works on banners, and on shields (and other blocks that carry banner data). > ```yaml > banner-meta: > - 'RED;STRIPE_BOTTOM' > - 'WHITE;CROSS' > ``` > > > * Each entry follows the format `;`. > > * [DyeColor Link](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html) / [PatternType Link](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/banner/PatternType.html) ## Armor Trim (Material & Pattern): Allows you to apply an armor trim to your item, by setting both the trim material and the trim pattern. > ```yaml > trim-material: IRON > trim-pattern: DUNE > ``` > > > * Both options must be set together. > > * [Armor Trim Materials](https://minecraft.wiki/w/Smithing#Trim_materials) / [Armor Trim Patterns](https://minecraft.wiki/w/Smithing#Trim_patterns) > **Warning:** Requires server version **1.20+**. On older server versions this option is ignored. ## Potion Effects: Allows you to add custom potion effects to a potion item. > ```yaml > potion-effects: > - 'speed;1200;1' > - 'regeneration;600;0' > ``` > > > * Each entry follows the format `;;`. > > * [Potion Effect Types Link](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html) ## RGB: Allows you to set a custom color on your item, using raw RGB values. > ```yaml > rgb: '38, 192, 210' > ``` > > > * Format: `R, G, B` (each `0`-`255`). Applies to leather armor, potions, maps and firework effects. ### Item Config Example The following is an example of a reward with its display item and the actual reward. ```yaml '2': identifier: reward_1759509999284 display-item: material: PAPER # Legacy colors support display-name: '&#C00BD6Paper' lore: - '&cCustom Paper Item' model-data: 1000 enchants: - 'PROTECTION:1' flags: - 'HIDE_ENCHANTS' win-items: '0': material: PAPER # Mini Message Support display-name: 'Paper' lore: - 'Custom Paper Item' model-data: 1000 enchants: - 'PROTECTION:1' flags: - 'HIDE_ENCHANTS' ``` Source: https://www.phoenixplugins.com/docs/phoenix-crates/configurations/reward-config-editing --- # 🎨 Rich Text (MiniMessage) ## Information Phoenix Crates understands [MiniMessage](https://docs.advntr.dev/minimessage/format.html) tags, like ``, `` or ``, on top of the classic `&` colour codes. This lets you use gradients, hover text and clickable links, none of which `&` codes can do. ## Format | Example | Result | | -------------------------------------------------------- | -------------------------------------- | | `Hello` | Red text | | `<#ff8800>Hello` | Any hex colour | | `Phoenix Crates` | Text fading from one colour to another | | `Warning` | Bold and underlined | | `Legendary!` | Each letter a different colour | | `Hover` | Text with a tooltip | | `Our site` | Text that opens a link | A closing tag is optional. `Hello` colours the rest of the line, while `Hello there` colours only the first word. ## Where it works | Place | Notes | | ----------------------------- | ------------------------------------------------- | | Chat messages | Everything in the language file that reaches chat | | Crate holograms | The floating text above a crate | | Reward names and lore | Including the rarity group display item | | Menu titles, item names, lore | Anywhere the editor lets you write text | ## Where it doesn't work Titles, subtitles, the action bar and boss bars only understand `&` codes. Those are sent as raw legacy text, so a tag in one of them is shown to the player exactly as you typed it. ## Usage notes * Legacy `&` codes, including `&#RRGGBB` hex, keep working everywhere exactly as before. * In **chat messages**, use one style per line. A chat line is only sent as MiniMessage when it contains no legacy colour codes at all, so mixing `&c` and `` in the same line falls back to legacy and prints the tag. * Everywhere else the two can be mixed freely. A hologram line or an item name is read as MiniMessage as soon as it contains a tag, and any `&` codes in it are converted along with it. * A tag the server does not recognise is left in the text as written rather than being dropped, which is what keeps resource pack glyph tags working. > **Warning:** MiniMessage needs [Paper](https://papermc.io/) or a fork of it. On plain Spigot the tags are printed exactly as you typed them, so stay on `&` codes there. Source: https://www.phoenixplugins.com/docs/phoenix-crates/configurations/rich-text --- # 💎 Features
CratesRewardsAnimations
Customize via the In-Game Editor.Customize via the In-Game Editor.Customize via In-Game Editor.
Multiple locations per crate.Win rewards that the user selects.30+ opening animations to choose from.
One configuration file per crate.Win rewards that are given randomly.Use premade combinations as animations.
Crate Block can be any material.Selective (non RNG) rewards mode.Create your own unique animations.
Vanilla Block and Vanilla Model engines.Support for any custom item.Code your own animations with our API.
ModelEngine 3&4 for Animated Models.Support for modded items.Packet Based to not cause performance issues.
Better Model support, with scaling.Rewards executed by the user or the console.Multiple stages of animations.
Custom hologram per crate.Run commands as rewards.Idle animation state.
Preview rewards for each crate.PlaceholderAPI Support for commands.Close animation state.
Customize Rewards Preview menu.Customize the display name for the reward.First, Second, and Third animation state.
Preview the Reward above the crate.Multiple items given from a single reward.Pre Open and Post Open animations.
Require permission to open a crate.Add multiple items as rewards at once.Reward Display animations.
Require balance to open a crate (vault)Reorder the rewards from the editor.Delay the timing of an animation.
Option to not require a key.Quick delete for the reward.Animation that contain custom sounds.
Open cooldown per crate.An option for virtual rewards.Synchronizing the animation stages with the model.
Knockback when the user doesn't have a key.Percentage to win an item.Animations for all the users at the same time.
Broadcast message per crate.Adjust the win limit.
Simultaneous openings by multiple players.Maximum amount of wins per reward.
Clone a crate.Alternative reward when the user won the default one.
Virtual and Physical Keys.Reward that will be given to all online users.
Guaranteed Rewards.Broadcast the reward when its given to the user.
Rerolls.Blacklist permissions from receiving the reward.
Log the actions.Edit the rewards straight from the config file.
Migrate from other crate plugins.Win actions per reward.
MySQL and SQlite Database.
Folia supported.
Bedrock supported through GeyserMC.
MiniMessage and hex color support.
Plugin Messages 100% configurable.
Event actions on open, win, close and denied.
Choose which click opens and which previews.
Pay with any PlaceholderAPI currency.
Manage every placed crate from the editor.
## Add-ons
Add-onWhat it adds
Last WinnerShow who last won from a crate, with its own placeholders.
RarityGive the rewards a rarity tier with its own display.
Mass OpeningOpen many keys at once from a single interaction.
Crate ClaimHold rewards and physical keys for users who are offline.
Reward On LoopRepeat a reward on a timer, with permission and win caps.
LeaderboardRank the users by their openings and their wins.
IP LimitLimit how many openings come from the same IP address.
RedisKeep the crate data in sync across multiple servers.
LootboxOpen a crate from a placed block that plays the animations.
Deluxe AnimationsExtra animation pack.
Halloween Crate AnimationsSeasonal animation pack.
Christmas Crate AnimationsSeasonal animation pack.
## Suggestions If you notice something missing from our plugin, please let us know. Additionally, we are always open to suggestions from our users to add more content and improve the plugin. Source: https://www.phoenixplugins.com/docs/phoenix-crates/features --- # 🤖 Action Types In our system's configuration files, you can utilize various action types to perform different actions. These actions enable you to interact with players, broadcast messages, play sounds, set gamemodes, and much more. ## Action Types | Action List | Description | | ------------------- | -------------------------------------------- | | \[MESSAGE] | Display a custom message to the player | | \[TITLE] | Display a custom title message to the player | | \[ACTION\_BAR] | This is a custom action bar | | \[CLOSE\_INVENTORY] | Close the player's current inventory | | \[COMMAND] | Execute a command (console or player) | | \[GAMEMODE] | Set the player's gamemode | | \[POTION\_EFFECT] | Apply a potion effect to the player | | \[SOUND] | Play a sound for the player | | \[MENU] | Open a custom menu | | \[DELAY] | A way to delay some actions | | \[OPEN] | Opens the crate | Explore each action type to learn more about its syntax and usage. Examples are provided to illustrate how to use these actions effectively in your system or application. ### **Send Chat Message** This action sends a custom message to the player. * **Syntax:** `[MESSAGE] ` * **Example:** `[MESSAGE] &aThis is a custom message` ### **Send Title Message** This action displays a custom title message to the player. * **Syntax:** `[TITLE] ; <subtitle>; <fadein>; <stay>; <fadeout>` * **Example:** `[TITLE] &aCustom title;&7Custom Subtitle; 20; 40; 20` ### **Send Action Bar Message** This action displays a custom action bar message to the player. * **Syntax:** `[ACTION_BAR] <message>` * **Example:** `[ACTION_BAR] This is a custom action bar` ### **Close Inventory** This action closes the inventory the player has open. * **Syntax:** `[CLOSE_INVENTORY]` * **Example:** `[CLOSE_INVENTORY]` ### **Execute Command** This action executes a command either from the console or as a player. * **Syntax:** `[COMMAND] <target>; <command>` * **Example:** `[COMMAND] console; mvtp %player% world` * **Example**: `[COMMAND] player; warp spawn` ### **Change Gamemode** This action sets the gamemode for the player. * **Syntax:** `[GAMEMODE] <gamemode>` * **Example:** `[GAMEMODE] adventure` ### **Give Potion Effect** This action gives the player a potion effect. * **Syntax:** `[POTION_EFFECT] <effect>; <duration>; <amplifier>` * **Example:** `[POTION_EFFECT] speed; 5; 2` ### **Play Sound** This action plays a sound for the player. * **Syntax:** `[SOUND] <sound>; <volume>; <pitch>` * **Example:** `[SOUND] entity_arrow_hit_player; 1; 1` ### **Open Menu** This action opens a custom graphical user interface (GUI) menu. * **Syntax:** `[MENU] <menu_name>` * **Example:** `[MENU] main_menu` ### **Delay** This action will make a short pause until it continues executing actions. * **Syntax:** `[DELAY] <seconds>` * **Example:** `[DELAY] 3` Source: https://www.phoenixplugins.com/docs/phoenix-crates/features/action-types --- # 🪙 Guaranteed Rewards > **Info:** This feature is only available in the random rewards mode ## Guaranteed Mode Guaranteed Rewards are a great way to ensure a player receives a specific reward after reaching a set number of openings. Guaranteed Mode has two types, but it is disabled by default. The available options are: * **Sequential** * **Repetitive** <figure><img src="../.gitbook/assets/Screenshot 2025-05-24 201733.png" alt="" width="563"><figcaption><p>Editor > Crates > Crate > Rewards</p></figcaption></figure> ## Sequential The guaranteed reward will work in a sequence, meaning players will receive the reward only once upon reaching a specific number of openings. Once that number is reached, they will "unlock" the next guaranteed reward in the sequence. **Example:** * Reward : Requires 5 Openings The player will receive that reward only once on the 5th opening. ## Repetitive The guaranteed reward will work on repeat, meaning players will receive the reward every **X** crate openings. Once that number is reached, they will receive the reward again. **Example:** * Reward : Requires 5 Openings The player will receive that reward on repeat on every 5th opening. ## Create a Guarantee Reward Creating a Guaranteed Reward is very simple and straightforward. You only need to specify the number of openings required for the player to receive the reward. <figure><img src="../.gitbook/assets/editor/reward/guaranteed-win.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> ## Unique Coloring If you decide to use a guaranteed reward for a specific reward, its display will change in the editor to help you identify it more easily. <div><figure><img src="../.gitbook/assets/Screenshot 2025-05-24 204733.png" alt="" width="560"><figcaption><p>Editor > Crates > Crate > Rewards</p></figcaption></figure> <figure><img src="../.gitbook/assets/Screenshot 2025-05-24 204750.png" alt="" width="563"><figcaption><p>Editor > Crates > Crate > Rewards</p></figcaption></figure></div> **Red:** When the reward is based only on a specific number of openings.\ **Yellow****:** When the reward requires both a specific number of openings and a percentage chance.\ **Green:** When the reward is based only on a percentage (default). Source: https://www.phoenixplugins.com/docs/phoenix-crates/features/guaranteed-rewards --- # 🔎 Log the Actions ## Logger The logger records two things: when a player opens a crate, and when a player receives a reward. Both are written to a log file on your server, and can also be sent to a Discord channel through a webhook. Everything on this page is configured in logger.yml. ## Log Files Logging to file is always on and needs no setup. The current log is plugins/PhoenixCrates/logs/latest.log, with one timestamped line per action: ``` [2025-08-24_19-42-07][INFO] Steve opened a crate Vote Crate (vote) at world, 128, 64, -310. ``` Every time the server starts, the previous `latest.log` is compressed and kept alongside it as `<date>_<time>.log.gz`, so history is never overwritten. Old archives are kept until you delete them. ## Discord Webhook To also send these to Discord, set `discord-webhook.enabled` to `true` in `logger.yml`. By default this is set to false. ## Create a Webhook First, go to the settings of the Discord channel where you want to log crate actions. Then, navigate to the Integrations tab and click Create Webhook. <figure><img src="../.gitbook/assets/web.png" alt=""><figcaption></figcaption></figure> ## Setup the Logger The webhook will now have a URL. Make sure to click the copy button to save it. <figure><img src="../.gitbook/assets/web2.png" alt=""><figcaption></figcaption></figure> After copying the link, paste it into the `url: ''` field in the discord-webhook settings. ## Customization Now that the logger is set up, you can customize it by modifying the messages and the embed sent to the channel. <figure><img src="../.gitbook/assets/image (70).png" alt=""><figcaption></figcaption></figure> ### Log Format The two `log-format` entries decide what each line says. The same text is used for the file and for Discord. ```yaml log-format: open-crate: '%player% opened a crate %crate_name% (%crate_id%) at %location%.' won-reward: '%player% got the reward %reward_name% (%reward_id%) on crate %crate_name% (%crate_id%).' ``` | Placeholder | Available in | Description | | ---------------- | ------------ | ---------------------------------------------- | | %player% | both | The player's name. | | %crate\_name% | both | The crate's display name, without colours. | | %crate\_id% | both | The crate's identifier. | | %location% | open-crate | The crate's position, as `world, x, y, z`. | | %reward\_name% | won-reward | The reward's display name, without colours. | | %reward\_id% | won-reward | The reward's identifier. | | %reward\_amount% | won-reward | The amount on the reward's display item. | > **Info:** Setting a format to `''` (empty quotes) switches that action off completely. It stops being written to the file and stops being sent to Discord. This is the way to log only rewards, or only openings. ### Webhook Appearance The name and avatar the webhook posts under, and the embed it posts, are all configurable. ```yaml discord-webhook: enabled: true url: '' avatar-url: '' username: Phoenix Crates - Logger embed: title: Action Log description: '%message%' color: '#4a20ff' ``` | Option | Description | | ----------------- | ------------------------------------------------------------------------------ | | url | The webhook URL you copied from Discord. | | username | The name the message is posted under. | | avatar-url | A direct image URL to use as the avatar. Leave empty for the webhook's own. | | embed.title | The embed's heading. | | embed.description | The embed's body. `%message%` is the formatted log line. | | embed.color | The stripe colour down the side of the embed, as a hex value. | Now, make sure to save the changes and restart the plugin to apply the changes. Source: https://www.phoenixplugins.com/docs/phoenix-crates/features/log-the-actions --- # 🎲 Reroll > **Info:** The Reroll feature is available in the Premium+ plan of Phoenix Crates. When a user is dissatisfied with the reward they received, they have the option to reroll it. There are three ways a player ends up with rerolls: ## Reroll Types * **Create a Group**: You can create a group with a specific permission that grants a designated number of rerolls to users who have that permission. * **Free Rerolls**: You can set a "Free Rerolls" option, which determines the number of rerolls available to all players when opening a crate. * **Granted Rerolls**: Rerolls given with `/crates giveReroll` are stored on the player and last until they are used or taken back with `/crates takeReroll`. ## Rerolls Everything below lives in the crate's Rerolls menu, reached from the crate itself. <figure><img src="../.gitbook/assets/editor/crate/rerolls.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Enabled Whether the crate offers rerolls at all. By default this feature is disabled, so it has to be switched on per crate. <figure><img src="../.gitbook/assets/editor/rerolling/enabled.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rerolls</p></figcaption></figure> ## Free Rerolls The number of rerolls every player gets on this crate, without needing a permission or a granted reroll. <figure><img src="../.gitbook/assets/editor/rerolling/free-rerolls.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rerolls</p></figcaption></figure> ## Replay Animation When enabled, rerolling replays the crate's opening animation, and the reroll menu re-opens once it finishes. <figure><img src="../.gitbook/assets/editor/rerolling/replay-animation.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rerolls</p></figcaption></figure> ## Skip Same Reward When enabled, a player will never receive the same reward they already won while rerolling on that opening. <figure><img src="../.gitbook/assets/editor/rerolling/skip-same-reward.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rerolls</p></figcaption></figure> ## Reroll Groups A group grants a number of rerolls to everyone holding its permission. Each group in the list shows the permission it uses and what it is worth, and is edited or removed from there. <figure><img src="../.gitbook/assets/editor/rerolling/group-legendary.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rerolls</p></figcaption></figure> ### Namespace The name of the group, which is also the last part of its permission, `phoenixcrates.reroll.<namespace>`. <figure><img src="../.gitbook/assets/editor/rerolling/namespace.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rerolls > Group</p></figcaption></figure> ### Rerolls How many rerolls a player in this group has on the crate. <figure><img src="../.gitbook/assets/editor/rerolling/rerolls.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rerolls > Group</p></figcaption></figure> ## How the Total Is Calculated The three sources are added together: ``` free rerolls + best matching group + granted rerolls ``` So a player with 5 free rerolls, a group worth 10 and 2 granted rerolls opens with 17. > **Warning:** Groups do **not** stack with each other. If a player matches several groups, only the one with the highest reroll count is used. Give a VIP the group worth 10 and they get 10, not 10 plus whatever their default group grants. When the [Mass Opening](../add-ons/mass-opening/) add-on opens several keys at once, the total is multiplied by the number of keys used, so opening 12 keys with 3 rerolls each gives 36 rerolls for that session. ## Group Permissions A group grants its rerolls to any player holding `phoenixcrates.reroll.<group name>`, where the group name is the namespace you typed when creating it. The exact permission is shown in the editor on the group's own item, so you can copy it from there. > **Info:** Avoid spaces in group names. The permission uses the name as written, and a permission containing a space cannot be granted by most permission plugins. ## In-Game Preview The following is the menu users see when the reroll option is enabled. They can choose to either reroll the item or claim it. This menu can also be customized from the menus folder. <figure><img src="../.gitbook/assets/Untitledvideo-MadewithClipchamp88-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Reroll Preview In-Game</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/features/reroll --- # 🔌 First Installation ## Installation 1. Download the jar from our website 2. Install PhoenixCrates-?.jar into your "Plugins" folder. 3. Start your server 4. Configure the plugin by yml file or by in-game editor `/phoenixcrates editor` <figure><img src=".gitbook/assets/editor/editor.gif" alt="" width="563"><figcaption><p>The in-game editor</p></figcaption></figure> ## The Main Editor `/crates editor` opens the main editor. The top rows hold the things you configure and the bottom row holds the tools. | Button | What it opens | | ------ | ------------- | | Crates | The list of crates. | | Keys | The list of keys. | | Discord | Sends you a clickable link to our Discord for help, updates and suggestions. | | Our Plugins | The list of every Phoenix plugin, each with its price and a link to its store page. A free version is marked on the plugins that have one. | | Add-ons | The add-ons of the plugin. | | Menu Layouts | The [In-Game Menu Editor](configurations/in-game-menu-editor.md). Premium only. | | Live Analytics Dashboard | Marked as coming soon. | | Changelog | What changed in the latest builds, also reachable with `/crates changelog`. | | Migrations | Importing from other crate plugins, see [Migration](migration.md). | | Reload | Reloads the plugin. | | Settings | The plugin [Settings](main-features/settings.md). | The Our Plugins list is loaded from our website the first time you open it and kept for an hour. If the website cannot be reached, you get a message in chat instead. ## Add-on Installation 1. Select the add-ons you wish to install. 2. The add-ons will be included in the same jar. 3. Drag and drop the jar in the plugins folder 4. The PhoenixCrates jar will generate the add-ons in the `PhoenixCrates\addons` folder 5. [Optional] If you wish to download the add-ons separately, you can put them manually to that folder. <figure><img src=".gitbook/assets/misc/phoenixcrates_download.png" alt=""><figcaption><p>Download PhoenixCrates Popup</p></figcaption></figure> > **Info:** We strongly advise using the latest STABLE build of the plugin, as it includes the most recent bug fixes. ## Version Support The plugin supports Spigot, any Spigot forks, Paper, any Paper forks, and Folia. It should also work on any custom modded servers. <table><thead><tr><th>Minecraft Version</th><th data-type="checkbox"></th></tr></thead><tbody><tr><td>26.x</td><td>true</td></tr><tr><td>1.21.x</td><td>true</td></tr><tr><td>1.20.4+</td><td>true</td></tr></tbody></table> Version 6.0 dropped support for versions older than 1.20.4. Source: https://www.phoenixplugins.com/docs/phoenix-crates/first-installation --- # 🎉 Animations A crate plays two kinds of animation, both set from its Animations menu: an idle animation while nobody is opening it, and an opening animation when a player does. <figure><img src="../../.gitbook/assets/editor/crates/animations.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Opening Animation Plays when a player opens the crate, through its three phases, up to the reward being revealed. Every phase and animation is on [Opening Animations](opening-animations/README.md); the animation add-ons add more on [Animations](../../add-ons/animations/README.md). <figure><img src="../../.gitbook/assets/editor/engine/opening-animation.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations</p></figcaption></figure> ## Idle Animations Plays while nobody is opening the crate, and is built from particle effects. There are 120+ effect combinations available. <figure><img src="../../.gitbook/assets/editor/engine/idle-animation.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations</p></figcaption></figure> <figure><img src="../../.gitbook/assets/editor/idle-animation/add-effect.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Idle Animation</p></figcaption></figure> ### Effect Type In the drop down below, you’ll find all the available effect types we currently offer. <details> <summary>Effect Types</summary> | Effect | Shape | Plan | | -------------- | -------------------------------- | ------- | | Default | Simple particle spawn at offset | Lite | | Circle | Particles orbit in a flat circle | Lite | | Star | Five-pointed star pattern | Lite | | Square | Square frame around the crate | Lite | | Deltoid | Triangular curved shape | Premium | | Astroid | Four-cusped hypocycloid | Premium | | Flower | Petal-like flower pattern | Premium | | Quatrefoil | Four-lobed clover shape | Premium | | Diamond | Diamond-shaped outline | Premium | | Ninja Star | Spinning shuriken pattern | Premium | | Spiral | Ascending helix spiral | Premium | | Conical Spiral | Cone-shaped rising spiral | Premium | | Pulse | Expanding ring pulse | Premium | </details> <figure><img src="../../.gitbook/assets/editor/select-effect-shape/diamond.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Idle Animation > Select Effect Shape</p></figcaption></figure> ### Particle Type There are 100 different particle options available for you to choose from for your crate. * **None** - This type of particle can't have any special behavior. * **Directional - This type of particles can have a velocity.** * **Colorable - This type of particles can have a color.** ### **Additional Options** * **Color -** Not all particles support color. Redstone is a well-known particle that can change color, but others may not. If a particle doesn’t support color, this field will be ignore**d.** Clicking it opens the color picker: pick one of the preset colors, or use Custom RGB to type any color as R,G,B. Opening animation color settings use the same picker. * **Offset -** Defines the position of the effect relative to the crate. * **Radius -** Controls the randomness of the effect’s position. * **Amount -** Sets the number of particles to display. For example, with a circle pattern and an amount of 2, you’ll see a 2-particle effect. (Recommended to test in-game.) * **Velocity** - There are some particles that allow speed. This field allows you to change the speed of each spawned particle. ### Edit an Effect Once an effect is created, it will appear in the main effects list, where you can Left-Click to edit it. The maximum number of effects you can add is 12. <figure><img src="../../.gitbook/assets/editor/idle-animation/star-3.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Idle Animation</p></figcaption></figure> ### In the Config File Each effect is stored on a single line in the crate file, under `idle-effects`: ```yaml idle-effects: - CIRCLE;{REDSTONE;#ff0000;0.0;1.0;2.0;0.0;0.0;1} ``` The format is: ``` TYPE;{PARTICLE;COLOR;offsetX;offsetY;offsetZ;spread;velocity;amount} ``` | Field | Description | | -------- | ------------------------------------------------------------------ | | TYPE | The effect type, such as `CIRCLE` or `SPIRAL`. | | PARTICLE | The particle to use, such as `REDSTONE`. | | COLOR | The particle colour as hex, ignored by particles that cannot be coloured. | | offsetX | Position relative to the crate, sideways. | | offsetY | Position relative to the crate, height. | | offsetZ | Position relative to the crate, depth. | | spread | Randomness applied to each particle's position. | | velocity | Speed given to each particle, on particles that support it. | | amount | How many particles to spawn. | Editing from the editor is easier and safer, but knowing the format helps if you generate crates outside the game. Example of the Idle Animation In-Game <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp91-ezgif.com-video-to-gif-converter (1).gif" alt="" width="563"><figcaption><p>Example of the Default Idle Animation</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/animations --- # 🧍‍♂️ Idle Animations ## Idle Animations With idle animations, you can use particles to create custom animations. There are 120+ effect combinations available, allowing you to make your crate as unique as you like. <figure><img src="../../.gitbook/assets/editor/idle-animation/add-effect.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Idle Animation</p></figcaption></figure> ## Effect Type In the drop down below, you’ll find all the available effect types we currently offer. <details> <summary>Effect Types</summary> | Effect | Shape | Plan | | -------------- | -------------------------------- | ------- | | Default | Simple particle spawn at offset | Lite | | Circle | Particles orbit in a flat circle | Lite | | Star | Five-pointed star pattern | Lite | | Square | Square frame around the crate | Lite | | Deltoid | Triangular curved shape | Premium | | Astroid | Four-cusped hypocycloid | Premium | | Flower | Petal-like flower pattern | Premium | | Quatrefoil | Four-lobed clover shape | Premium | | Diamond | Diamond-shaped outline | Premium | | Ninja Star | Spinning shuriken pattern | Premium | | Spiral | Ascending helix spiral | Premium | | Conical Spiral | Cone-shaped rising spiral | Premium | | Pulse | Expanding ring pulse | Premium | </details> <figure><img src="../../.gitbook/assets/editor/select-effect-shape/diamond.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Idle Animation > Select Effect Shape</p></figcaption></figure> ## Particle Type There are 100 different particle options available for you to choose from for your crate. * **None** - This type of particle can't have any special behavior. * **Directional - This type of particles can have a velocity.** * **Colorable - This type of particles can have a color.** ## **Additional Options** * **Color -** Not all particles support color. Redstone is a well-known particle that can change color, but others may not. If a particle doesn’t support color, this field will be ignore**d.** * **Offset -** Defines the position of the effect relative to the crate. * **Radius -** Controls the randomness of the effect’s position. * **Amount -** Sets the number of particles to display. For example, with a circle pattern and an amount of 2, you’ll see a 2-particle effect. (Recommended to test in-game.) * **Velocity** - There are some particles that allow speed. This field allows you to change the speed of each spawned particle. ## Edit an Effect Once an effect is created, it will appear in the main effects list, where you can Left-Click to edit it. The maximum number of effects you can add is 12. <figure><img src="../../.gitbook/assets/editor/idle-animation/star-3.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Idle Animation</p></figcaption></figure> ## In the Config File Each effect is stored on a single line in the crate file, under `idle-effects`: ```yaml idle-effects: - CIRCLE;{REDSTONE;#ff0000;0.0;1.0;2.0;0.0;0.0;1} ``` The format is: ``` TYPE;{PARTICLE;COLOR;offsetX;offsetY;offsetZ;spread;velocity;amount} ``` | Field | Description | | -------- | ------------------------------------------------------------------ | | TYPE | The effect type, such as `CIRCLE` or `SPIRAL`. | | PARTICLE | The particle to use, such as `REDSTONE`. | | COLOR | The particle colour as hex, ignored by particles that cannot be coloured. | | offsetX | Position relative to the crate, sideways. | | offsetY | Position relative to the crate, height. | | offsetZ | Position relative to the crate, depth. | | spread | Randomness applied to each particle's position. | | velocity | Speed given to each particle, on particles that support it. | | amount | How many particles to spawn. | Editing from the editor is easier and safer, but knowing the format helps if you generate crates outside the game. Example of the Idle Animation In-Game <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp91-ezgif.com-video-to-gif-converter (1).gif" alt="" width="563"><figcaption><p>Example of the Default Idle Animation</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/animations/idle-animations --- # 🎇 Opening Animations Opening animations are the main animations played when opening a crate. They are divided into three phases: * [**Pre Open**](pre-open-animations.md) - Plays before the crate opens. * [**Post Open**](post-open-animations.md) - Plays after the crate opens. * [**Reward Display**](#reward-display-animations) - Plays when the winning reward is revealed. GUI animations also show to Bedrock players. <figure><img src="../../../.gitbook/assets/editor/engine/opening-animation.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations</p></figcaption></figure> ## Animation Phases Each phase has its own slot in the Opening Animations menu, showing which animation is currently set for it. Left-click a slot to pick the animation for that phase, and right-click it to edit that animation's own settings when it is customizable. The active phase is marked as such, and a phase left on **None** simply plays nothing at that stage. ### Pre Open The phase playing before the crate opens, and the slot showing which animation is currently set for it. <figure><img src="../../../.gitbook/assets/editor/opening-animations/pre-open.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Opening Animations</p></figcaption></figure> ### Post Open The phase playing once the crate has opened, while the reward is being decided. <figure><img src="../../../.gitbook/assets/editor/opening-animations/post-open.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Opening Animations</p></figcaption></figure> ### Reward Display The phase revealing the won reward. This slot also carries the colour the animation is played in. <figure><img src="../../../.gitbook/assets/editor/opening-animations/reward-display.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Opening Animations</p></figcaption></figure> ## Virtual Opening All GUI animations also support **virtual openings**, allowing players to open crates via the `/crate open` command. Virtual openings still require the crate to be placed in the world and [**Allow Open Command**](../../crates/README.md#allow-open-command) to be enabled for that crate. ## Skip on ESC GUI animations can also have **Skip on ESC** enabled. When active, closing the inventory will immediately skip the animation and grant the reward to the player. <figure><img src="../../../.gitbook/assets/editor/opening-animations/skip-on-esc.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Opening Animations</p></figcaption></figure> ## GUI Phase Settings Right-clicking the selected GUI animation in the animation list opens its Phase Settings, which restyle that animation for this crate only: * **Title** - The menu title shown while the animation plays. * **Filler**, **Marker Normal**, **Marker Flicker** and the glass colors - The panes the animation is drawn with. Only the ones the animation uses are listed. Drop any item on one, a custom item from a resource pack included, and its custom model data and item model are kept. * **Chance Lore** - Lines added under every reward shown in the animation. `%chance%` is the player's chance of winning it. Flash Cycle has no Phase Settings. ## Display Settings From the Opening Animation menu, the Display Settings button lets you fine-tune where the reward display item and its name appear: * **Item Position** (X/Y/Z) - Offsets the floating reward display item. * **Name Position** (X/Y/Z) - Offsets the reward's name tag, independently from the item itself. <figure><img src="../../../.gitbook/assets/editor/opening-animations/display-settings.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Opening Animations</p></figcaption></figure> The same offsets can also be written by hand in the crate file, described in [Extra Options](../../crates/README.md#extra-options). ## Animation Presets Instead of configuring the Pre Open, Post Open, and Reward Display animations one by one, you can apply a preset from the Opening Animations menu to set all three phases at once to a matching combination. Selecting an already-applied preset removes it, resetting the crate back to no preset. <figure><img src="../../../.gitbook/assets/editor/opening-animations/presets.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Opening Animations</p></figcaption></figure> ### Choosing a Preset Each preset lists the three animations it applies, so you can see the combination before selecting it. <figure><img src="../../../.gitbook/assets/editor/opening-animations/lightning-storm.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Opening Animations > Presets</p></figcaption></figure> ## Reward Display Animations Left-clicking the Reward Display slot opens the list of animations available for this phase. Each entry shows whether it is customizable and whether it supports virtual openings, and the ones your plan or add-ons do not include are shown as locked. <figure><img src="../../../.gitbook/assets/editor/opening-animations/fire-spiral.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Opening Animations</p></figcaption></figure> ### Random Animation ⭐ The **Random** animation will play a random animation that is available *** ### Default Animation The **Default** animation triggers an explosion with particles and sound when the crate is opened. **Virtual Opening:** No **Customizable:** No **Material:** Flint https://www.youtube.com/watch?v=7Ga-cWG3TX8 Default Animation - In Game *** ### Helix Animation The **Helix** animation creates an upward-moving helix of particles after the crate is opened. **Virtual Opening:** No **Customizable:** No **Material:** Nether Star https://www.youtube.com/watch?v=05yHApp-KUw Helix Animation - In Game *** ### Smoke Spiral The **Smoke Spiral** animation summons smoke particles beneath the crate, forming a spiral effect. **Virtual Opening:** No **Customizable:** Yes **Material:** Firework Star https://www.youtube.com/watch?v=ORdWQhN3osc Smoke Spiral Animation - In Game *** ### Fire Spiral The **Fire Spiral** animation spins flame particles in a rotating spiral around the reward display, with colored ambient particles orbiting alongside it. The animation's color can also be customized. **Virtual Opening:** No **Customizable:** No **Material:** Magma Cream https://www.youtube.com/watch?v=t7jEATrCud0 Fire Spiral Animation - In Game *** ### Physical Item The **Physical Item** animation closes the crate and ejects the reward as a floating physical item, surrounded by particles. **Virtual Opening:** No **Customizable:** No **Material:** Clay https://www.youtube.com/watch?v=eEXa2DD7fkQ Physical Item Animation - In Game *** ### Firework The **Firework** animation periodically launches fireworks above the reward display, each one randomizing its shape and color. **Virtual Opening:** No **Customizable:** No **Material:** Firework Rocket https://www.youtube.com/watch?v=6XU21LyUVvA Firework Animation - In Game Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/animations/opening-animations --- # ⏭️ Post Open Animations Left-clicking the Post Open slot opens the list of animations available for this phase. Each entry shows whether it is customizable and whether it supports virtual openings, and the ones your plan or add-ons do not include are shown as locked. <figure><img src="../../../.gitbook/assets/editor/opening-animations/compact.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Opening Animations</p></figcaption></figure> ## Random Animation ⭐ The **Random** animation will play a random animation that is available *** ## Ball Animation The **Ball** animation spawns a ball from the crate that bounces around before disappearing. **Virtual Opening:** No **Customizable:** No **Material:** Slime Ball https://www.youtube.com/watch?v=c12rDg3I96A Ball Animation - In Game *** ## Swirl Animation The The **Swirl** animation creates a swirling effect with particles above the crate after it’s opened. **Virtual Opening:** No **Customizable:** Yes **Material:** Nether Star https://www.youtube.com/watch?v=DnJy9xevoS0 Swirl Animation - In Game *** ## Fire The **Fire** animation starts a circular spiral of lava above the crate, summoning a spinning, floating magma skull. **Virtual Opening:** No **Customizable:** No**Material:** Blaze Rod https://youtu.be/DD1FmTAuSQY Fire Animation - In Game *** ## Compact The **Compact** animation shatters the crate into a floating block head that rises up while spinning rapidly, then slows to a stop as colored particles trail around it. **Virtual Opening:** No **Customizable:** No**Material:** Enderpearl https://youtu.be/OCr1YlP1kGQ Compact Animation - In Game *** ## Rotating Head The **Rotating Head** animation opens the crate and raises a large skull that spins rapidly before gradually slowing to a stop. **Virtual Opening:** No **Customizable:** No**Material:** Leather https://www.youtube.com/watch?v=Hy6NTxZAQ3Y Rotating Head Animation - In Game *** ## Spinner The **Spinner** animation cycles through the crate's possible rewards, gradually slowing down until it lands on the winning reward. **Virtual Opening:** No **Customizable:** No**Material:** Gold Nugget https://youtu.be/YVY7U2puaiA Spinner Animation - In Game *** ## CSGO - GUI The **CSGO** animation opens a GUI with a horizontal reel of rewards that scrolls past a marker, gradually slowing down until it stops on the winning reward. **Virtual Opening:** Yes **Customizable:** Yes**Material:** Chest The slots, spin length and sounds can be changed, and new animations made from it, in the [GUI Animation Files](../../../configurations/gui-animation-files.md) ⭐. https://youtu.be/l3SVsFGHGgg CSO Animation - In Game *** ## Colored CSGO - GUI ⭐ The **CSGO** animation opens a GUI with a horizontal reel of rewards that scrolls past a marker, gradually slowing down until it stops on the winning reward. **Virtual Opening:** Yes **Customizable:** Yes**Material:** Magenta Banner The slots, spin length and sounds can be changed, and new animations made from it, in the [GUI Animation Files](../../../configurations/gui-animation-files.md) ⭐. https://youtu.be/NIPYzHwr0hI Colored CSGO Animation - In Game *** ## Spotlight - GUI ⭐ The **Spotlight** animation opens a GUI and sweeps a beam across 9 columns of rewards, slowing down over several laps until it stops on the column holding the winning reward. **Virtual Opening:** Yes **Customizable:** Yes**Material:** Redstone Lamp The slots, spin length and sounds can be changed, and new animations made from it, in the [GUI Animation Files](../../../configurations/gui-animation-files.md) ⭐. https://youtu.be/e05mGfj7I_g Spotlight Animation - In Game *** ## Rainbow - GUI The **Rainbow** animation scrolls across the GUI while rewards cycle, locking in from the outside until the center reveals the winner. **Virtual Opening:** Yes **Customizable:** Yes**Material:** Pink Dye The slots, spin length and sounds can be changed, and new animations made from it, in the [GUI Animation Files](../../../configurations/gui-animation-files.md) ⭐. https://youtu.be/W5u0t8XZfGs Rainbow Animation - In Game *** ## Flip Cards - GUI The **Flip Cards** animation flips over in random order to reveal rewards, ending with the winning card as the rest disappear. **Virtual Opening:** Yes **Customizable:** Yes**Material:** Map The slots, spin length and sounds can be changed, and new animations made from it, in the [GUI Animation Files](../../../configurations/gui-animation-files.md) ⭐. https://youtu.be/TVsgXBFk9lQ Flip Cards Animation - In Game *** ## Blackout - GUI ⭐ The **Blackout** animation cycles rewards before darkening the GUI from the outside in, leaving the center to reveal the winner. **Virtual Opening:** Yes **Customizable:** Yes**Material:** Dragon Egg The slots, spin length and sounds can be changed, and new animations made from it, in the [GUI Animation Files](../../../configurations/gui-animation-files.md) ⭐. https://youtu.be/xWJDYbKr7fM Blackout Animation - In Game *** ## Snake - GUI The **Snake** animation sends two snakes toward the center, where they meet to reveal the winning reward. **Virtual Opening:** Yes **Customizable:** Yes**Material:** Cactus The slots, spin length and sounds can be changed, and new animations made from it, in the [GUI Animation Files](../../../configurations/gui-animation-files.md) ⭐. https://youtu.be/_rNpijI3g0Y Snake Animation - In Game *** ## Ring Carousel - GUI ⭐ The **Ring Carousel** animation opens a GUI with two rings of rewards spinning in opposite directions around a marker. **Virtual Opening:** Yes **Customizable:** Yes**Material:** Clock The slots, spin length and sounds can be changed, and new animations made from it, in the [GUI Animation Files](../../../configurations/gui-animation-files.md) ⭐. <!-- TODO - PICTURE --> ## Flash Cycle - GUI The **Flash Cycle** animation opens a GUI where the surrounding slots rapidly flash through colors while the center slot cycles through rewards. **Virtual Opening:** Yes **Customizable:** No**Material:** Magenta Glazed Terracotta <!-- TODO - PICTURE --> ## Creeper The **Creeper** animation summons a creeper that is struck by lightning and explodes into a shower of rewards. **Virtual Opening:** No **Customizable:** No**Material:** Creeper Head https://youtu.be/2KGr9elZ2WI Creeper Animation - In Game Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/animations/opening-animations/post-open-animations --- # ⏮️ Pre Open Animations Left-clicking the Pre Open slot opens the list of animations available for this phase. Each entry shows whether it is customizable and whether it supports virtual openings, and the ones your plan or add-ons do not include are shown as locked. <figure><img src="../../../.gitbook/assets/editor/opening-animations/fire.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Opening Animations</p></figcaption></figure> ## Random Animation ⭐ The **Random** animation will play a random animation that is available *** ## Default Animation The **Default** animation simply opens and closes the crate. **Virtual Opening:** No **Customizable:** No **Material:** Flint https://www.youtube.com/watch?v=jDWJUCr9-8M Default Animation - In Game *** ## Crack Animation The **Crack** animation starts with a loud banging noise and particle effects, then proceeds to open the crate. **Virtual Opening:** No **Customizable:** No **Material:** Melon Seeds https://youtu.be/AnmYfCJGD_8 Crack Animation - In Game *** ## Lighting The **Lightning** animation starts with a creeper charge sound, and then multiple lightnings are summoned. **Virtual Opening:** No **Customizable:** No **Material:** Stick https://youtu.be/Gxjt95mk41E Lightning Animation - In Game *** ## Key Opener The **Key Opener** animation will summon a key that rotates to unlock the crate. This key can also be customized using your model data, allowing you to adjust its offset and direction. **Virtual Opening:**No **Customizable:** Yes **Material:** Tripwire Hook https://youtu.be/7fwdwpBi_BA Key Opener Animation - In Game *** ## Fire The **Fire** animation will spawn fire particles beneath the crate that spread out. After that, it will summon lava particles that instantly drop to the ground. **Virtual Opening:** No **Customizable:** No **Material:** Blaze Powder https://www.youtube.com/watch?v=ntWA2SNOK4g Fire Animation - In Game *** ## Blasting The **Blasting** animation summons firework effects from above, aimed at the crate. When they hit, the crate opens and an explosion occurs. The animation’s color can also be customized. **Virtual Opening:** No**Customizable:** No **Material:** Firework Star https://www.youtube.com/watch?v=rSDsFcHq2iQ Blasting Animation - In Game *** ## Sonic Boom The **Sonic Boom** animation spirals energy upward from the crate into a rising point above it. Once charged, it releases a sonic boom shockwave followed by an explosion, and the crate opens. **Virtual Opening:** No **Customizable:** No **Material:** Warden Spawn Egg https://youtu.be/UUJVPm3DIT0 Sonic Boom Animation - In Game *** ## Cyclone Heart Animation ⭐ The **Cyclone Hearts** animation spawns hearts around the crate that swirl in a cyclone effect and eventually enter the crate. **Virtual Opening:** No **Customizable:** No **Material:** Red Dye https://www.youtube.com/watch?v=YxCudbpza2I Heart Cyclone Animation - In Game *** ## Rainbow Animation ⭐ The **Rainbow** animation summons a rainbow that starts from the left side of the crate and ends on the right side. **Virtual Opening:** No **Customizable:** No **Material:** Amethyst Shard https://www.youtube.com/watch?v=-uXGvMrcKHM Rainbow Animation - In Game *** ## Froggo Boom ⭐ The **Froggo Boom** animation summons a frog that falls onto the crate. If a player is nearby, it will deal fake damage to them with its tongue. After that, the frog will jump and dive into the crate. **Virtual Opening:** No **Customizable:** No **Material:** Frog Spawn Egg https://www.youtube.com/watch?v=lcfcvCY45Bc Froggo Animation - In Game *** ## Chicken Jockey ⭐ The **Chicken Jockey** animation summons a chicken jockey that falls onto the crate. The chicken then charges at the player, dashing and dealing fake damage. After the attack, they disappear. **Virtual Opening:** No **Customizable:** No **Material:** Zombie Head https://www.youtube.com/watch?v=oRj7usHIvXU Chicken Jockey Animation - In Game Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/animations/opening-animations/pre-open-animations --- # 💎 Reward Display Animations Left-clicking the Reward Display slot opens the list of animations available for this phase. Each entry shows whether it is customizable and whether it supports virtual openings, and the ones your plan or add-ons do not include are shown as locked. <figure><img src="../../../.gitbook/assets/editor/opening-animations/fire-spiral.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Opening Animations</p></figcaption></figure> ## Random Animation ⭐ The **Random** animation will play a random animation that is available *** ## Default Animation The **Default** animation triggers an explosion with particles and sound when the crate is opened. **Virtual Opening:** No **Customizable:** No **Material:** Flint https://www.youtube.com/watch?v=7Ga-cWG3TX8 Default Animation - In Game *** ## Helix Animation The **Helix** animation creates an upward-moving helix of particles after the crate is opened. **Virtual Opening:** No **Customizable:** No **Material:** Nether Star https://www.youtube.com/watch?v=05yHApp-KUw Helix Animation - In Game *** ## Smoke Spiral The **Smoke Spiral** animation summons smoke particles beneath the crate, forming a spiral effect. **Virtual Opening:** No **Customizable:** Yes **Material:** Firework Star https://www.youtube.com/watch?v=ORdWQhN3osc Smoke Spiral Animation - In Game *** ## Fire Spiral The **Fire Spiral** animation spins flame particles in a rotating spiral around the reward display, with colored ambient particles orbiting alongside it. The animation's color can also be customized. **Virtual Opening:** No **Customizable:** No **Material:** Magma Cream https://www.youtube.com/watch?v=t7jEATrCud0 Fire Spiral Animation - In Game *** ## Physical Item The **Physical Item** animation closes the crate and ejects the reward as a floating physical item, surrounded by particles. **Virtual Opening:** No **Customizable:** No **Material:** Clay https://www.youtube.com/watch?v=eEXa2DD7fkQ Physical Item Animation - In Game *** ## Firework The **Firework** animation periodically launches fireworks above the reward display, each one randomizing its shape and color. **Virtual Opening:** No **Customizable:** No **Material:** Firework Rocket https://www.youtube.com/watch?v=6XU21LyUVvA Firework Animation - In Game Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/animations/opening-animations/reward-display-animations --- # 💐 Crate Block Engine The engine decides how the crate is shown in the world: a [Vanilla Block](#vanilla-block), a [Vanilla Model](#vanilla-model) with custom model data, or an animated model from [Model Engine](#model-engine) or [Better Model](#better-model). <figure><img src="../../.gitbook/assets/editor/crates/crate-block-engine.png" alt="" width="563"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Vanilla Block This is the default engine for a crate, and it's the simplest option. With this engine, you can select a specific block to act as your crate block. <figure><img src="../../.gitbook/assets/Screenshot 2024-10-06 155339 (1).png" alt="" width="563"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ### Crate Blocks For the vanilla crate block, you can set any block available in Minecraft. Certain blocks, like chests, ender chests, shulker boxes, and trapped chests, will also include their default vanilla opening animations. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-10 161949.png" alt=""><figcaption><p>Select a Vanilla Block</p></figcaption></figure> If you can't find the block you are looking for in the Selection menu, you can specify it in the crate's config manually. ### Player Heads When you select Player Head as the crate material type, you can specify a value for the head to replicate. <figure><img src="../../.gitbook/assets/image (24).png" alt="" width="521"><figcaption><p>Chat input for the Player Head</p></figcaption></figure> #### Getting the Head Value If you are using Paper, hold the player head in your main hand and run the **/paper dumpitem** command. This will return the value of the skull, which you can then use as the value for the crate. <figure><img src="../../.gitbook/assets/image (26).png" alt=""><figcaption><p>Player Head Value</p></figcaption></figure> #### In-Game Preview The following is an example of using TNT as the vanilla block crate type. <figure><img src="../../.gitbook/assets/image (29).png" alt="" width="563"><figcaption><p>Vanilla Crate Block</p></figcaption></figure> ## Vanilla Model With the Vanilla model, you can assign custom model data to your material, allowing you to use a custom model for your crate. However, due to the limitations of this engine, it cannot display animations. The crate will only appear in its static form. <figure><img src="../../.gitbook/assets/editor/crates/crate-block-engine.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> When you right-click this option, a menu will appear where you can set the material and custom model data for the item. To easily check the material and custom model data of an item (if you're using Paper), the best way is to use the **/paper dumpitem** command while holding the item in your main hand. ### Material The material is the vanilla item your model is applied to, and it is the item the crate is displayed as. Your resource pack applies the model to a specific material, so this has to be set to that same one, otherwise the custom data below has nothing to resolve against. <figure><img src="../../.gitbook/assets/editor/engine/material.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Engine</p></figcaption></figure> ### Custom Data The custom data is the value that points to the model inside your resource pack. Typing a number sets the Custom Model Data of the material, which is how custom models are selected on every supported version. <figure><img src="../../.gitbook/assets/editor/engine/custom-data.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Engine</p></figcaption></figure> On 1.21.4 and newer, the same option also accepts an Item Model instead, described in the **Item Model (1.21.4+)** section further down. ### Scale The scale is a size multiplier for the model, where 1.0 is the model's normal size. <figure><img src="../../.gitbook/assets/editor/engine/scale.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Engine</p></figcaption></figure> ### Position and Rotation If your model isn't positioned correctly, don't worry. You can adjust it using the "offset" and "rotation degrees" options. These allow you to fine-tune the position and orientation of the model to ensure it displays perfectly. <figure><img src="../../.gitbook/assets/editor/engine/rotation-degrees.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Engine</p></figcaption></figure> Each axis has its own offset, so the model can be moved on all three of them. ### Hitbox A tall model only takes clicks on the crate block. Hitbox Height adds an invisible clickable area of that many blocks above the crate, so players can open or preview it by clicking the upper part of the model. Hitbox Width sets how wide that area is, centered on the crate. A height of 0 turns it off, and both stop at 10 blocks. ### Item Model (1.21.4+) On servers running 1.21.4 or newer, the "Custom Data" option also accepts an Item Model value as an alternative to Custom Model Data. Typing a number is treated as Custom Model Data, while typing a namespaced key (e.g. `minecraft:example`) is treated as an Item Model. Only one of the two can be set at a time, setting one automatically clears the other. #### In-Game Preview The following is an example of using the [Water Elemental](https://www.myphoenixstore.com/en/items/elemental-model-pack) crate model. <figure><img src="../../.gitbook/assets/image (30).png" alt="" width="526"><figcaption><p>Vanilla Model Block</p></figcaption></figure> ## Model Engine > **Info:** This feature is only available in the premium version of Phoenix Crates. > **Info:** This engine type requires [Model Engine 4](https://mythiccraft.io/index.php?pages/official-modelengine4-download/) (4.0.3 or newer) to be installed. With this engine, you can use models imported via Model Engine as your crate models. We've streamlined the process to make it as simple as possible, allowing you to edit your models directly through the in-game editor, making your life easier. <figure><img src="../../.gitbook/assets/Screenshot 2024-10-06 201337.png" alt="" width="563"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ### Model Name The first step is to assign the model name for your crate. The model name is the ID of the model you've imported via Model Engine. For example, if the model ID is **bat\_crate**, you should select the **bat\_crate** bbmodel <figure><img src="../../.gitbook/assets/Screenshot 2024-10-06 201912 (1).png" alt=""><figcaption><p>Editor > Crates > Crate > Engine</p></figcaption></figure> ### Scale You can adjust the scale of the model, between 0.1 and 10. <figure><img src="../../.gitbook/assets/editor/engine/scale-2.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Engine</p></figcaption></figure> ### Animations * **Idle animation**: The default animation when the crate is inactive. * **First opening phase**: The initial stage of the crate opening. * **Second opening phase**: The middle stage of the crate opening. * **Third opening phase**: The final stage of the crate opening. * **Close animation**: The animation that plays when the crate closes. <figure><img src="../../.gitbook/assets/Screenshot 2024-10-06 202512.png" alt=""><figcaption></figcaption></figure> All these options are configured separately through their respective items. There's also an option to set a delay, allowing you to sync the animations if they occur later than the default timing. This ensures that the particles and animations look smoother and more cohesive. #### In-Game Preview The following is an example of using the [Fire Elemental](https://www.myphoenixstore.com/en/items/elemental-model-pack) crate model using Model Engine 4. <figure><img src="../../.gitbook/assets/number_8-ezgif.com-video-to-gif-converter (1).gif" alt=""><figcaption><p>Model Engine Block</p></figcaption></figure> ## Better Model > **Info:** This engine type requires [Better Model](https://modrinth.com/plugin/bettermodel) to be installed. With this engine, you can use models imported via Better Model as your crate models. We've streamlined the process to make it as simple as possible, allowing you to edit your models directly through the in-game editor, making your life easier. <figure><img src="../../.gitbook/assets/editor/crates/engine/better-model-engine.png" alt="" width="563"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ### Model Name The first step is to assign the model name for your crate. The model name is the ID of the model you've imported via Better Model. For example, if the model ID is **bat\_crate**, you should select the **bat\_crate** bbmodel <figure><img src="../../.gitbook/assets/Screenshot 2024-10-06 201912 (1).png" alt=""><figcaption><p>Editor > Crates > Crate > BetterModel</p></figcaption></figure> ### Scale You can adjust the scale of the model, between 0.1 and 10. <figure><img src="../../.gitbook/assets/editor/bettermodel/scale.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > BetterModel</p></figcaption></figure> ### Animations * **Idle animation**: The default animation when the crate is inactive. * **First opening phase**: The initial stage of the crate opening. * **Second opening phase**: The middle stage of the crate opening. * **Third opening phase**: The final stage of the crate opening. * **Close animation**: The animation that plays when the crate closes. <figure><img src="../../.gitbook/assets/Screenshot 2024-10-06 202512.png" alt=""><figcaption></figcaption></figure> All these options are configured separately through their respective items. There's also an option to set a delay, allowing you to sync the animations if they occur later than the default timing. This ensures that the particles and animations look smoother and more cohesive. #### In-Game Preview The following is an example of using the [Fire Elemental](https://www.myphoenixstore.com/en/items/elemental-model-pack) crate model using Better Model. <figure><img src="../../.gitbook/assets/number_8-ezgif.com-video-to-gif-converter (1).gif" alt=""><figcaption><p>Better Model Block</p></figcaption></figure> ## Engines From Other Plugins Other plugins can add their own model engine to Phoenix Crates through the [API](../../api/README.md#custom-model-engines). Each registered engine appears next to the built-in ones in the crate's engine selection, named after the engine and shown with an armor stand icon. It can only be picked while the plugin that registered it is installed. An external engine is set up like [Model Engine](#model-engine) and [Better Model](#better-model): a model name, a scale, and the idle, opening phase and close animations. The model and animation names come from the plugin that registered the engine. An engine name is 1 to 32 characters long and uses only lowercase letters, numbers and underscores. Spaces become underscores. The names `vanilla`, `vanilla_block`, `vanilla_model`, `model_engine` and `better_model` are taken by the built-in engines. Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/crate-engine-mode --- # 🌷 Better Model > **Info:** This engine type requires [Better Model](https://modrinth.com/plugin/bettermodel) to be installed. ## Better Model With this engine, you can use models imported via Better Model as your crate models. We've streamlined the process to make it as simple as possible, allowing you to edit your models directly through the in-game editor, making your life easier. <figure><img src="../../.gitbook/assets/editor/crates/engine/better-model-engine.png" alt="" width="563"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Model Name The first step is to assign the model name for your crate. The model name is the ID of the model you've imported via Better Model. For example, if the model ID is **bat\_crate**, you should select the **bat\_crate** bbmodel <figure><img src="../../.gitbook/assets/Screenshot 2024-10-06 201912 (1).png" alt=""><figcaption><p>Editor > Crates > Crate > BetterModel</p></figcaption></figure> ## Scale You can adjust the scale of the model, between 0.1 and 10. <figure><img src="../../.gitbook/assets/editor/bettermodel/scale.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > BetterModel</p></figcaption></figure> ## Animations: * **Idle animation**: The default animation when the crate is inactive. * **First opening phase**: The initial stage of the crate opening. * **Second opening phase**: The middle stage of the crate opening. * **Third opening phase**: The final stage of the crate opening. * **Close animation**: The animation that plays when the crate closes. <figure><img src="../../.gitbook/assets/Screenshot 2024-10-06 202512.png" alt=""><figcaption></figcaption></figure> All these options are configured separately through their respective items. There's also an option to set a delay, allowing you to sync the animations if they occur later than the default timing. This ensures that the particles and animations look smoother and more cohesive. ### In-Game Preview The following is an example of using the [Fire Elemental](https://www.myphoenixstore.com/en/items/elemental-model-pack) crate model using Better Model. <figure><img src="../../.gitbook/assets/number_8-ezgif.com-video-to-gif-converter (1).gif" alt=""><figcaption><p>Better Model Block</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/crate-engine-mode/better-model --- # 🌹 Model Engine > **Info:** This feature is only available in the premium version of Phoenix Crates. > **Info:** This engine type requires [Model Engine 4](https://mythiccraft.io/index.php?pages/official-modelengine4-download/) (4.0.3 or newer) to be installed. ## Model Engine With this engine, you can use models imported via Model Engine as your crate models. We've streamlined the process to make it as simple as possible, allowing you to edit your models directly through the in-game editor, making your life easier. <figure><img src="../../.gitbook/assets/Screenshot 2024-10-06 201337.png" alt="" width="563"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Model Name The first step is to assign the model name for your crate. The model name is the ID of the model you've imported via Model Engine. For example, if the model ID is **bat\_crate**, you should select the **bat\_crate** bbmodel <figure><img src="../../.gitbook/assets/Screenshot 2024-10-06 201912 (1).png" alt=""><figcaption><p>Editor > Crates > Crate > Engine</p></figcaption></figure> ## Scale You can adjust the scale of the model, between 0.1 and 10. <figure><img src="../../.gitbook/assets/editor/engine/scale-2.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Engine</p></figcaption></figure> ## Animations: * **Idle animation**: The default animation when the crate is inactive. * **First opening phase**: The initial stage of the crate opening. * **Second opening phase**: The middle stage of the crate opening. * **Third opening phase**: The final stage of the crate opening. * **Close animation**: The animation that plays when the crate closes. <figure><img src="../../.gitbook/assets/Screenshot 2024-10-06 202512.png" alt=""><figcaption></figcaption></figure> All these options are configured separately through their respective items. There's also an option to set a delay, allowing you to sync the animations if they occur later than the default timing. This ensures that the particles and animations look smoother and more cohesive. ### In-Game Preview The following is an example of using the [Fire Elemental](https://www.myphoenixstore.com/en/items/elemental-model-pack) crate model using Model Engine 4. <figure><img src="../../.gitbook/assets/number_8-ezgif.com-video-to-gif-converter (1).gif" alt=""><figcaption><p>Model Engine Block</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/crate-engine-mode/model-engine --- # 🌻 Vanilla Block ## Vanilla Block Engine This is the default engine for a crate, and it's the simplest option. With this engine, you can select a specific block to act as your crate block. <figure><img src="../../.gitbook/assets/Screenshot 2024-10-06 155339 (1).png" alt="" width="563"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Crate Blocks For the vanilla crate block, you can set any block available in Minecraft. Certain blocks, like chests, ender chests, shulker boxes, and trapped chests, will also include their default vanilla opening animations. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-10 161949.png" alt=""><figcaption><p>Select a Vanilla Block</p></figcaption></figure> If you can't find the block you are looking for in the Selection menu, you can specify it in the crate's config manually. ## Player Heads When you select Player Head as the crate material type, you can specify a value for the head to replicate. <figure><img src="../../.gitbook/assets/image (24).png" alt="" width="521"><figcaption><p>Chat input for the Player Head</p></figcaption></figure> ### Getting the Head Value If you are using Paper, hold the player head in your main hand and run the **/paper dumpitem** command. This will return the value of the skull, which you can then use as the value for the crate. <figure><img src="../../.gitbook/assets/image (26).png" alt=""><figcaption><p>Player Head Value</p></figcaption></figure> ### In-Game Preview The following is an example of using TNT as the vanilla block crate type. <figure><img src="../../.gitbook/assets/image (29).png" alt="" width="563"><figcaption><p>Vanilla Crate Block</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/crate-engine-mode/vanilla-block --- # 🌺 Vanilla Model ## Vanilla Model Engine With the Vanilla model, you can assign custom model data to your material, allowing you to use a custom model for your crate. However, due to the limitations of this engine, it cannot display animations. The crate will only appear in its static form. <figure><img src="../../.gitbook/assets/editor/crates/crate-block-engine.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> When you right-click this option, a menu will appear where you can set the material and custom model data for the item. To easily check the material and custom model data of an item (if you're using Paper), the best way is to use the **/paper dumpitem** command while holding the item in your main hand. ## Material The material is the vanilla item your model is applied to, and it is the item the crate is displayed as. Your resource pack applies the model to a specific material, so this has to be set to that same one, otherwise the custom data below has nothing to resolve against. <figure><img src="../../.gitbook/assets/editor/engine/material.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Engine</p></figcaption></figure> ## Custom Data The custom data is the value that points to the model inside your resource pack. Typing a number sets the Custom Model Data of the material, which is how custom models are selected on every supported version. <figure><img src="../../.gitbook/assets/editor/engine/custom-data.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Engine</p></figcaption></figure> On 1.21.4 and newer, the same option also accepts an Item Model instead, described in the **Item Model (1.21.4+)** section further down. ## Scale The scale is a size multiplier for the model, where 1.0 is the model's normal size. <figure><img src="../../.gitbook/assets/editor/engine/scale.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Engine</p></figcaption></figure> ## Position and Rotation If your model isn't positioned correctly, don't worry. You can adjust it using the "offset" and "rotation degrees" options. These allow you to fine-tune the position and orientation of the model to ensure it displays perfectly. <figure><img src="../../.gitbook/assets/editor/engine/rotation-degrees.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Engine</p></figcaption></figure> Each axis has its own offset, so the model can be moved on all three of them. ## Item Model (1.21.4+) On servers running 1.21.4 or newer, the "Custom Data" option also accepts an Item Model value as an alternative to Custom Model Data. Typing a number is treated as Custom Model Data, while typing a namespaced key (e.g. `minecraft:example`) is treated as an Item Model. Only one of the two can be set at a time, setting one automatically clears the other. ### In-Game Preview The following is an example of using the [Water Elemental](https://www.myphoenixstore.com/en/items/elemental-model-pack) crate model. <figure><img src="../../.gitbook/assets/image (30).png" alt="" width="526"><figcaption><p>Vanilla Model Block</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/crate-engine-mode/vanilla-model --- # 📦 Crates ## Add Crate Click the stained glass to create a crate. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-10 181128 (1).png" alt="" width="563"><figcaption><p>Editor > Crates</p></figcaption></figure> ## Placed Crates Creating a crate only defines it. A crate becomes real in the world once you place it, either with `/crates giveCrate` and putting the block down, or with [Attach Block](#attach-block) on a block that is already there. <figure><img src="../../.gitbook/assets/editor/crates/placed-crates.png" alt="" width="563"><figcaption><p>Crates (Placed Crates)</p></figcaption></figure> Every placement is stored in locations.yml, which is the file holding where each crate sits in the world, with its coordinates and the direction it faces. The same crate can be placed as many times as you want, and all of those placements live in that one file. See [File Structure](../../configurations/crate-configuration-file.md#file-structure) for the rest of the plugin's files. The **Placed Crates** button in the crates menu lists every placement that is currently loaded. From there you can teleport in front of a crate or remove it, which also drops it from `locations.yml`. Crates that are disabled, or sit in a world that is not loaded, are not listed. > **Warning:** Deleting `locations.yml` leaves every crate configured but no longer placed anywhere, and moving a setup to another server needs that file copied across together with the worlds it points at. ### Protection Placed crates can't be blown up by creepers, TNT or beds, moved by pistons, burned, washed away, taken by endermen or changed by any other non-player cause. Only an admin crouching and breaking it removes a crate. If a crate's block disappears anyway, for example after a WorldEdit paste, it is put back with its hologram the next time its chunk loads. ### Test Open ⭐ `/crates testOpen <crate>` plays the opening of the nearest placed crate of that type for you, within 16 blocks. No key or money is used, nothing is given, and stats, win limits, cooldowns, milestones and broadcasts stay as they were. Chat marks it as a test and lists the rewards you would have won. > **Info:** This feature is only available with the Premium Plan. The crate's engine, animations, rewards and rewards mode have their own pages: [Crate Block Engine](../crate-engine-mode/README.md), [Animations](../animations/README.md), [Rewards](../rewards/README.md), [Rewards Mode](../rewards-mode/README.md), [Guaranteed Rewards](../../features/guaranteed-rewards.md) and [Reroll](../../features/reroll.md). ## Edit Crate ### Identifier With this option, you can set an identifier for the crate. Note that the crate identifier is unique and used internally by the plugin, and its different from the display name. For example, if your crate's name is Elemental Crate the identifier should be set to elemental\_crate. > **Danger:** If the identifier is changed, all player progress and keys associated with the crate will no longer work. <figure><img src="../../.gitbook/assets/editor/crates/identifier.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ### Display Name With this option, you can adjust the display name of the crate. The display name is typically shown in the hologram and in messages when you open the chest. For the display name, you can use the default Minecraft color codes. For hex colors, use the \&#D6D045 format. <figure><img src="../../.gitbook/assets/editor/crates/item.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ### Hologram Every crate can show a hologram floating above it, with its lines, height and style set per crate. It has its own page: [Hologram](hologram.md). <figure><img src="../../.gitbook/assets/editor/crate/hologram.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ### Preview Reward When the preview reward is enabled, users will be able to see all the rewards flickering above the crate. <figure><img src="../../.gitbook/assets/editor/crates/preview-reward.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> > **Info:** Turning this on raises the crate's hologram by 0.75 blocks so the two do not overlap. If your hologram jumps when you enable the preview reward, that is why, and the [hologram offset](hologram.md#hologram-offset) can bring it back down. #### In-Game Preview The following is an example of using the Preview Reward to a crate. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp91-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>In-Game Preview of Preview Reward</p></figcaption></figure> ### Menus With the menus, you can assign a different menu to be opened when a user previews rewards, use the rerolls, or select a reward for the selective move. This is a great option if you want to create different layouts for each crate. <figure><img src="../../.gitbook/assets/editor/crates/menus.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> You can create your own preview menu in the menus folder inside PhoenixCrates\menus. Once you’ve created it, left-click and select that preview menu. ### Preview Actions From the same menu, a crate can run a list of [actions](../../plugin-information/action-types.md) when a player clicks to preview it, such as sending a message or opening another plugin's menu. They run alongside the rewards preview menu, or replace it entirely when the crate has no preview menu set. <figure><img src="../../.gitbook/assets/editor/menus/preview-actions.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Menus</p></figcaption></figure> ### Broadcast Message With the broadcast message option, you can customize the message that is broadcasted to the server when a user wins a reward. Note that for a broadcast message to be sent, the specific reward must have the broadcast option enabled. By default, this feature is disabled. The broadcast message supports multiple lines. <figure><img src="../../.gitbook/assets/editor/crates/broadcast-message.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Link Keys Choose which keys open this crate. The same link can be made from the key side with [Link Crates](../keys/README.md#link-crates). <figure><img src="../../.gitbook/assets/editor/crates/link-keys.png" alt="" width="563"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ### Link a Key Linking a key is a simple process. When you click on the Link Key glass, a menu will appear showing all available keys on your server, allowing you to select the one you want to link to the crate. <figure><img src="../../.gitbook/assets/editor/link-keys/link-key.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Link Keys</p></figcaption></figure> ### Key Requirement By default, Key Required is enabled, which means the player must have at least one key to open the crate. If you don't want a key to be required, you can disable this option. <figure><img src="../../.gitbook/assets/editor/link-keys/key-required.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Link Keys</p></figcaption></figure> ### Keys Per Opening Sets how many keys one opening of this crate uses. It defaults to 1. Set it to 3 and every opening takes 3 keys, so a player with 9 keys can open the crate 3 times. With this, one shared key can open a set of tiered crates: a Common crate takes 1 key, a Rare crate 3 and a Legendary crate 5. The amount counts across every linked key the player has, physical and virtual. A player without enough keys is told how many they need, and no keys are taken. Mass opening also counts openings rather than keys: with a cost of 3 and 9 keys, the menu offers up to 3 openings. This setting only applies while Key Required is enabled. To make a crate free to open, turn Key Required off. Selective crates ignore it, because each of their rewards has its own key cost (Required Keys on the reward). ### Key Priority ⭐ When you have two or more keys linked to your crate, you can use the priority setting to determine which keys should be consumed first. <figure><img src="../../.gitbook/assets/editor/link-keys/priority-reordering.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Link Keys</p></figcaption></figure> ### Key Skips Cost ⭐ > **Info:** Available in the Premium+ plan of Phoenix Crates. With this option, a crate can be opened either with one of its linked keys or by paying the open cost. A player who has a key uses it and pays nothing, and no payment confirmation is shown. A player without a key pays the cost instead of being told a key is needed. It only applies while Key Required is enabled and the open cost is above 0. <figure><img src="../../.gitbook/assets/editor/link-keys/key-skips-cost.png" alt="" width="563"><figcaption><p>Link Keys (Key Skips Cost)</p></figcaption></figure> ## Misc Options ### Simultaneous Openings With this option, multiple users can open the crate simultaneously. When enabled, only the user opening the crate will see the opening animation. When disabled, everyone nearby will see the crate opening animation. By default, this option is enabled. <figure><img src="../../.gitbook/assets/editor/crates/simultaneous-openings.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ### Permission Requirement With this option, you can assign a permission that restricts crate access to users who have the specified permission. <figure><img src="../../.gitbook/assets/editor/crates/permission-requirement.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ### Open Money Cost The amount a player pays to open the crate. 0 turns it off. Currencies and the payment flow are on [Open Money Cost](open-money-cost.md). <figure><img src="../../.gitbook/assets/editor/crates/open-cost-engine.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ### Open Cooldown With this option, you can set a cooldown for the crate, requiring users to wait a certain amount of time before opening it again. There is no maximum value, but the cooldown must be specified in seconds. <figure><img src="../../.gitbook/assets/editor/crates/open-cooldown.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ### Click Behaviour With this option, you can choose which click on a placed crate opens it and which opens its preview: left, right, both or none. By default, right-click opens and left-click previews. When a click matches both settings, the crate opens. Setting the preview to none stops a missed click from bringing up the preview menu. <figure><img src="../../.gitbook/assets/editor/crates/click-behaviour.png" alt="" width="563"><figcaption><p>Crate (Click Behaviour)</p></figcaption></figure> Sneaking admins still remove the crate with left-click, whatever is set here. ### Event Actions With this option, a crate runs actions at four moments: when an opening starts, when the rewards are given, when the opening ends, and when a player clicks the crate but cannot open it. Any action works, such as a sound, title, message or command, so a crate can play a level-up sound on every win. <figure><img src="../../.gitbook/assets/editor/crates/event-actions.png" alt="" width="563"><figcaption><p>Crate (Event Actions)</p></figcaption></figure> Actions set under **Editor > Settings > Event Actions** apply to every crate, and a crate with its own actions for an event uses those instead. Win actions can also be set per reward and, with the Rarity add-on, per rarity. The most specific one wins: reward, then rarity, then crate, then global. Win actions run once per opening. When one opening gives several rewards, such as a mass opening, the rarest reward decides which actions run. They can use `%reward%`, `%rarity%`, `%crate%`, `%crate_id%` and `%player%`. Sounds accept a vanilla name like `ENTITY_PLAYER_LEVELUP` or any sound key, including resource-pack sounds such as `myserver:crate.legendary`. > **Info:** Per-rarity win actions need the Premium+ plan and the Rarity add-on. ### Attach Block With this option, you can link the crate to a specific block. <figure><img src="../../.gitbook/assets/editor/crates/attach-block.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ### Allow Open Command With this option, you can choose whether the crate can be opened with the `/crate open <crate_id>` command, so a player can open it virtually instead of walking to it. The crate still needs at least one placed instance in the world for the command to work. By default, this option is disabled. <figure><img src="../../.gitbook/assets/editor/crates/allow-open-command.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> > **Warning:** The command opens an existing crate remotely, it does not create one. The crate still needs to be physically placed somewhere in the world, otherwise there is nothing for the command to open. ### Clone Crate ⭐ > **Info:** Cloning is available in the Premium+ plan of Phoenix Crates. With this option, you can duplicate a crate with everything it holds: its rewards, animations, hologram, linked keys and every other setting. The copy is given a new identifier automatically, based on the original's, so the two never collide. A confirmation menu is shown before the copy is made. The clone starts with no placed locations of its own, so you place it in the world like a brand new crate. This is the fastest way to build a tier of crates, where a Common, Rare and Legendary crate share the same look and differ only in their rewards. <figure><img src="../../.gitbook/assets/editor/crates/clone-crate.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ### Enabled With this option, you can disable the crate. The crate will remain in its location and stay registered, but users will not be able to open or preview it. <figure><img src="../../.gitbook/assets/editor/crates/enabled.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ### Delete Crate With this option, you can delete a crate. <figure><img src="../../.gitbook/assets/editor/crates/delete-crate.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> > **Danger:** This option is permanent, and crates can't be restored. ## Extra Options Options written in the crate file. ### Display Item Position With this option, you can adjust the position where the reward item will be displayed. The name of the reward has its own offset, applied on top of the item one, so the text can sit closer or further from the item. Both are also editable in-game from [Display Settings](../animations/opening-animations/README.md#display-settings), inside the Opening Animation menu. ```yaml extra-settings: animation: display-item-position: x: 2.0 y: 1.0 z: 0.0 display-item-name-position: x: 0.0 y: 0.3 z: 0.0 ``` <figure><img src="../../.gitbook/assets/image (62).png" alt="" width="563"><figcaption><p>Display Item Position</p></figcaption></figure> ### Item Position Offsets the floating reward item on each axis, the same values as `display-item-position` above. <figure><img src="../../.gitbook/assets/editor/display-settings/item-position-z.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Opening Animations > Display Settings</p></figcaption></figure> ### Name Position Offsets the reward's name on top of the item one, so the text can sit closer to or further from the item. <figure><img src="../../.gitbook/assets/editor/display-settings/name-position-z.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Opening Animations > Display Settings</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/crates --- # 🖌️ Edit Crate ## Identifier With this option, you can set an identifier for the crate. Note that the crate identifier is unique and used internally by the plugin, and its different from the display name. For example, if your crate's name is Elemental Crate the identifier should be set to elemental\_crate. > **Danger:** If the identifier is changed, all player progress and keys associated with the crate will no longer work. <figure><img src="../../.gitbook/assets/editor/crates/identifier.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Display Name With this option, you can adjust the display name of the crate. The display name is typically shown in the hologram and in messages when you open the chest. For the display name, you can use the default Minecraft color codes. For hex colors, use the \&#D6D045 format. <figure><img src="../../.gitbook/assets/editor/crates/item.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Hologram Every crate can show a hologram floating above it, with its lines, height and style set per crate. It has its own page: [Hologram](hologram.md). <figure><img src="../../.gitbook/assets/editor/crate/hologram.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Preview Reward When the preview reward is enabled, users will be able to see all the rewards flickering above the crate. <figure><img src="../../.gitbook/assets/editor/crates/preview-reward.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> > **Info:** Turning this on raises the crate's hologram by 0.75 blocks so the two do not overlap. If your hologram jumps when you enable the preview reward, that is why, and the [hologram offset](hologram.md#hologram-offset) can bring it back down. ### In-Game Preview The following is an example of using the Preview Reward to a crate. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp91-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>In-Game Preview of Preview Reward</p></figcaption></figure> ## Menus With the menus, you can assign a different menu to be opened when a user previews rewards, use the rerolls, or select a reward for the selective move. This is a great option if you want to create different layouts for each crate. <figure><img src="../../.gitbook/assets/editor/crates/menus.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> You can create your own preview menu in the menus folder inside PhoenixCrates\menus. Once you’ve created it, left-click and select that preview menu. ## Preview Actions From the same menu, a crate can run a list of [actions](../../plugin-information/action-types.md) when a player clicks to preview it, such as sending a message or opening another plugin's menu. They run alongside the rewards preview menu, or replace it entirely when the crate has no preview menu set. <figure><img src="../../.gitbook/assets/editor/menus/preview-actions.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Menus</p></figcaption></figure> ## Broadcast Message With the broadcast message option, you can customize the message that is broadcasted to the server when a user wins a reward. Note that for a broadcast message to be sent, the specific reward must have the broadcast option enabled. By default, this feature is disabled. The broadcast message supports multiple lines. <figure><img src="../../.gitbook/assets/editor/crates/broadcast-message.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/crates/edit-crate --- # 🔓 Extra Options ## Display Item Position With this option, you can adjust the position where the reward item will be displayed. The name of the reward has its own offset, applied on top of the item one, so the text can sit closer or further from the item. Both are also editable in-game from [Display Settings](../animations/opening-animations/README.md#display-settings), inside the Opening Animation menu. ```yaml extra-settings: animation: display-item-position: x: 2.0 y: 1.0 z: 0.0 display-item-name-position: x: 0.0 y: 0.3 z: 0.0 ``` <figure><img src="../../.gitbook/assets/image (62).png" alt="" width="563"><figcaption><p>Display Item Position</p></figcaption></figure> In-game, each axis of both offsets has its own option inside [Display Settings](../animations/opening-animations/README.md#display-settings). ## Item Position Offsets the floating reward item on each axis, the same values as `display-item-position` above. <figure><img src="../../.gitbook/assets/editor/display-settings/item-position-z.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Opening Animations > Display Settings</p></figcaption></figure> ## Name Position Offsets the reward's name on top of the item one, so the text can sit closer to or further from the item. <figure><img src="../../.gitbook/assets/editor/display-settings/name-position-z.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Animations > Opening Animations > Display Settings</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/crates/extra-options --- # 💬 Hologram ## Hologram Every crate can show a hologram floating above it. Phoenix Crates has its own built-in hologram system, so it does not need any external plugin, and everything about it belongs to the crate itself, which means two crates can look completely different. <figure><img src="../../.gitbook/assets/editor/crate/hologram.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Hologram Engine The Hologram button in the crate settings works like the Crate Block Engine: left-click swaps the engine, right-click edits it. | Engine | Right-click opens | | ----------------- | --------------------------------------------------------------------------------- | | Built-in | The hologram editor described on the rest of this page. | | Phoenix Holograms | The link menu. Only selectable when Phoenix Holograms is installed. | The link menu has four buttons: | Button | What it does | | ------------- | ------------------------------------------------------------------------------------------------ | | Link Hologram | Lists every saved Phoenix Holograms hologram. Left-click one to link it, right-click the linked one to unlink it. | | Unlink | Unlinks the current hologram after a confirmation. The hologram itself is kept. | | Edit Hologram | Opens the linked hologram in the Phoenix Holograms editor. | | Create & Link | Creates a hologram named after the crate above the placed crate, copies the crate's lines into it and links it. | The linked hologram is moved to the crate and shown above it. When several crates of the same type are placed, it shows above one of them only; make a copy of the crate for each extra location. Lines are written in Phoenix Holograms, so use `%phoenixcrates_cooldown_<crate>%` and `%phoenixcrates_keys_<key>%` there instead of `%cooldown%` and `%virtual_keys%`. Create & Link converts `%cooldown%` for you. If Phoenix Holograms is removed, the crate falls back to the built-in hologram. ## Hologram Lines The lines are the text shown above the crate. Clicking them opens a menu with every line at once, where you can write, reorder and remove them together, then confirm to apply them all. Alongside PlaceholderAPI placeholders, the lines understand `%name%` for the crate's display name, `%cooldown%` for the player's remaining open cooldown, and `%virtual_keys%` for how many virtual keys they hold for this crate. <figure><img src="../../.gitbook/assets/editor/crate/hologram-lines.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Hologram</p></figcaption></figure> ## Hologram Offset The offset is the height of the hologram above the crate. <figure><img src="../../.gitbook/assets/editor/crate/hologram-offset.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Hologram</p></figcaption></figure> > **Info:** Turning on the [Preview Reward](README.md#preview-reward) raises the hologram by 0.75 blocks so the two do not overlap, which this offset can bring back down. ## Line Gap The line gap is the vertical space between two lines. A smaller value packs the lines closer together. <figure><img src="../../.gitbook/assets/editor/crate/line-gap.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Hologram</p></figcaption></figure> ## Hologram Scale The scale is the size of the text, where 1.0 is the normal size. <figure><img src="../../.gitbook/assets/editor/crate/hologram-scale.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Hologram</p></figcaption></figure> ## Text Opacity The opacity decides how solid the text is, from 0 (invisible) to 255 (solid). <figure><img src="../../.gitbook/assets/editor/crate/text-opacity.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Hologram</p></figcaption></figure> ## Billboard The billboard decides how the hologram rotates to face the player. | Mode | Behaviour | | ---------- | --------------------------------------------------------------------- | | Center | Follows the player on every axis. This is the default. | | Vertical | Follows the player sideways only, staying upright. | | Horizontal | Follows the player up and down only. | | Fixed | Never rotates, always facing the direction it was placed in. | <figure><img src="../../.gitbook/assets/editor/crate/billboard.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Hologram</p></figcaption></figure> ## See Through When enabled, the hologram stays visible through blocks. <figure><img src="../../.gitbook/assets/editor/crate/see-through.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Hologram</p></figcaption></figure> ## Text Shadow Decides whether the text is drawn with a drop shadow behind it. <figure><img src="../../.gitbook/assets/editor/crate/text-shadow.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Hologram</p></figcaption></figure> ## Background Color The color behind the text. An alpha of 0 removes the background entirely. <figure><img src="../../.gitbook/assets/editor/crate/background-color.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Hologram</p></figcaption></figure> The value accepts any of these: | Format | Example | Notes | | ----------- | ----------- | -------------------------------- | | `A,R,G,B` | `128,0,0,0` | Half transparent black. | | `#AARRGGBB` | `#80000000` | Hex with alpha. | | `#RRGGBB` | `#000000` | Hex without alpha, fully opaque. | A value that cannot be read falls back to 25% black rather than to transparent, so a background that unexpectedly shows up usually means a typo here. > **Info:** Every option on this page applies to all placed crates of that type immediately, with no reload. > **Info:** The style options used to live in `templates.yml` and were shared by every crate. Updating the plugin copies that file's values into all of your crates and then removes it, so your holograms keep the look they had. Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/crates/hologram --- # ⛓️ Link Keys ## Link Keys This option allows you to link the key to the crates you want it to be able to open. <figure><img src="../../.gitbook/assets/editor/crates/link-keys.png" alt="" width="563"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Link a Key Linking a key is a simple process. When you click on the Link Key glass, a menu will appear showing all available keys on your server, allowing you to select the one you want to link to the crate. <figure><img src="../../.gitbook/assets/editor/link-keys/link-key.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Link Keys</p></figcaption></figure> ## Key Requirement By default, Key Required is enabled, which means the player must have at least one key to open the crate. If you don't want a key to be required, you can disable this option. <figure><img src="../../.gitbook/assets/editor/link-keys/key-required.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Link Keys</p></figcaption></figure> ## Key Priority ⭐ When you have two or more keys linked to your crate, you can use the priority setting to determine which keys should be consumed first. <figure><img src="../../.gitbook/assets/editor/link-keys/priority-reordering.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Link Keys</p></figcaption></figure> ## Key Skips Cost ⭐ Lets a crate that needs a key also be opened by paying its open cost, described on [Misc Options](misc-options.md#key-skips-cost). <figure><img src="../../.gitbook/assets/editor/link-keys/key-skips-cost.png" alt="" width="563"><figcaption><p>Link Keys (Key Skips Cost)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/crates/link-keys --- # 💥 Misc Options ## Simultaneous Openings With this option, multiple users can open the crate simultaneously. When enabled, only the user opening the crate will see the opening animation. When disabled, everyone nearby will see the crate opening animation. By default, this option is enabled. <figure><img src="../../.gitbook/assets/editor/crates/simultaneous-openings.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Permission Requirement With this option, you can assign a permission that restricts crate access to users who have the specified permission. <figure><img src="../../.gitbook/assets/editor/crates/permission-requirement.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Open Money Cost With this option, you can set a specific amount required for users to open a crate. If the value is set to 0, this option is disabled. <figure><img src="../../.gitbook/assets/editor/crates/open-cost-engine.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Key Skips Cost ⭐ > **Info:** Available in the Premium+ plan of Phoenix Crates. With this option, a crate can be opened either with one of its linked keys or by paying the open cost. A player who has a key uses it and pays nothing, and no payment confirmation is shown. A player without a key pays the cost instead of being told a key is needed. It only applies while Key Required is enabled and the open cost is above 0. <figure><img src="../../.gitbook/assets/editor/link-keys/key-skips-cost.png" alt="" width="563"><figcaption><p>Link Keys (Key Skips Cost)</p></figcaption></figure> ## Open Cooldown With this option, you can set a cooldown for the crate, requiring users to wait a certain amount of time before opening it again. There is no maximum value, but the cooldown must be specified in seconds. <figure><img src="../../.gitbook/assets/editor/crates/open-cooldown.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Click Behaviour With this option, you can choose which click on a placed crate opens it and which opens its preview: left, right, both or none. By default, right-click opens and left-click previews. When a click matches both settings, the crate opens. Setting the preview to none stops a missed click from bringing up the preview menu. <figure><img src="../../.gitbook/assets/editor/crates/click-behaviour.png" alt="" width="563"><figcaption><p>Crate (Click Behaviour)</p></figcaption></figure> Sneaking admins still remove the crate with left-click, whatever is set here. ## Event Actions With this option, a crate runs actions at four moments: when an opening starts, when the rewards are given, when the opening ends, and when a player clicks the crate but cannot open it. Any action works, such as a sound, title, message or command, so a crate can play a level-up sound on every win. <figure><img src="../../.gitbook/assets/editor/crates/event-actions.png" alt="" width="563"><figcaption><p>Crate (Event Actions)</p></figcaption></figure> Actions set under **Editor > Settings > Event Actions** apply to every crate, and a crate with its own actions for an event uses those instead. Win actions can also be set per reward and, with the Rarity add-on, per rarity. The most specific one wins: reward, then rarity, then crate, then global. Win actions run once per opening. When one opening gives several rewards, such as a mass opening, the rarest reward decides which actions run. They can use `%reward%`, `%rarity%`, `%crate%`, `%crate_id%` and `%player%`. Sounds accept a vanilla name like `ENTITY_PLAYER_LEVELUP` or any sound key, including resource-pack sounds such as `myserver:crate.legendary`. > **Info:** Per-rarity win actions need the Premium+ plan and the Rarity add-on. ## Attach Block With this option, you can link the crate to a specific block. <figure><img src="../../.gitbook/assets/editor/crates/attach-block.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Allow Open Command With this option, you can choose whether the crate can be opened with the `/crate open <crate_id>` command, so a player can open it virtually instead of walking to it. The crate still needs at least one placed instance in the world for the command to work. By default, this option is disabled. <figure><img src="../../.gitbook/assets/editor/crates/allow-open-command.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> > **Warning:** The command opens an existing crate remotely, it does not create one. The crate still needs to be physically placed somewhere in the world, otherwise there is nothing for the command to open. ## Clone Crate ⭐ > **Info:** Cloning is available in the Premium+ plan of Phoenix Crates. With this option, you can duplicate a crate with everything it holds: its rewards, animations, hologram, linked keys and every other setting. The copy is given a new identifier automatically, based on the original's, so the two never collide. A confirmation menu is shown before the copy is made. The clone starts with no placed locations of its own, so you place it in the world like a brand new crate. This is the fastest way to build a tier of crates, where a Common, Rare and Legendary crate share the same look and differ only in their rewards. <figure><img src="../../.gitbook/assets/editor/crates/clone-crate.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Enabled With this option, you can disable the crate. The crate will remain in its location and stay registered, but users will not be able to open or preview it. <figure><img src="../../.gitbook/assets/editor/crates/enabled.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Delete Crate With this option, you can delete a crate. <figure><img src="../../.gitbook/assets/editor/crates/delete-crate.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> > **Danger:** This option is permanent, and crates can't be restored. Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/crates/misc-options --- # 💸 Open Money Cost ## Open Money Cost Open Money Cost is an alternative way for players to open crates without needing a key. If you want to use the open money cost alone, make sure to disable the key requirement. The plugin currently supports 8 methods for the open money cost, these are the following: | Engine | Requires | Plan | | ------ | -------- | ---- | | None | Nothing, this is the default and means the cost is disabled | Lite | | XP | Nothing, it uses the player's experience levels | Lite | | Vault | [Vault](https://www.spigotmc.org/resources/vault.34315/) and an economy plugin | Lite | | PlayerPoints | [PlayerPoints](https://modrinth.com/plugin/playerpoints) | Premium | | VotingPlugin | [VotingPlugin](https://www.spigotmc.org/resources/votingplugin.15358/) | Premium | | ExcellentEconomy | [ExcellentEconomy](https://www.spigotmc.org/resources/excellenteconomy.106334/) | Premium | | Placeholder | [PlaceholderAPI](https://www.spigotmc.org/resources/placeholderapi.6245/) | Premium | | PhoenixCurrencies | PhoenixCurrencies | Lite | An engine whose plugin is not installed cannot be selected. For ExcellentEconomy and PhoenixCurrencies, right-click the engine to also pick which of that plugin's currencies is charged. When a crate needs no key and the [Mass Opening](../../add-ons/mass-opening/README.md#paying-with-money) add-on is enabled for it, players can open it several times at once and pay the cost once per opening. ### Placeholder Currency The Placeholder engine turns any balance exposed through PlaceholderAPI into a crate cost, for example tokens or gems from another plugin. Select the Placeholder engine on the crate's open cost and right-click it to set the cost amount and the currency. The currency is shared by every crate that uses the Placeholder engine: * **Balance Placeholder** returns the player's balance. Commas are ignored and `k`, `m`, `b`, `t` suffixes are read, so `1.5k` counts as 1500. * **Withdraw Command** runs from the console to take the cost. `%player%`, `%amount%` and `%amount_int%` (rounded up) are filled in. * **Display Name** is shown after the amount, as in `250 Tokens`. * **Whole Numbers** rounds every cost up to a whole number. > **Warning:** The plugin cannot tell whether the withdraw command worked. Test it once on a player with a known balance. Fill in both fields before using the engine. Without a balance placeholder no player can afford the crate, and without a withdraw command it opens without taking anything. ### Whole Numbers and Decimals Not every engine can charge a fraction: * **Vault**, **ExcellentEconomy** and **PhoenixCurrencies** accept decimal amounts, so `19.99` works. * **XP**, **PlayerPoints** and **VotingPlugin** are whole numbers only. A decimal is cut down to the whole number below it, so `2.9` charges `2`. ExcellentEconomy and PhoenixCurrencies decide this per currency, so a currency without decimals behaves like the second group. Placeholder follows its Whole Numbers setting. ### Confirmation Before the cost is taken the player gets a confirmation menu showing what they are about to pay. That menu can be turned off server-wide with **Disable Confirmation Menus** in the editor's Settings, which sends players straight to the opening. <figure><img src="../../.gitbook/assets/editor/crates/open-cost-engine.png" alt=""><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/crates/open-money-cost --- # 🔑 Keys Keys have their own category in the in-game editor, next to crates and rewards. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp26-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Editor > Keys</p></figcaption></figure> Key settings that live on the crate or reward side are documented there: [Key Priority](../crates/README.md#key-priority), [Link Keys](../crates/README.md#link-a-key) and the [Key Requirement](../rewards-mode/README.md#key-requirement) of selective rewards. ## Edit Key ### Identifier The unique ID the plugin uses internally. It is not the name players see. <figure><img src="../../.gitbook/assets/Screenshot 2025-06-30 204922.png" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> > **Danger:** Changing the identifier disconnects every player's progress tied to the key. ### Display Name The name shown in messages when a crate is opened. Supports Minecraft color codes and hex colors in the `&#D6D045` format. <figure><img src="../../.gitbook/assets/Screenshot 2025-06-30 205030.png" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> ### Key Item The item used as the key, a Tripwire Hook by default. Drop any item on it to copy its material, name and lore. Keys players already hold keep working after the item is changed; only a new identifier breaks them. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp27-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> ### Glowing Key Adds the enchantment glint by applying an enchantment with the hide enchantments flag. <figure><img src="../../.gitbook/assets/Screenshot 2025-06-30 204540.png" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> ### Virtual Key Stores the key on the player instead of as an item, so it cannot be duplicated. When enabled, physical copies of the key stop working. <figure><img src="../../.gitbook/assets/Screenshot 2025-06-30 204400.png" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> ### Guarantee Rarity Reward 💎 Assigns rarities to the key so every opening with it gives a reward from one of them. Needs the [Rarity](https://www.phoenixplugins.com/product/rarities-addon) add-on. <figure><img src="../../.gitbook/assets/editor/keys/key_rarity.png" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> ## Misc Options ### Enabled A disabled key stays on the server but cannot be given or used. <figure><img src="../../.gitbook/assets/Screenshot 2025-06-30 210759.png" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> ### Delete Key Deletes the key after a confirmation menu. <figure><img src="../../.gitbook/assets/Screenshot 2025-06-30 210623.png" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> > **Danger:** Deleted keys cannot be restored. ## Link Crates Choose which crates this key opens. The same link can be made from the crate side with [Link Keys](../crates/README.md#link-keys). <figure><img src="../../.gitbook/assets/Screenshot 2025-06-30 211810.png" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> ### Link a Crate <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp48-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Editor > Keys > Key > Link Crates</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/keys --- # 🎨 Edit Key ## Identifier With this option, you can set an identifier for the key. Note that the key identifier is unique and used internally by the plugin, and its different from the display name. <figure><img src="../../.gitbook/assets/Screenshot 2025-06-30 204922.png" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> > **Danger:** If the identifier is changed, all player progress associated with the key will no longer work. ## Display Name With this option, you can adjust the display name of the key. The display name is typically shown in the messages when you open the chest. For the display name, you can use the default Minecraft color codes. For hex colors, use the \&#D6D045 format. <figure><img src="../../.gitbook/assets/Screenshot 2025-06-30 205030.png" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> ## Key Item With this option, you can customize the key for your crate. By default, it is a Tripwire Hook. You can drag and drop the item you want to use, and it will automatically copy its name and lore. If you change the material of the crate while players already have the key, they will still be able to use the previous material. The key will only break if you change the crate identifier. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp27-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> ## Glowing Key With this feature, you can make your key have a glowing effect. Note, that the plugin adds an enchantments and the hide enchantments tag to the item. <figure><img src="../../.gitbook/assets/Screenshot 2025-06-30 204540.png" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> ## Virtual Key Virtual keys provide a more secure method for using keys and prevent users from duplicating them on your server. By default, this feature is disabled. If enabled, the crate can only be opened with virtual keys, and physical keys will no longer be usable. <figure><img src="../../.gitbook/assets/Screenshot 2025-06-30 204400.png" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> ## Guarantee Rarity Reward 💎 With this option, you can assign multiple rarities to a key, guaranteeing that the player receives a reward from one of those rarities. :point\_right: [You can purchase this add-on on Phoenix Plugins](https://www.phoenixplugins.com/product/rarities-addon) <figure><img src="../../.gitbook/assets/editor/keys/key_rarity.png" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/keys/edit-key --- # ⛓️ Link Crates ## Link Crates This option allows you to link the key to the crates you want it to be able to open. <figure><img src="../../.gitbook/assets/Screenshot 2025-06-30 211810.png" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> ## Link a Crate With **Link a Crate**, you can specify which crates can be opened by that specific key. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp48-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Editor > Keys > Key > Link Crates</p></figcaption></figure> <!-- > **Info:** With the Pro Plan, you are allowed you to link more than 1 crates per key. --> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/keys/link-crates --- # 🛍️ Misc Options ## Enabled With this option, you can disable the key. The key will remain to the server, but it will no longer be accessible to obtain or use. <figure><img src="../../.gitbook/assets/Screenshot 2025-06-30 210759.png" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> ## Delete Key This option allows you to permanently delete a key. Note that selecting it will first open a confirmation menu before the key is deleted. <figure><img src="../../.gitbook/assets/Screenshot 2025-06-30 210623.png" alt="" width="563"><figcaption><p>Editor > Keys > Key</p></figcaption></figure> > **Danger:** This option is permanent, and keys can't be restored. Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/keys/misc-options --- # 📰 Reward Config Editing > **Danger:** If you copy and paste a reward, make sure to change its identifier, as it must be unique. ## Edit Rewards You can also edit the rewards through the configuration file if you prefer to manage everything manually. ## Format: The following option is the method you can use for vanilla items. \ **Note:** This option cannot be configured through the in-game editor, as the editor uses the bukkit format to also support custom properties and modded Items. ```yaml display-item: material: PAPER win-items: '0': material: PAPER ``` ## Material: Allows you to set a material on your item. > ```yaml > material: TEXT > ``` > > > **Supported material values:** > > > > * Vanilla (`DIAMOND`). > > * [HeadDatabase ](https://www.spigotmc.org/resources/head-database.14280)(`hdb:id`) > > * [ItemsAdder](https://www.spigotmc.org/resources/%E2%9C%A8itemsadder%E2%AD%90emotes-mobs-items-armors-hud-gui-emojis-blocks-wings-hats-liquids.73355) (`itemsadder:namespace:id`) > > * [Nexo](https://mcmodels.net/products/13172/nexo?srsltid=AfmBOoocUPY8FdXiOkDqM4Rml1Gs449TBz0x_FoKwJBgG8IYvkvMNJ2H) (`nexo:id`) > > * [Mythic Items](https://mythiccraft.io/index.php?ewr-porta) (`mythicitem:id`) > > * [MMOItems](https://www.spigotmc.org/resources/%EF%B8%8F%E2%9A%94%EF%B8%8F-mmoitems-%E2%9A%94%EF%B8%8F-items-weapons-armor-sets-tiers-editor-gui-skills.39267) (`mmoitem:type:id` ) > > * [ExecutableItems](https://www.spigotmc.org/resources/%E2%9A%94%EF%B8%8Fexecutableitems-%E2%AD%90-customize-all-items-add-abilities-%E2%AD%90-ai-items-generation-on-the-discord-%E2%9C%85.83070) (`executableitem:id`) > > * [CraftEngine](https://modrinth.com/plugin/craftengine) (`craftengine:id`) > > > > > - [Materials Link](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html) > **Info:** For hooked items (ItemsAdder, Nexo, MMOItems, ExecutableItems, CraftEngine, etc.), the `id` is the custom item's own identifier as registered in that plugin. ## Hooked Materials A hooked material is the hook name, a colon, then the id the other plugin knows the item by. Only the first colon separates the two, so everything after it reaches that plugin exactly as written. > **Danger:** The separator is a colon, never a dash. `itemsadder-medieval_crates-crate_key` is read as a plain material name, matches none, and is reported as an unknown material in the console. The hook is never reached. The same value written with colons resolves. | Hook | Value | Example | | --------------- | ------------------------ | ------------------------------------ | | ItemsAdder | `itemsadder:namespace:id`| `itemsadder:medieval_crates:crate_key` | | MMOItems | `mmoitem:type:id` | `mmoitem:SWORD:cutlass` | | Nexo | `nexo:id` | `nexo:ruby_sword` | | CraftEngine | `craftengine:id` | `craftengine:default:ruby_sword` | | Mythic Items | `mythicitem:id` | `mythicitem:excalibur` | | ExecutableItems | `executableitem:id` | `executableitem:magic_wand` | | HeadDatabase | `hdb:id` | `hdb:1234` | ItemsAdder and MMOItems ids are built from two parts of their own, so those values have three parts in total. `itemsadder:crate_key` sends only `crate_key` to ItemsAdder and resolves to nothing, and an MMOItems value with no type is rejected. For the rest, pass the id exactly as the plugin registers it, namespace included where it has one. > ```yaml > material: itemsadder:medieval_crates:crate_key > ``` The same values work in every `material` field of the plugin, the [menus](../configurations/customize-menus.md#item-material) included. > **Info:** When the hook name is valid but the plugin is not installed, or the id resolves to nothing, the item becomes a placeholder rather than the crate failing to load. On a reward it names the hook in its lore, in a menu it is a barrier. ## Display Name Allows you to set a display name on your item. > ```yaml > display-name: '&eExample Reward' > ``` > **Success:** This option also supports [MiniMessage](https://docs.advntr.dev/minimessage/format) Format. ## Lore: Allows you to set a custom lore on your item. > ```yaml > lore: > - '&cLine 1' > - '&eLine 2' > - '&aLine 3' > ``` > **Success:** This option also supports [MiniMessage](https://docs.advntr.dev/minimessage/format) Format. ## Model Data: Allows you to set custom model data on your item. > ```yaml > model-data: 1000 > ``` ## Item Model: Allows you to set a custom [Item Model](https://minecraft.wiki/w/Items_model_definition) (the modern resource-pack item model component) on your item. > ```yaml > item-model: 'minecraft:custom_paper' > ``` > **Warning:** This option requires the resource pack to actually define the referenced item model. If the model doesn't exist, the item will simply render with its base material's texture. ## Amount: Allows you to set a fixed stack size on your item. > ```yaml > amount: 1 > ``` ## Enchants: Allows you to set enchants on your item. > ```yaml > enchants: > - 'PROTECTION:1' > - 'UNBREAKING:1' > ``` > > > * [Enchantsments Link](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html) ## Item Flags: Allows you to set item flags on your item, to hide certain tooltip sections (enchants, attributes, "unbreakable", etc). > ```yaml > flags: > - 'HIDE_ENCHANTS' > ``` > > > * [Item Flags Link](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/ItemFlag.html) ## Tooltip Style: Allows you to set a custom tooltip style/texture (resource-pack defined) for the item's tooltip box. > ```yaml > tooltip-style: 'minecraft:gui/sprites/widget/inventory_tooltip' > ``` > **Warning:** Requires server version **1.21.2+**. On older server versions this option is ignored. ## Enchantment Glint Override: Allows you to force the enchantment glint (the shimmering/glowing effect) on or off, independently of whether the item is actually enchanted. > ```yaml > enchantment-glint-override: true # Boolean (`true`/`false`) > ``` > **Warning:** Requires server version **1.20.5+**. On older server versions this option is ignored. ## Banner Meta: Allows you to add banner patterns to your item. Works on banners, and on shields (and other blocks that carry banner data). > ```yaml > banner-meta: > - 'RED;STRIPE_BOTTOM' > - 'WHITE;CROSS' > ``` > > > * Each entry follows the format `<DyeColor>;<PatternType>`. > > * [DyeColor Link](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html) / [PatternType Link](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/banner/PatternType.html) ## Armor Trim (Material & Pattern): Allows you to apply an armor trim to your item, by setting both the trim material and the trim pattern. > ```yaml > trim-material: IRON > trim-pattern: DUNE > ``` > > > * Both options must be set together. > > * [Armor Trim Materials](https://minecraft.wiki/w/Smithing#Trim_materials) / [Armor Trim Patterns](https://minecraft.wiki/w/Smithing#Trim_patterns) > **Warning:** Requires server version **1.20+**. On older server versions this option is ignored. ## Potion Effects: Allows you to add custom potion effects to a potion item. > ```yaml > potion-effects: > - 'speed;1200;1' > - 'regeneration;600;0' > ``` > > > * Each entry follows the format `<PotionEffectType>;<duration in ticks>;<amplifier>`. > > * [Potion Effect Types Link](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html) ## RGB: Allows you to set a custom color on your item, using raw RGB values. > ```yaml > rgb: '38, 192, 210' > ``` > > > * Format: `R, G, B` (each `0`-`255`). Applies to leather armor, potions, maps and firework effects. ### Item Config Example The following is an example of a reward with its display item and the actual reward. ```yaml '2': identifier: reward_1759509999284 display-item: material: PAPER # Legacy colors support display-name: '&#C00BD6Paper' lore: - '&cCustom Paper Item' model-data: 1000 enchants: - 'PROTECTION:1' flags: - 'HIDE_ENCHANTS' win-items: '0': material: PAPER # Mini Message Support display-name: '<gradient:#C00BD6:#FD2177>Paper</gradient>' lore: - '<gradient:#C00BD6:#FD2177>Custom Paper Item</gradient>' model-data: 1000 enchants: - 'PROTECTION:1' flags: - 'HIDE_ENCHANTS' ``` Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/reward-config-editing --- # 🏆 Rewards Each reward's own settings are on [Edit Reward](edit-reward.md), [Win Items & Win Commands](win-items-and-commands.md) and [Cooldowns](cooldowns.md). ## Reward Modes The rewards mode decides how players get a reward: [Random](../rewards-mode/README.md#random) draws one by chance, [Selective](../rewards-mode/README.md#selective-non-rng) lets the player pick it. <figure><img src="../../.gitbook/assets/editor/crates/rewards.png" alt="" width="563"><figcaption><p>Editor > Crates > Crate</p></figcaption></figure> ## Add Rewards ### Add a Reward Click the stained glass to add a reward to the crate. <figure><img src="../../.gitbook/assets/Screenshot 2025-05-24 200822.png" alt="" width="563"><figcaption><p>Editor > Crates > Crate > Rewards</p></figcaption></figure> #### In-Game Example Example of adding a reward. <figure><img src="../../.gitbook/assets/number_16-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Diamond Set Example as a Reward</p></figcaption></figure> ### Add Multiple Rewards ⭐ If you don’t want the hassle of adding multiple rewards to your crate one by one, you can shift left click on the glass to quickly add multiple rewards with just a few clicks. Example of adding multiple rewards: <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp80-ezgif.com-video-to-gif-converter (1).gif" alt="" width="563"><figcaption><p>Multiple Rewards Example as Rewards</p></figcaption></figure> > **Info:** This feature is only available with the Premium Plan. ### Reordering You can use the reordering option to sort the rewards in your desired order for the crate's preview menu. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp81-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Reordering Rewards</p></figcaption></figure> ### Max Win Rewards > **Warning:** This features is only available to the Random Rewards Mode. With Max Win Rewards, you can specify how many rewards a user can win by opening a single crate. The minimum number of rewards a user can receive is 1, and the maximum is 5. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-10 212238.png" alt="" width="563"><figcaption><p>Max Win Rewards</p></figcaption></figure> > **Info:** With the Plan, you are allowed to use up to 30 Max Win Rewards. ## Alternative Reward > **Info:** You can't use this feature with the selective reward mode. If a user has previously won a reward with a limit, you can provide an alternative reward instead. This is a great option to ensure users receive a different item if they have already won the original one. <figure><img src="../../.gitbook/assets/editor/reward/alternative-reward.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> This option will only work if it is enabled, so make sure to enable it. ### Customize the Reward An alternative reward works similarly to a normal reward but is only given when the main reward has already been won. By default, the alternative reward is a diamond pickaxe, which will be displayed as the alternative reward if the main item is won. If you don’t want to award the diamond pickaxe, set "Virtual Item" to true. This will make it function only as a display item in the crate while still running the associated commands. <figure><img src="../../.gitbook/assets/editor/reward/alternative-item.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> ### Customize the Item In the editor, you can drag and drop the item you want to assign as a reward. Alternatively, you can edit its display name and lore by left-clicking on the item. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp84-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Example of Customizing an Item</p></figcaption></figure> ### Win Commands & Broadcast Just like a normal reward, an alternative reward has its own Win Commands menu to run commands when it's given, and its own Broadcast toggle to announce it to the server when a player receives it. ## Broken Rewards Every reward is checked when the server starts, on `/crates reload` and each time a crate is saved in the editor. A reward is broken when it can't be given: no display item, an item from a plugin that is not installed (ItemsAdder, Nexo, MMOItems and the others), an item ID that plugin doesn't know, a material that doesn't exist on the server, a saved item that is missing, or nothing to give at all. Broken rewards are left out of the roll, so players still get one of the working rewards. A crate whose rewards are all broken can't be opened and no key is taken. Commands that don't exist on the server and empty command lines are listed as warnings; those rewards are still rolled. The console lists the problems on startup and reload, and admins with `phoenixcrates.admin` are told on join which crates have broken rewards. Click a crate in that message to open its editor. In the editor, a broken reward shows the reason in its tooltip. `/crates brokenRewards` checks everything again and lists each problem. If a reward still fails while it is being given, the player gets back what that opening cost them, the keys or the money, and the console logs what happened. ## Simulate the Odds ⭐ `/crates simulate <crate> [count]` rolls a crate 10,000 times, or up to 1,000,000, without giving anything, using no keys and changing no stats, limits or cooldowns. It lists every reward with how often it was won, its share of the wins and the chance it has in the editor, and which guaranteed rewards a new player gets and when. It only works for crates in the Random rewards mode. Permissions, cooldowns and add-on rules such as rarities are not part of the test. > **Info:** This feature is only available with the Premium Plan. Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/rewards --- # 📦 Add Rewards ## Add a Reward To add a reward to your crate, simply click on the stained glass and create your reward! <figure><img src="../../.gitbook/assets/Screenshot 2025-05-24 200822.png" alt="" width="563"><figcaption><p>Editor > Crates > Crate > Rewards</p></figcaption></figure> ### In-Game Example Example of adding a reward. <figure><img src="../../.gitbook/assets/number_16-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Diamond Set Example as a Reward</p></figcaption></figure> ## Add Multiple Rewards ⭐ If you don’t want the hassle of adding multiple rewards to your crate one by one, you can shift left click on the glass to quickly add multiple rewards with just a few clicks. Example of adding multiple rewards: <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp80-ezgif.com-video-to-gif-converter (1).gif" alt="" width="563"><figcaption><p>Multiple Rewards Example as Rewards</p></figcaption></figure> > **Info:** This feature is only available with the Premium Plan. ## Reordering You can use the reordering option to sort the rewards in your desired order for the crate's preview menu. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp81-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Reordering Rewards</p></figcaption></figure> ## Max Win Rewards > **Warning:** This features is only available to the Random Rewards Mode. With Max Win Rewards, you can specify how many rewards a user can win by opening a single crate. The minimum number of rewards a user can receive is 1, and the maximum is 5. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-10 212238.png" alt="" width="563"><figcaption><p>Max Win Rewards</p></figcaption></figure> > **Info:** With the Plan, you are allowed to use up to 30 Max Win Rewards. Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/rewards/add-rewards --- # 🗃️ Alternative Reward > **Info:** You can't use this feature with the selective reward mode. ## Alternative Reward If a user has previously won a reward with a limit, you can provide an alternative reward instead. This is a great option to ensure users receive a different item if they have already won the original one. <figure><img src="../../.gitbook/assets/editor/reward/alternative-reward.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> This option will only work if it is enabled, so make sure to enable it. ## Customize the Reward An alternative reward works similarly to a normal reward but is only given when the main reward has already been won. By default, the alternative reward is a diamond pickaxe, which will be displayed as the alternative reward if the main item is won. If you don’t want to award the diamond pickaxe, set "Virtual Item" to true. This will make it function only as a display item in the crate while still running the associated commands. <figure><img src="../../.gitbook/assets/editor/reward/alternative-item.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> ## Customize the Item In the editor, you can drag and drop the item you want to assign as a reward. Alternatively, you can edit its display name and lore by left-clicking on the item. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp84-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Example of Customizing an Item</p></figcaption></figure> ## Win Commands & Broadcast Just like a normal reward, an alternative reward has its own Win Commands menu to run commands when it's given, and its own Broadcast toggle to announce it to the server when a player receives it. Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/rewards/alternative-reward --- # ⏳ Cooldowns ## Cooldowns A reward can be put on a cooldown so it is not won again straight away, either by the same player or by anyone on the server. All of it lives in the reward's Cooldowns menu. <figure><img src="../../.gitbook/assets/editor/reward/cooldowns.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> ## Win Limit Cooldown How long a player must wait before being able to win this reward again. It works together with the [Win Limit](edit-reward.md#win-limits): once a player reaches their limit, this is how long it takes before their count is freed again. <figure><img src="../../.gitbook/assets/editor/reward-cooldowns/win-limit-cooldown.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward > Cooldowns</p></figcaption></figure> ## Global Win Limit Cooldown The same thing for the whole server: how long must pass before this reward can be won again by anyone, once the [Global Win Limit](edit-reward.md#win-limits) has been reached. <figure><img src="../../.gitbook/assets/editor/reward-cooldowns/global-win-limit-cooldown.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward > Cooldowns</p></figcaption></figure> ## Time Limited Cooldown How long this reward stays available once its cooldown is started. When it expires, the reward automatically disables itself, which makes it the option to use for a reward that should only exist for a weekend or an event. <figure><img src="../../.gitbook/assets/editor/reward-cooldowns/time-limited-cooldown.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward > Cooldowns</p></figcaption></figure> ## Cooldown Duration Each of the three opens the same duration menu. ### Units The time is built up from its own units, so a cooldown of a day and a half is set as days and hours rather than counted in seconds. <figure><img src="../../.gitbook/assets/editor/cooldown-duration/minutes.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward > Cooldowns > Duration</p></figcaption></figure> ### Disable Cooldown The same menu is where a cooldown is switched off again, which sets it back to disabled. <figure><img src="../../.gitbook/assets/editor/cooldown-duration/disable-cooldown.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward > Cooldowns > Duration</p></figcaption></figure> > **Info:** In the crate file the three are stored in seconds under `cooldowns`, described in [Reward Config Editing](../../configurations/reward-config-editing.md#reward-options). Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/rewards/cooldowns --- # ✏️ Edit Reward ## Weight On a crate using the [Random](../rewards-mode/README.md#random) rewards mode, the weight is what decides how likely this reward is compared to the others in the crate. A higher weight means a bigger share of the openings. <figure><img src="../../.gitbook/assets/editor/reward/weight.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> ## Win Limits A reward can be limited so it is not won endlessly. Both limits can be combined with an [Alternative Reward](README.md#alternative-reward), which is given once the limit is reached. ### Win Limit How many times a single player can win this reward. Every player has their own count. <figure><img src="../../.gitbook/assets/editor/reward/win-limit.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> ### Global Win Limit How many times this reward can be won by everyone on the server combined, which is what makes a reward a one-off across the whole server. <figure><img src="../../.gitbook/assets/editor/reward/global-win-limit.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> ## Cooldowns A reward can be put on a cooldown so it is not won again straight away, by the same player or by anyone on the server. It has its own page: [Cooldowns](cooldowns.md). ## Guaranteed Win A reward can be guaranteed after, or every, a number of openings. The mode and the opening count are set here, and the whole system is described on [Guaranteed Rewards](../../features/guaranteed-rewards.md). <figure><img src="../../.gitbook/assets/editor/reward/guaranteed-win.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> ## Required Keys On a crate using the [Selective (non RNG)](../rewards-mode/README.md#selective-non-rng) rewards mode, players spend keys to redeem the reward they picked. **Key Requirement** sets how many keys this particular reward costs, and defaults to `1`. Use it to price rewards against each other, so a cosmetic costs one key while the best reward in the crate costs five. A player without enough keys is told how many they need and the reward stays unredeemed. The value is exposed to the menus as `%required_keys%`, so the preview can show the price on each reward. <figure><img src="../../.gitbook/assets/editor/reward/key-requirement.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> > **Info:** With the [Rarity](../../add-ons/rarity/) add-on installed, a rarity's own Required Keys value takes over for every reward carrying that rarity, and this setting is ignored. Required Keys does not apply in Random mode, where the crate's own key cost is what matters. ## Requirements The permissions that decide who can win the reward live in their own menu on the reward. <figure><img src="../../.gitbook/assets/editor/reward/requirements.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> ### Required Permission The permission a player must have for this reward to be available to them. If the player lacks it, the reward appears as locked in the preview. This is the opposite of [Restricted Permissions](#restrict-a-reward), which instead prevents players who have the listed permissions from winning it. <figure><img src="../../.gitbook/assets/editor/reward-requirement/required-permission.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward > Requirements</p></figcaption></figure> ## Win Items & Win Commands What the reward actually gives, whether that is real items, commands, or both, has its own page: [Win Items & Win Commands](win-items-and-commands.md). ## Win Actions The actions run when this reward is won, such as a sound or a title. They replace the win actions of the rarity, the crate and the global settings, as described on [Event Actions](../crates/README.md#event-actions). <figure><img src="../../.gitbook/assets/editor/reward/win-actions.png" alt="" width="563"><figcaption><p>Reward (Win Actions)</p></figcaption></figure> ## Win Message Whether the winner is told they won this reward, and where that message shows up, are two options next to each other. ### Allow Win Message Decides whether the player gets a message at all when they win this specific reward. <figure><img src="../../.gitbook/assets/editor/reward/allow-win-message.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> ### Notification Type Picks where that message is delivered, in the chat or on the action bar. <figure><img src="../../.gitbook/assets/editor/reward/notification-type.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> ## Share with Players Online With this option, when a user wins a specific item, all online players on the server will also receive the same reward. <figure><img src="../../.gitbook/assets/editor/reward/share-with-players-online.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> ## Restrict a Reward This option prevents users from winning the reward if they have any of the specified permissions on the reward. <figure><img src="../../.gitbook/assets/editor/reward-requirement/restricted-permissions.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward > Requirements</p></figcaption></figure> If a user is assigned to a listed permission, such as `group.default`, they won’t be able to win this reward. Since they won’t have access to it, you can use the [Alternative Reward](README.md#alternative-reward) to give them a different item instead. This option is especially useful for situations where a user already owns a cosmetic item, such as tags, chat colors, prefixes, or other cosmetics. ## Broadcast a Reward To broadcast a message to all online players when a user wins a specific reward, simply enable the Broadcast Message feature. By default this feature is not activated. <figure><img src="../../.gitbook/assets/editor/reward/broadcast-message.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> To modify the broadcast message, you can do so in the main crate settings. ## Display Item With this option, you can customize the material, display name, and lore. Note that this is the display item and will not be given to the user. ### Display Name The name the item carries in the preview, which is also the name used when the reward is announced. <figure><img src="../../.gitbook/assets/editor/reward/display-name.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> ### Display Lore The lore shown under the name, useful for describing what a virtual reward actually gives. <figure><img src="../../.gitbook/assets/editor/reward/display-lore.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> Right-clicking the display item (or any win item in the Win Items menu) gives you a physical copy of it, useful if you want to grab the exact item you configured. An Item Properties sub-menu also lets you fine-tune the display item further: RGB color, item flags, banner patterns, enchantments, custom model data/item model, enchantment glint override, potion effects, armor trim, and tooltip style. ## Reward Identifier With this option, you can set a unique identifier for the reward. By default, the plugin automatically assigns a unique identifier to each reward. Changing this identifier will result in data loss. <figure><img src="../../.gitbook/assets/editor/reward/change-identifier.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> > **Danger:** If the identifier is changed, the player progress will get deleted. ## Enabled With this option, you can disable a single reward. It stays configured on the crate but can no longer be won or picked. <figure><img src="../../.gitbook/assets/editor/reward/enabled.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> ## Delete Reward With this option, you can delete the reward from your crate. <figure><img src="../../.gitbook/assets/editor/reward/delete-reward.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> > **Danger:** This option is permanent, and rewards can't be restored. Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/rewards/edit-reward --- # 🏅 Rewards Mode The rewards mode decides how players get a reward from the crate: [Random](#random) draws one by chance, [Selective (non RNG)](#selective-non-rng) lets the player pick it. <figure><img src="../../.gitbook/assets/Screenshot 2025-05-18 193753.png" alt=""><figcaption><p>Rewards Editor (Reward Mode)</p></figcaption></figure> ## Random In this mode, users receive a reward randomly, based on the weight (chance) assigned to each item. ### Percentage With percentage, you can set the chance of a user receiving a specific reward. The system calculates the percentage of each item based on the total number of items. For example, if you have 2 items, each set to 100%, the system treats them as 50% each. The minimum percentage allowed is 0.05%, and there is no maximum limit. (The default percentage for a reward is 100%). <figure><img src="../../.gitbook/assets/editor/reward/weight.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> ### In-Game Preview The player uses a key to open the crate and receives a random reward. <figure><img src="../../.gitbook/assets/normal_1-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Normal Crate</p></figcaption></figure> ## Selective (non RNG) With Selective Mode, it's an ethical way to monetize your server because it removes the RNG from crates. Players are able to select the reward they want based on the number of keys required for that reward. <figure><img src="../../.gitbook/assets/Screenshot 2025-05-18 193929.png" alt=""><figcaption><p>Rewards Editor (Selective Mode)</p></figcaption></figure> > **Danger:** Selective mode does not support the reroll, alternative rewards or guaranteed rewards features. ### Key Requirement With Key Requirements, you can specify the number of keys a user must have to redeem a specific reward. <figure><img src="../../.gitbook/assets/Screenshot 2025-05-24 195930.png" alt="" width="563"><figcaption><p>Reward Editor (Selective Mode)</p></figcaption></figure> ### In-Game Preview The player uses a key to open the crate and receives their selected reward. <figure><img src="../../.gitbook/assets/number_2-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Normal Crate (old)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/rewards-mode --- # 🎁 Random ## Random Mode In this mode, users receive a reward randomly, based on the weight (chance) assigned to each item. <figure><img src="../../.gitbook/assets/Screenshot 2025-05-18 193753.png" alt=""><figcaption><p>Rewards Editor (Reward Mode)</p></figcaption></figure> ## Percentage With percentage, you can set the chance of a user receiving a specific reward. The system calculates the percentage of each item based on the total number of items. For example, if you have 2 items, each set to 100%, the system treats them as 50% each. The minimum percentage allowed is 0.05%, and there is no maximum limit. (The default percentage for a reward is 100%). <figure><img src="../../.gitbook/assets/editor/reward/weight.png" alt="" width="375"><figcaption><p>Editor > Crates > Crate > Rewards > Reward</p></figcaption></figure> ## In-Game Preview: The player uses a key to open the crate and receives a random reward. <figure><img src="../../.gitbook/assets/normal_1-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Normal Crate</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/rewards-mode/random --- # 📬 Selective (non RNG) ## Selective Rewards Mode: With Selective Mode, it's an ethical way to monetize your server because it removes the RNG from crates. Players are able to select the reward they want based on the number of keys required for that reward. <figure><img src="../../.gitbook/assets/Screenshot 2025-05-18 193929.png" alt=""><figcaption><p>Rewards Editor (Selective Mode)</p></figcaption></figure> > **Danger:** Selective mode does not support the reroll, alternative rewards or guaranteed rewards features. ## Key Requirement With Key Requirements, you can specify the number of keys a user must have to redeem a specific reward. <figure><img src="../../.gitbook/assets/Screenshot 2025-05-24 195930.png" alt="" width="563"><figcaption><p>Reward Editor (Selective Mode)</p></figcaption></figure> ## In-Game Preview: The player uses a key to open the crate and receives their selected reward. <figure><img src="../../.gitbook/assets/number_2-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Normal Crate (old)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/rewards-mode/selective-non-rng --- # 🎒 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> #### Item Weights Each win item has a weight from `0` to `100`, `100` by default, the same range as reward weights. Shift + Left-Click an item in the list and type the new weight. When the max amount is limited, an item with a higher weight is picked more often: with three items weighted `50`, `30` and `20` and a max of one item, the first is given half of the time. An item with weight `0` is only given when the max amount leaves room for it after every other item. Weights do nothing while the max amount is infinite, since every item is given. > **Info:** This feature is only available with the Premium Plan. ## 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> #### Command Weights Win commands have weights too, from `0` to `100` and set the same way with Shift + Left-Click on a command. They decide which commands run when the max command amount is limited. The alternative reward's commands always all run, so they have no weights. > **Info:** This feature is only available with the Premium Plan. ## 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 --- # ⚙️ Settings ## Settings The Settings menu holds the options that apply to the whole plugin rather than to one crate. Everything here is also in [config.yml](../configurations/main-configuration.md), so changing it in-game and changing it in the file do the same thing. <figure><img src="../.gitbook/assets/editor/settings.png" alt="" width="375"><figcaption><p>Editor > Settings</p></figcaption></figure> ## Crate Knockback The knockback a player takes when they try to open a crate with the wrong key, or without one. <figure><img src="../.gitbook/assets/editor/settings/crate-knockback.png" alt="" width="375"><figcaption><p>Editor > Settings</p></figcaption></figure> ## Crate Quick Open Lets players open a crate straight from their hand, by holding its key and shift right-clicking the crate, without going through the usual opening. <figure><img src="../.gitbook/assets/editor/settings/crate-quick-open.png" alt="" width="375"><figcaption><p>Editor > Settings</p></figcaption></figure> ## Key Mainhand Requirement Whether players need the key in their main hand to open a crate. Enabled by default, so a key sitting anywhere in the inventory is not enough. <figure><img src="../.gitbook/assets/editor/settings/key-mainhand-requirement.png" alt="" width="375"><figcaption><p>Editor > Settings</p></figcaption></figure> ## Disable Confirmation Menus Skips the confirmation menus, such as the one shown before an [open money cost](crates/open-money-cost.md) is charged or before a selective reward is claimed, sending players straight to the action. <figure><img src="../.gitbook/assets/editor/settings/disable-confirmation-menus.png" alt="" width="375"><figcaption><p>Editor > Settings</p></figcaption></figure> ## Crate Despawn Range The distance at which a crate stops being rendered for a player, holograms and effects included. A smaller range costs less on a busy server, a larger one keeps distant crates visible. <figure><img src="../.gitbook/assets/editor/settings/crate-despawn-range.png" alt="" width="375"><figcaption><p>Editor > Settings</p></figcaption></figure> ## Event Actions The actions every crate runs when an opening starts, when the rewards are given, when the opening ends and when a player is refused. A crate with its own actions for an event uses those instead, as described on [Misc Options](crates/README.md#event-actions). <figure><img src="../.gitbook/assets/editor/settings/event-actions.png" alt="" width="563"><figcaption><p>Settings (Event Actions)</p></figcaption></figure> ## Language The language the plugin runs in, described on [Languages & Translations](../configurations/languages.md). <figure><img src="../.gitbook/assets/editor/language.png" alt="" width="375"><figcaption><p>Editor > Settings</p></figcaption></figure> > **Info:** The settings that exist only in the file, such as the hologram refresh rate and the internal pool size, are listed in [Main Configuration](../configurations/main-configuration.md). Source: https://www.phoenixplugins.com/docs/phoenix-crates/main-features/settings --- # 🚢 Migration The plugin can import from these crate plugins: * **Excellent Crates** * **Crazy Crates** * **Custom Crate** * **Specialized Crate** * **AdvancedCrates** * **AquaticCrates** <figure><img src=".gitbook/assets/Screenshot%202025-10-05%20123938.png" alt=""><figcaption><p>Editor > Migrations</p></figcaption></figure> ## Limits * That we can only support the latest version of the plugins above. Migration cannot be done from an outdated versions. * We cannot guarantee that all the data from other crate plugins will migrate to ours, but reward items will certainly be migrated. * For AquaticCrates, only reward items are migrated due to the plugin’s very different structure. * A crate block that can't be used as a crate block, such as a block added in a newer Minecraft version, is skipped with a warning. That crate keeps the default block. ## Excellent Crates Imports keys, crates, rewards, placed crates and player data from Excellent Crates 6.0.1 or newer: virtual keys, openings, crate cooldowns and reward win counts. Only the Excellent Crates folder in your plugins folder is needed, the plugin itself does not have to be installed. Items saved in its encoded format are only copied exactly while nightcore is installed. <figure><img src=".gitbook/assets/editor/migrations/excellent-crates.png" alt="" width="563"><figcaption><p>Migrations (Migrate from Excellent Crates (6.0.1+))</p></figcaption></figure> Reward rarities have no equivalent here, so each reward's chance is folded into its own weight. Anything that could not be mapped, such as milestones or a key amount above 1 per opening, is listed in the report. ## Crazy Crates Imports keys, crates, rewards, placed crates and player data from Crazy Crates 4.0 or newer. As with Excellent Crates, only its plugin folder is needed. Menu crates are skipped, and crate types with no matching animation open with the default one. <figure><img src=".gitbook/assets/editor/migrations/crazy-crates.png" alt="" width="563"><figcaption><p>Migrations (Migrate from Crazy Crates (4.0+))</p></figcaption></figure> ## Advanced Crates Imports crates, rewards and keys from Advanced Crates 4.4.0 or newer. Unlike the two importers above, it reads the crates from the running plugin, so Advanced Crates has to be installed and enabled. Start it from **Editor > Migrations**, there is no command for it. Each crate keeps its name as the id and gets a key named `<id>_key` made from its key item. Rewards keep their id, chance, commands and display item, and give the configured item when the reward has one. Every crate is imported as a chest with the default idle effects and opening animations. Placed crates and player data are not imported. ## Custom Crates Imports crates, rewards and keys from Custom Crates. It reads the crates from the running plugin, so Custom Crates has to be installed and enabled. Start it from **Editor > Migrations**, there is no command for it. Each crate gets a key with the same id, which keeps its glow. Prizes become rewards named `reward_0`, `reward_1` and so on, with their chance, item and commands. The `[bc]` and `[msg]` command prefixes are turned into a `say` and a `msg %player%` command. A crate block that can't be used is skipped with a warning and the crate keeps the default block. Every crate gets the default idle effects and opening animations. Placed crates and player data are not imported. ## Specialized Crates Imports crates, rewards and keys from Specialized Crates 3.3.9 or newer. It reads every `.crate` file in the Specialized Crates `Crates` folder, so the plugin has to be installed and enabled. Start it from **Editor > Migrations**, there is no command for it. Each crate keeps its file name as the id and imports its name, enabled state, block (including a head texture), open cost and cooldown. Its key keeps the item, the glow and whether a key is required. Rewards keep their display item, chance and commands, and give the display item unless the reward says otherwise. The chance line is removed from the reward lore, and the player placeholders in commands become `%player%`. A crate file that fails to import is skipped and logged, the rest continue. Every crate gets the default idle effects. Placed crates and player data are not imported. ## Preview and Apply Excellent Crates and Crazy Crates are imported in two steps, from **Editor > Migrations** or with /crates migrate \<source> \[confirm]. 1. **Preview** (left-click, or the command without `confirm`) reads everything and reports what would be imported, without changing anything. 2. **Apply** (right-click and confirm, or the command with `confirm`) backs up the whole PhoenixCrates folder and the player data first, then imports. Both steps print a summary in chat and write a full report to the migrations folder, listing every item that was renamed, skipped or not mapped. Backups go to the backups folder. * A crate or key whose id is already taken is imported as `<id>_imported`, and a reward as `<crate>_<reward>`. * Virtual keys are added to what players already have. * The Lite version imports up to 5 crates (6 on a [linked server](plugin-information/licensing.md#linking-a-lite-server)) and 5 keys in total, counting the ones you already have. * Each source can be applied once. To run it again, delete its `.applied` file in the migrations folder. > **Warning:** Disable the old plugin after applying, so both plugins do not handle the same crate blocks. ## Phoenix Crates Migration Moving from the Lite version to the Premium version is automatic. The first time the Premium jar starts, it looks for a plugins/PhoenixCratesLite folder next to it and copies everything across into plugins/PhoenixCrates — your crates, keys, translations, templates and the player database, with nothing converted or dropped. <figure><img src=".gitbook/assets/image%20(67).png" alt=""><figcaption></figcaption></figure> ### Note * The copy only runs while plugins/PhoenixCrates does not exist yet. If the Premium jar has already been started once, the folder is there and the migration is skipped. Stop the server, delete or rename that folder, and start again. * Your old PhoenixCratesLite folder is left untouched. Remove the Lite jar afterwards so both versions are not running side by side. * The Lite version has no license, so after migrating you may need to fill in `product-license` in config.yml. See [🪪 Licensing](plugin-information/licensing.md). > **Warning:** If a PhoenixCratesPro folder is also present, it takes priority and the Lite folder is ignored. ## From MCModels <figure><img src=".gitbook/assets/Migrate Now (1).png" alt=""><figcaption></figcaption></figure> > **Info:** Only applies when purchasing the Premium version. Moving to PhoenixCrates from another crates plugin through the MCModels deal gives a 30% discount. Contact support and ask for the migration deal. We may ask you to fill in a short form about your previous plugin and why you are switching. * **Discord** - [Click Here](https://www.myphoenixstore.com/en/media/discord) * **Email** - support@myphoenixstore.com Source: https://www.phoenixplugins.com/docs/phoenix-crates/migration --- # 📥 Migration - McModels > **Info:** This is only applied when purchasing the premium version of the plugin. Hey there! Looking to migrate from another crates plugin to **PhoenixCrates** and get a 30% discount? Contact us through support and ask for the migration deal. We may ask you to complete a short form with a few questions about your previous plugin and your reasons for migrating.\ \ **Discord** - [Click Here](https://www.myphoenixstore.com/en/media/discord)\ **Email** - support@myphoenixstore.com ## Migration Our plugin offers migration support from other crate plugins to our own. Below are the available migration options. * **AquaticCrates** * **AdvancedCrates** * **Specialized Crate** * **Excellent Crates** * **Crazy Crates** * **Custom Crate** <figure><img src=".gitbook/assets/Screenshot 2025-10-05 123938.png" alt="" width="462"><figcaption><p>Editor > Migrations</p></figcaption></figure> ### Note * That we can only support the latest version of the plugins above. Migration cannot be done from an outdated versions. * We cannot guarantee that all the data from other crate plugins will migrate to ours, but reward items will certainly be migrated. * For AquaticCrates, only reward items are migrated due to the plugin’s very different structure. Source: https://www.phoenixplugins.com/docs/phoenix-crates/migration-mcmodels --- # 🤖 Action Types In our system's configuration files, you can utilize various action types to perform different actions. These actions enable you to interact with players, broadcast messages, play sounds, set gamemodes, and much more. ## Action Types | Action List | Description | | ------------------- | -------------------------------------------- | | \[MESSAGE] | Display a custom message to the player | | \[TITLE] | Display a custom title message to the player | | \[ACTION\_BAR] | This is a custom action bar | | \[CLOSE\_INVENTORY] | Close the player's current inventory | | \[COMMAND] | Execute a command (console or player) | | \[GAMEMODE] | Set the player's gamemode | | \[POTION\_EFFECT] | Apply a potion effect to the player | | \[SOUND] | Play a sound for the player | | \[DELAY] | A way to delay some actions | | \[OPEN] | Opens the crate | | \[GOBACK] | Return to the previous menu | Explore each action type to learn more about its syntax and usage. Examples are provided to illustrate how to use these actions effectively in your system or application. ### **Send Chat Message** This action sends a custom message to the player. * **Syntax:** `[MESSAGE] <message>` * **Example:** `[MESSAGE] &aThis is a custom message` Semicolons inside the message are kept, so you do not have to escape them. ### **Send Title Message** This action displays a custom title message to the player. * **Syntax:** `[TITLE] <title>; <subtitle>; <fadein>; <stay>; <fadeout>` * **Example:** `[TITLE] &aCustom title;&7Custom Subtitle; 20; 40; 20` ### **Send Action Bar Message** This action displays a custom action bar message to the player. * **Syntax:** `[ACTION_BAR] <message>` * **Example:** `[ACTION_BAR] This is a custom action bar` ### **Close Inventory** This action closes the inventory the player has open. * **Syntax:** `[CLOSE_INVENTORY]` * **Example:** `[CLOSE_INVENTORY]` ### **Execute Command** This action executes a command either from the console or as a player. * **Syntax:** `[COMMAND] <target>; <command>` * **Example:** `[COMMAND] console; mvtp %player% world` * **Example**: `[COMMAND] player; warp spawn` The target has to be either `console` or `player`. A leading `/` is optional. > **Info:** The action itself only replaces `%player%`. Any other placeholder is passed through untouched, so it will only work if the command you are running resolves it. ### **Change Gamemode** This action sets the gamemode for the player. * **Syntax:** `[GAMEMODE] <gamemode>` * **Example:** `[GAMEMODE] adventure` ### **Give Potion Effect** This action gives the player a potion effect. * **Syntax:** `[POTION_EFFECT] <effect>; <duration>; <amplifier>` * **Example:** `[POTION_EFFECT] speed; 5; 2` The duration is in **seconds**. Any negative value gives an effect that never runs out, so `[POTION_EFFECT] night_vision; -1; 0` is a permanent one. ### **Play Sound** This action plays a sound for the player. * **Syntax:** `[SOUND] <sound>; <volume>; <pitch>` * **Example:** `[SOUND] entity_arrow_hit_player; 1; 1` * **Example:** `[SOUND] minecraft:block.note_block.pling` The sound is either a vanilla name or a sound key, and a key also plays resource-pack sounds such as `myserver:crate.legendary`. Volume and pitch are optional and default to `1`. ### **Delay** This action will make a short pause until it continues executing actions. * **Syntax:** `[DELAY] <seconds>` * **Example:** `[DELAY] 3` * **Example:** `[DELAY] 0.5` Decimals are accepted, so you can pause for less than a second. ### **Open the Crate** This action opens the crate whose preview menu the player currently has open. It takes no arguments, and it only works from a rewards preview menu, which makes it the way to add an "open now" button to a preview. * **Syntax:** `[OPEN]` * **Example:** `[OPEN]` ### **Go Back** This action returns the player to the menu they came from. If there is no previous menu, the inventory is closed instead. It takes no arguments. * **Syntax:** `[GOBACK]` * **Example:** `[GOBACK]` Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/action-types --- # 🩺 Backups & Health Check ## Backups `/crates backup` saves a zip of the configuration, crates, keys, menus, translations and placed crate locations to the plugin's `backups` folder, named after the date and time. On SQLite the database with every player's keys is included, copied while the server keeps running. On MySQL, MariaDB or PostgreSQL the player data lives on the database server, so only the files are saved and the message says so: back that database up with its own tools. A backup is also saved on its own when the plugin starts with a different version than last time, and before a [migration](../migration.md) from another crate plugin, next to the migration's own copy. The backup runs in the background, so the server does not lag. Only the newest 10 are kept, which [Backups Keep](../configurations/main-configuration.md#general-configuration) changes. ## Health Check `/crates doctor` checks the plugin and prints one screen, each line marked OK, WARN or FAIL with a short fix: | Line | What it checks | | ---- | -------------- | | License | Valid, running on the saved license while the license server can't be reached and for how long, or in [limited mode](licensing.md#when-validation-fails) and why. | | Version | The edition and version, and whether a newer one is out. | | Server | The server software and version, Folia, Java and the players online. | | Database | The database type, and how long it takes to answer. | | Rewards | The [broken rewards](../main-features/rewards/README.md#broken-rewards) and the crates they are in. | | Placed crates | Crates placed in worlds that are not loaded, or of crate types that no longer exist. | | Add-ons | The loaded add-ons and their versions, add-ons that did not start, and add-ons older than the ones that ship with the plugin. | | Hooks | The plugins Phoenix Crates found, the ones installed that failed to hook, and the ones not installed. | `/crates doctor file` also saves the report as a text file in the plugin folder, ready to attach to a support ticket. The report never contains your license key, database password or address. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/backups-and-health-check --- # 🤖 Commands ## Commands The following list shows all available commands for the plugin. **Command alias:** `/phoenixcrates`, `/phoenixc`, `/crate`, `/crates` , `/pcrate` ,`/pcrates` <> - Required \ \[] - Optional<br> \[-s] - Flag to run a command silently from the user. \*1 - Supports offline players and players with a full inventory via the Crate Claim Add-on. \*2 - IP Limit, so bots won't get the key/reward/crate too. ## Player Commands **Crate Commands** | Command | Description | | ------- | ----------- | | /crates virtualKeys | Opens a menu with all your virtual keys. | | /crate open \<crate_id> | Open a crate virtually | | /crates forms | Bedrock players only: switches between Bedrock forms and chest menus. Needs the Bedrock opt out to be allowed. | ## Crate Commands **Crate Commands** | Command | Description | | ------- | ----------- | | /crates createCrate \<crate_id> | Create a new crate. | | /crates deleteCrate \<crate_id> | Delete an existing crate. | | /crates editCrate \<crate_id> | Opens the in-game editor directly for the specified crate. | | /crates giveCrate \<crate_id> \<player> \[amount] \[-s] | Gives a player a crate that they can place. | | /crates giveCrateAll \<crate_id> \[amount] \[-s] | Gives everyone online a crate that they can place. | | /crates giveReward \<crate_id> \<reward\_id> \<player> | Gives a player a specific reward from a crate. \*1 | | /crates giveRandomReward \<crate_id> \<player> \[-s] | Gives a player a random reward from a crate. | | /crates preview \<crate_id> \[player] | Opens the preview menu of a crate for the player. | | /crates open \<crate_id> | Opens the nearest placed crate of that type for yourself. | | /crates resetCooldown \<crate_id> \<player> \[-s] | Resets the open cooldown of a crate for a specific player. | | /crates resetGlobalWinLimit \<crate_id> \<reward_id> | Reset the global win count of a reward. | | /crates resetGlobalWinLimitCooldown \<crate_id> \<reward_id> | Reset the global win limit cooldown of a reward. | | /crates resetPlayerWinLimit \<crate_id> \<reward_id> \<player> | Reset a player's win count for a reward. | | /crates resetPlayerWinLimitCooldown \<crate_id> \<reward_id> \<player> | Reset a player's win limit cooldown for a reward. | | /crates restartCooldowns \<crate_id> \<reward_id> | Restart the cooldowns for a specific/every reward. | | /crates setGlobalWinLimit \<crate_id> \<reward_id> \<amount> | Set the global win count of a reward. | | /crates setPlayerWinLimit \<crate_id> \<reward_id> \<player> \<amount> | Set a player's win count for a reward. | | /crates resetOpenings \<player \| \*> \[crate_id \| \*] \[confirm] | Reset a player's crate openings, for one crate or all of them. `*` resets every player and needs `confirm`. | | /crates setOpenings \<player> \<crate_id> \<amount> | Set how many times a player opened a crate. | | /crates attachCrate \<crate_id> | Attach a crate to the block you are looking at. | | /crates detachCrate | Detach the crate from the block you are looking at. | | /crates placeCrate \<crate_id> \<world> \<x> \<y> \<z> \[facing] \[permanent\|temporary] | Place a crate at a specific world location. A temporary crate is not saved and is gone after a restart. | | /crates removeCrate \<world> \<x> \<y> \<z> | Remove the crate at a specific world location. | | /crates summonCrate \<crate_id> \<world> \<x> \<y> \<z> | Summon a crate item at a world location. | | /crates summonReward \<crate_id> \<reward_id> \<world> \<x> \<y> \<z> | Summon a reward display item at a world location. | | /crates testOpen \<crate_id> | Plays the opening of the nearest placed crate of that type for you, without a key. Nothing is given, counted or announced. See [Crates](../main-features/crates/README.md#test-open). | | /crates simulate \<crate_id> \[count] | Rolls the crate many times without giving anything and shows how often each reward came up. See [Rewards](../main-features/rewards/README.md#simulate-the-odds). | | /crates brokenRewards | Checks every reward again and lists the broken ones with the reason. See [Rewards](../main-features/rewards/README.md#broken-rewards). | ## Key Commands **Key Commands** | Command | Description | | ------- | ----------- | | /crates editKey \<key_id> | Opens the in-game editor directly for the specified key. | | /crates giveKeyAll \<key_id> \[amount] \[-s] | Gives everyone online a specific number of crate keys. \*1 | | /crates giveKey \<key_id> \<player> \[amount] \[-s] | Gives a player a specific amount of crate keys. \*1 \*2 | | /crates takeKey \<key_id> \<player> \[amount] \[-s] | Takes a specific amount of keys from a player. | | /crates setKey \<key_id> \<player> \<amount> | Set a specific amount of Virtual Keys to the user. | | /crates resetKeyAll \<key_id> | Resets a specific virtual key back to 0 for all players, online and offline. | | /crates checkKeys \<player> | Check the virtual keys of a user. | | /crates virtualKeys | Opens a menu showing your current virtual keys. | | /crates payKey \<key_id> \<player> \[amount] | Pay virtual keys to another player. | | /crates summonKey \<key_id> \<world> \<x> \<y> \<z> | Summon a key item at a world location. | ## Reroll Commands **Reroll Commands** | Command | Description | | ------- | ----------- | | /crates giveReroll \<crate_id> \<player> \[amount] | Gives a player a specific amount of available rerolls. | | /crates takeReroll \<crate_id> \<player> \[amount] | Takes a specific amount of rerolls from a player. | ## General Commands **General Commands** | Command | Description | | ------- | ----------- | | /crates editor | Opens the in-game editor of the plugin. | | /crates editLayout \<menu> | Opens a menu in the [In-Game Menu Editor](../configurations/in-game-menu-editor.md). | | /crates reload | Reload the Phoenix Crates plugin. | | /crates setLanguage \<language> | Switch the plugin language. See [Languages](../configurations/languages.md). | | /crates migrate \<source> \[confirm] | Import from another crate plugin. Without `confirm` it only previews. See [Migration](../migration.md). | | /crates addons | List the official add-ons, which of them are installed, and any third-party add-ons. | | /crates changelog | Open the list of released builds and their changes. | | /crates link | Lite only. Link this server to your Phoenix Plugins account for one more crate. See [Licensing](licensing.md#linking-a-lite-server). | | /crates backup | Saves a zip backup of the plugin files. See [Backups & Health Check](backups-and-health-check.md). | | /crates doctor \[file] | Shows the health of the plugin. With `file` it also saves the report for a support ticket. See [Backups & Health Check](backups-and-health-check.md#health-check) and [Doctor and Dashboard](https://www.phoenixplugins.com/docs/phoenix-plugins/doctor-and-dashboard). | | /crates dashboard \[link] | Shows whether this server is connected to the web dashboard. With `link` it gives you a link and a code to connect the server. See [Doctor and Dashboard](https://www.phoenixplugins.com/docs/phoenix-plugins/doctor-and-dashboard). | The reload reads its files in the background, so the server keeps running while it works. Crates cannot be opened until it finishes, and a second reload is refused while one is running. The editor's reload button works the same way. > **Info:** Commands that change every player's data, such as `resetKeyAll` and `resetOpenings *`, work through the players in batches and show their progress on the action bar, or in the console every 10%. Only one can run at a time, so a second one is refused until the first finishes. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/commands --- # 🪪 Licensing > **Info:** License keys, sessions, startup messages, failures and the grace period work the same for every Phoenix plugin and are covered on the general [Licensing](https://www.phoenixplugins.com/docs/phoenix-plugins/licensing) page. Only the Premium version is licensed. ## When Validation Fails The plugin switches to a limited mode instead of turning off, so store and vote plugins can keep giving keys and nothing a player paid for is lost. There is no time limit. | Keeps working | Turned off | | ------------- | ---------- | | `giveKey`, `giveKeyAll`, `setKey`, `takeKey`, `payKey`, `checkKeys`, the virtual keys menu, from players, the console and command blocks | Opening crates, previews, the editors, animations and add-ons | | Physical keys given to offline players, kept and given when they join | | | Placed crates, which stay protected | | A player who clicks a crate is told it can't be opened right now. Admins with `phoenixcrates.admin` get a message on join with the reason, and the console prints one line with what is wrong and how to fix it. Fix the cause and run `/crates reload`: once the license is valid the full plugin loads without a restart. If the license stops being valid while the server runs, crates being opened finish and give their rewards first. The causes and their console messages are listed under [When Validation Fails](https://www.phoenixplugins.com/docs/phoenix-plugins/licensing#when-validation-fails). On a network, every server behind the proxy that runs the Premium jar counts as its own [session](https://www.phoenixplugins.com/docs/phoenix-plugins/licensing#sessions). ## Paid Add-ons Each paid add-on is checked against your license when it loads. One you do not own, or one dropped into the Lite version, does not load, and the console names it and the reason. The plugin itself keeps running. Free add-ons are never checked. `/crates addons` lists every official add-on with the installed ones first, each linking to its page on our website. ## Premium Features in Lite In the Lite version, Premium-only editor buttons keep their locked look and end with a "Click to see what Premium adds" line. Clicking one, reaching a Lite limit (5 crates, or 6 on a linked server, 5 keys, one key per crate, migrations), or running a Premium-only command such as `/crates setKey` or `/crates open` sends a chat message naming the feature with a link to the Premium page. Every one of these texts can be changed in the language file. If the server holds more crates or keys than Lite loads, for example after a Premium trial, Lite loads the first ones by file name and names the rest in the console. Their files are left untouched, so Premium loads all of them again. ## Linking a Lite Server Link a Lite server to your Phoenix Plugins account and it can hold 6 crates instead of 5. Run `/crates link` as a player with `phoenixcrates.admin`. You get a link to click and a code to enter on the website; the code is valid for 15 minutes. Once you confirm it, the console and online admins are told the bonus is active. `/crates link` on a linked server says so. The link is remembered across restarts and website outages. Unlink a server on the website under **Settings > Linked Lite Servers**. After unlinking, no new crate can be made past 5, but crates made while linked stay and keep loading. When the Lite limit stops you on a server that is not linked, the limit message also points to `/crates link`. ## Server Statistics Lite sends the server version, software, the domains players join through and the online player count to our servers on startup, every 5 minutes and on shutdown, so the server shows on the **My Servers** page of the website. `send-server-statistics` in config.yml turns it off. Linking works without it. ## Version Notices Players holding `phoenixcrates.admin` are told on join when a newer build is out, on Lite too, and the first time they join after an update they can click to see what changed. `/crates changelog`, or the Changelog button in the editor, lists every released build with its changes. `notify-if-new-version` in config.yml turns the notices off. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/licensing --- # 🔒 Permissions ## Reroll Permissions All permissions related to the reroll feature. **Reroll Permissions** | Permission | Description | | -------------------------------- | ------------------------------------------------- | | phoenixcrates.command.givereroll | Allow user to give a specified amount of rerolls. | | phoenixcrates.command.takereroll | Allow user to take a specified amount of rerolls. | | phoenixcrates.reroll.\<group> | Grants the rerolls of a [reroll group](../features/reroll.md#group-permissions). | `<group>` is the name of the group as typed in the editor. Groups do not stack, only the highest matching one applies. ## Key Permissions **Key Permissions** | Permission | Description | | ----------------------------- | ---------------------------------------------------- | | phoenixcrates.command.givekey | Allow user to give a key | | phoenixcrates.command.givekeyall | Allow user to give a key to everyone | | phoenixcrates.command.takekey | Allow user to take a key. | | phoenixcrates.command.setkey | Allow user to set a specific number of virtual keys. | | phoenixcrates.command.resetkeyall | Allow user to reset a specific virtual key for all players. | ## General Permissions **General Permissions** | Permission | Description | | ------------------------------------ | --------------------------------------------------------------- | | phoenixcrates.admin | Grants access to everything regarding the plugin. | | phoenixcrates.* | Grants all PhoenixCrates permissions (includes phoenixcrates.admin). | | phoenixcrates.command.create | Allows user to create a crate. | | phoenixcrates.command.delete | Allows user to delete a crate. | | phoenixcrates.command.edit | Allow user to open the in-game editor for a specific crate or key. | | phoenixcrates.command.givecrate | Allows user to give a crate. | | phoenixcrates.command.givecrateall | Allows user to give a crate to everyone. | | phoenixcrates.command.givereward | Allow user to give a specified reward. | | phoenixcrates.command.preview | Allow user to use the preview command. | | phoenixcrates.command.editor | Allow user to access the ingame editor and the menu layout editor. | | phoenixcrates.command.reload | Allow user to reload the plugin. | | phoenixcrates.command.setlanguage | Allow user to switch the plugin language. | | phoenixcrates.command.migrate | Allow user to import data from another crate plugin. | | phoenixcrates.command.addons | Allow user to list the available and installed add-ons. | | phoenixcrates.command.changelog | Allow user to open the changelog of released builds. | | phoenixcrates.command.open | Allow user to open a crate directly with the open command. | | phoenixcrates.command.resetcooldown | Allow user to reset a player's crate cooldown. | | phoenixcrates.command.giverandomreward | Allow user to give a random reward from a crate. | | phoenixcrates.command.checkkeys | Allow user to check another player's virtual keys. | | phoenixcrates.command.resetglobalwinlimit | Allow user to reset the global win count of a reward. | | phoenixcrates.command.resetplayerwinlimit | Allow user to reset a player's win count for a reward. | | phoenixcrates.command.resetplayerwinlimitcooldown | Allow user to reset a player's win limit cooldown for a reward. | | phoenixcrates.command.resetglobalwinlimitcooldown | Allow user to reset the global win limit cooldown of a reward. | | phoenixcrates.command.restartcooldowns | Allow user to restart the cooldowns for a reward. | | phoenixcrates.command.setglobalwinlimit | Allow user to set the global win count of a reward. | | phoenixcrates.command.setplayerwinlimit | Allow user to set a player's win count for a reward. | | phoenixcrates.command.resetopenings | Allow user to reset crate openings of a player or everyone. | | phoenixcrates.command.setopenings | Allow user to set a player's crate openings. | | phoenixcrates.command.summon | Allow user to summon a crate, key, or reward item at a location. | | phoenixcrates.command.attach | Allow user to attach a crate to the block they are looking at. | | phoenixcrates.command.detach | Allow user to detach a crate from the block they are looking at. | | phoenixcrates.command.place | Allow user to place or remove a crate at a specific world location. | | phoenixcrates.command.testopen | Allow user to test the opening of a crate. | | phoenixcrates.command.simulate | Allow user to simulate the odds of a crate. | | phoenixcrates.command.brokenrewards | Allow user to list the broken rewards. | | phoenixcrates.command.backup | Allow user to save a backup of the plugin files. | | phoenixcrates.command.doctor | Allow user to run the health check. | | phoenixcrates.command.dashboard | Allow user to check the web dashboard status and link the server. | ## Crate Permissions Each crate can be configured to require its own permission before a player is allowed to interact with it. By default, this is `phoenixcrates.crate.<id>`, but it can be customized per crate in the crate configuration file under `permission.permission`, and toggled on/off with `permission.required`. **Crate Permissions** | Permission | Description | | -------------------------- | ------------------------------------------------------------- | | phoenixcrates.crate.\<id> | Allows the player to interact with the crate matching `<id>`. | ## Placing and Removing Crates The command permissions above cover the commands. Doing the same thing by hand in the world is gated on phoenixcrates.admin instead: * Placing a crate item into the world. * Shift + left-clicking a placed crate to remove it. So a builder given `phoenixcrates.command.place` can still only place crates through the command. To let them place crates by hand they need `phoenixcrates.admin`, which grants everything else too. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/permissions --- # 🔍 Placeholders PhoenixCrates supports **PlaceholderAPI**, allowing you to use player data from our plugin in other plugins that also support PlaceholderAPI. Below is a list of the available **PlaceholderAPI placeholders** as well as our **internal placeholders** that you can use in holograms. ## PlaceholderAPI The following is the list of the available placeholders that Phoenixcrates has, make sure to replace the `<id>` with the ID of your crate without using the `<>.` | Placeholders | Description | |-------------------------------------------------------------|--------------------------------------------------------------------------------------------------| | %phoenixcrates\_keys\_\<key_id>% | Returns the number of keys a user has (virtual + physical). | | %phoenixcrates\_cooldown\_\<crate_id>% | Returns the cooldown timer for that specific crate. | | %phoenixcrates\_totalopened\_\<crate_id>% | Returns the total number of how many times a user opened that specific crate. | | %phoenixcrates\_totalopened% | Returns the total number of openings for a user. | | %phoenixcrates\_rerolls\_available\_\<crate_id>% | Returns the amount of rerolls a user has for a crate. | | %phoenixcrates\_guaranteed\_amount\_\<crate_id>% | Returns the number of openings remaining until the user's next guaranteed reward for that crate. | | %phoenixcrates\_guaranteed\_reward\_\<crate_id>% | Returns the name of the next guaranteed reward the user will receive for that crate. | | %phoenixcrates\_winLimit\_\<crate_id>\_\<reward_id>% | Returns the player's win limit progress for a specified reward (amount/limit). | | %phoenixcrates\_globalWinLimit\_\<crate_id>\_\<reward_id>% | Returns the global win limit progress for a specified reward (amount/limit). | | %phoenixcrates\_rewardTimeLimit\_\<crate_id>\_\<reward_id>% | Returns the time remaining until the reward expires. | | %phoenixcrates\_cooldownGlobalWin\_\<crate_id>\_\<reward_id>% | Returns the global win limit cooldown remaining. | | %phoenixcrates\_cooldownWinLimit\_\<crate_id>\_\<reward_id>% | Returns the player's win limit cooldown remaining. | ## Hologram Placeholders These are available in a crate's hologram lines, on top of any PlaceholderAPI placeholder. | Placeholders | Description | | ----------------- | ---------------------------------------------------------------------------------------------- | | %name% | The crate's display name. | | %cooldown% | The viewer's remaining cooldown for this crate, or the "available to open" text when there is none. | | %virtual\_keys% | How many virtual keys the viewer holds across every key linked to this crate. | | %player% | The viewer's name. | | %online% | The number of players online. | | %max\_online% | The server's player limit. | | %plugin\_version% | The installed PhoenixCrates version. | Holograms are per player, so each viewer sees their own cooldown and key count. How often those values refresh is set with `hologram-refresh-rate` in [Main Configuration](../configurations/main-configuration.md). ## Internal Placeholders The following placeholders are available when configuring reward display items, such as in the menus configuration: | Placeholders | Description | | ----------------- | ----------------------------------------------------------- | | %player% | Returns the name of the player. | | %reward\_name% | Returns the display name of the reward. | | %reward\_lore% | Returns the lore of the reward. | | %percentage% | Returns the configured weight/percentage of the reward. | | %chance% | The chance (%) of the viewer winning the reward, counting only the rewards they can still win. A reward at its win limit shows 0, or the chance of its alternative when one is set. | | %required\_keys% | Returns the number of keys required to redeem the reward. | | %amount\_limit% | Returns the number of wins remaining before the reward's win limit is reached. | | %global\_amount\_limit% | Returns the number of wins remaining before the reward's global win limit is reached. | `%percentage%` and `%chance%` keep up to five decimals for values below 0.01, so a very rare reward does not show as 0. | %win\_amount% | Returns the player's current win count for the reward (preview and select-reward menus). | | %win\_limit% | Returns the reward's win limit (preview and select-reward menus). | | %global\_win\_amount% | Returns the current global win count for the reward (preview and select-reward menus). | | %global\_limit% | Returns the reward's global win limit (preview and select-reward menus). | | %cooldown% | Returns the time remaining on the player's win limit cooldown (preview and select-reward menus). | | %global\_cooldown% | Returns the time remaining on the global win limit cooldown (preview and select-reward menus). | | %time% | Returns the time remaining until a time-limited reward expires (preview menu). | | %rarity\_name% | Returns the reward's rarity display name (requires the Rarity Add-on). | | %total\_selections% | Returns how many rewards are selected (mass selection menu). | | %available\_keys% | Returns how many keys the player owns for the crate (mass selection menu). | | %selected\_amount% | Returns how many times that reward is selected (mass selection menu). | Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/placeholders --- # ⁉️ Questions & Answers ## Compatibility and setup <details id="does-the-plugin-support-bedrock-versions"> <summary>Does the plugin support Bedrock players?</summary> Yes, through Geyser. The player menus open as native Bedrock forms, and a menu button with several click actions asks Bedrock players which one to run, so Shift actions in the editor work too. Opening animations that use player heads only show once the skulls are registered in Geyser. See [GeyserMC (Bedrock)](../../configurations/geysermc-bedrock.md). </details> <details id="do-the-gui-animations-work-for-bedrock-players"> <summary>Do the GUI animations work for Bedrock players?</summary> Yes. Opening animations are the same for Bedrock and Java players. The rewards preview, reward selection, confirmation, reroll and virtual keys menus open as Bedrock forms when Floodgate or Geyser is installed on the same server, and players can switch back to chest menus with `/crates forms`. See [Bedrock forms](../../configurations/geysermc-bedrock.md#bedrock-forms). </details> <details id="how-do-i-allow-bedrock-users-view-animations-that-include-skulls"> <summary>How do I show animations that use skulls to Bedrock players?</summary> Bedrock cannot load player head textures on its own. Register every head in Geyser's `skin-hashes` option, following the [Geyser custom skulls guide](https://geysermc.org/wiki/geyser/custom-skulls/). The hashes for every animation are listed under [Bedrock skull textures](../../configurations/geysermc-bedrock.md#bedrock-skull-textures). </details> <details id="is-phoenixcrates-folia-compatible"> <summary>Is PhoenixCrates Folia compatible?</summary> Yes, both the free and the Premium version. Commands run as the player, from rewards or from `[COMMAND] player` actions, work there too. An opening ends when the player leaves the crate's world, `/tp` included, the same as on Paper. </details> <details id="why-isnt-the-newest-minecraft-version-supported-yet"> <summary>Why isn't the newest Minecraft version supported yet?</summary> A new release is added once it has settled, so there is a gap between launch and support. PhoenixCrates is usually one of the first of our plugins to get it. There is no ETA, and updates are free for life. The current list is on [Version Support](../../first-installation.md#version-support). </details> <details id="can-the-plugin-run-as-a-forge-or-fabric-mod"> <summary>Can the plugin run as a Forge or Fabric mod?</summary> No, there is no mod version. Hybrid servers such as Arclight or Mohist can load it, but we do not recommend them, and faults caused by the hybrid itself are not plugin issues. </details> <details id="does-the-plugin-work-without-internet-access"> <summary>Does the plugin work without internet access?</summary> The Lite version works offline; only server statistics, update notices and server linking need our servers. Premium checks its license with our servers, so it needs outbound internet access; see [What happens on startup](https://www.phoenixplugins.com/docs/phoenix-plugins/licensing#what-happens-on-startup). </details> <details id="which-files-do-i-copy-to-another-server"> <summary>Which files do I copy to another server?</summary> Copy `crates/`, `keys/`, `menus/`, `translations/`, `config.yml`, `internal_storage.yml`, `rarities.yml` and the add-on configuration files. Add `locations.yml` if the worlds come along; a location in a world the new server does not have is skipped. Player progress (virtual keys, cooldowns, opened counts, win limits) lives in the database, so point the new server at the same MySQL database or bring the SQLite file. Every file is described on [File Structure](../../configurations/crate-configuration-file.md#file-structure). > **Warning:** A license only allows a limited number of servers at once. Check [Licensing](../licensing.md) before running both. </details> ## Crates and models <details id="why-my-crates-can-only-be-open-by-op-players"> <summary>Why can only operators open my crates?</summary> The crate sits inside spawn protection. Set `spawn-protection` to `0` in `server.properties` and protect the area with a region plugin such as WorldGuard instead. </details> <details id="whats-the-difference-between-attachcrate-and-placecrate"> <summary>What is the difference between attachCrate and placeCrate?</summary> **`/crates attachCrate <crate_id>`** turns the block you are looking at into the crate and keeps its look, so a chest, a barrel or part of a build can become a crate. `/crates detachCrate` undoes it. **`/crates placeCrate <crate_id> <world> <x> <y> <z> [facing]`** places the crate at exact coordinates. Nothing has to be there and you do not have to be nearby, which makes it the one for the console and setup scripts. Premium only. For dungeon or minigame instances, add `temporary` at the end: the crate works as normal but is not saved, so it is gone after a restart. Remove it when the instance closes with **`/crates removeCrate <world> <x> <y> <z>`**. A crate copied along with a build or schematic is only a block; place the crate in each copy with these commands. Both need their permission. Placing a crate item by hand needs `phoenixcrates.admin`. See [Permissions](../permissions.md#placing-and-removing-crates). </details> <details id="how-do-i-use-a-custom-model-as-the-crate-block"> <summary>How do I use a custom model as the crate block?</summary> Pick the model through the crate's engine, not by placing the item: [Vanilla Model](../../main-features/crate-engine-mode/README.md#vanilla-model), [Model Engine](../../main-features/crate-engine-mode/README.md#model-engine) or [Better Model](../../main-features/crate-engine-mode/README.md#better-model), depending on where the model comes from. In the free version, right-click the engine item (the experience bottle) to change it. </details> <details id="why-my-custom-models-are-not-being-displayed-correctly"> <summary>Why is my custom model displayed wrong?</summary> **Scrambled model.** A resource pack manager such as ItemsAdder, Oraxen or Nexo is merging Model Engine files into its own pack. Keep Model Engine resources out of that pack so custom model data does not collide. <figure><img src="../../.gitbook/assets/image (33).png" alt=""><figcaption></figcaption></figure> **Too small or too large.** The Vanilla Model engine shows models on an armor stand head. Open the model in Blockbench, go to the Display tab and adjust the head size. <figure><img src="../../.gitbook/assets/image (15).png" alt="" width="563"><figcaption></figcaption></figure> </details> <details id="why-my-custom-model-from-model-engine-keep-flickering"> <summary>Why does my Model Engine model keep flickering?</summary> A region with mob spawning turned off, usually a WorldGuard flag, stops Model Engine models from loading properly. Allow mob spawning in the crate's region. </details> <details id="can-i-change-the-scale-of-a-bettermodel-crate-model"> <summary>Can I change the scale of a Better Model crate model?</summary> Yes, from the Better Model editor. </details> <details id="how-do-i-check-the-animations-of-my-custom-model"> <summary>How do I find the animation IDs of my custom model?</summary> Open the `.bbmodel` file in Blockbench and switch to the Animate tab at the top right. The animation IDs are listed on the left. </details> <details id="why-my-furniture-models-are-being-destroyed-when-clicked"> <summary>Why are my furniture models destroyed when clicked?</summary> Furniture models are not supported directly. With the Vanilla Model engine, convert the furniture into an item with custom model data. </details> ## Opening crates <details id="why-does-my-crate-take-the-key-but-say-it-cant-be-opened"> <summary>Why does my crate take the key but say it cannot be opened?</summary> Another plugin fires the interaction twice, so the crate opens on the first call and refuses the second. Remove plugins one by one to find the one duplicating it. </details> <details id="why-does-my-crate-say-there-are-no-rewards-available"> <summary>Why does my crate say there are no rewards available?</summary> The crate has rewards, but none this player can win right now. Check the reward settings: * The reward is **disabled**. * The player holds one of its **Restricted Permissions**, or misses one of its **Required Permissions**. * Its **Win Limit** or **Global Win Limit** has been reached. * A **Win Limit Cooldown** or **Global Win Limit Cooldown** is still running. * It is **time limited** and the window has passed. With [Rarity](../../add-ons/rarity/) installed, also check that the **rarity is enabled** and that the key's rarities **match** at least one reward. Trying the crate as an operator on a fresh account narrows it down: if it works there the cause is a permission, otherwise a limit or a cooldown. </details> <details id="can-a-player-open-a-crate-with-a-full-inventory"> <summary>Can a player open a crate with a full inventory?</summary> Only with [Crate Claim](../../add-ons/crate-claim/README.md). Without it the player is told the inventory is full and no key is taken. With it the crate opens and whatever does not fit is stored for `/crate claim`. Keys, crates and rewards given by command follow the same rule: dropped at the player's feet without the add-on, stored with it. </details> <details id="why-am-i-told-my-data-is-still-loading"> <summary>Why am I told my data is still loading?</summary> The player's record has not come back from the database yet, and the crate refuses to open rather than read a stale key count. It clears within a second. If it happens all the time, the database is the bottleneck: check that MySQL is reachable, then raise `fetch-timeout` or `maximumPoolSize` in the [connection pool](../../configurations/main-configuration.md#connection-pool). </details> <details id="what-is-the-difference-between-your-chance-and-percentage-in-the-preview"> <summary>What is the difference between "Your Chance" and "Percentage" in the preview?</summary> **Percentage** is the weight the server owner gave the reward. Several rewards can share it. **Your Chance** is the real probability for that player, and all of them add up to 100%. Two rewards set to 100% each give a 50% chance each. </details> <details id="do-reroll-groups-stack"> <summary>Do reroll groups stack?</summary> No. Only the matching group with the highest count applies, so a player in a default group worth 2 and a VIP group worth 10 gets 10. Groups do add to the other sources: ``` free rerolls + best matching group + rerolls given with /crates giveReroll ``` Mass Opening multiplies the total by the number of keys used. Details on [Reroll](../../features/reroll.md#how-the-total-is-calculated). </details> ## Keys and rewards <details id="why-doesnt-an-offline-player-receive-the-key-i-gave-them"> <summary>Why doesn't an offline player receive the key I gave them?</summary> Physical keys given to an offline player wait on the server and are given the next time they join; with [Crate Claim](../../add-ons/crate-claim/README.md) installed they go to the player's claim storage instead. Virtual keys are added to their balance straight away. </details> <details id="why-doesnt-my-key-show-in-the-virtual-keys-menu"> <summary>Why doesn't my key show in the virtual keys menu?</summary> `/crates virtualKeys` only lists a key that is set to **Virtual**, is **enabled**, and that the player owns **at least one** of. A new key stays hidden until you give yourself one with `/crates giveKey`. The menu is customized in [Customize Menus](../../configurations/customize-menus.md#virtual-keys-menu). </details> <details id="can-i-use-a-mythicmobs-item-as-a-key"> <summary>Can I use a MythicMobs item as a key?</summary> Yes, as the key's look. Set the key's material to `mythicitem:<item_id>`, for example `mythicitem:CommonPOIKey`, and the key takes that item's material, model and textures. This works in the free and the Premium version. A key is recognized by a hidden tag that PhoenixCrates adds when it gives the key, not by its name, lore or material. An item handed out by MythicMobs itself, such as with `/mm items give`, does not carry that tag, so the crate rejects it even when it looks identical. Give the key through PhoenixCrates instead: * **By command:** `/crates giveKey <key_id> <player> [amount]`, see [Commands](../commands.md). * **As a mob drop:** add `pcrates:key <key_id>` to the mob's MythicMobs drop table. It drops a real key that opens the crate, and drops nothing if the key does not exist. </details> <details id="will-renaming-a-crate-or-reward-lose-player-progress"> <summary>Will renaming a crate, key or reward lose player progress?</summary> Changing an **identifier** does. The database ties progress to it, so the old records point at nothing: * **Crate** - open cooldowns, opened counts and rerolls. * **Key** - every player's virtual keys of that key. * **Reward** - win counts and win limit cooldowns. * **Rarity** - the rarity link on every reward and key using it. Display names are safe to change at any time. Settle identifiers before a crate goes live. </details> <details id="how-can-i-create-a-reward-where-the-player-doesnt-receive-a-physical-item"> <summary>How do I make a reward that gives no physical item?</summary> Leave the reward item as display only and give the benefit with [win commands](../../main-features/rewards/win-items-and-commands.md), such as a voucher or currency. PlaceholderAPI can randomize the amounts. </details> <details id="how-do-i-remove-the-amount-of-the-item-won-from-the-hologram"> <summary>How do I remove the amount from the reward hologram?</summary> Edit `crate.reward-got` in `translations/translations.en.yml` and remove `&ex%amount%`: ```yaml crate: reward-got: '&a%reward%' ``` <figure><img src="../../.gitbook/assets/image (73).png" alt=""><figcaption></figcaption></figure> </details> <details id="why-when-using-the-chat-from-the-editor-there-are-color-to-the-value"> <summary>Why do values typed in the editor chat get a color?</summary> A chat color or prefix plugin is formatting the message before the editor reads it. Disable that plugin's chat color, or edit the value in the crate file. </details> ## License and purchase <details id="why-does-my-license-say-maximum-concurrent-sessions"> <summary>Why does my license say maximum concurrent sessions reached?</summary> The same license key is active on more servers than your plan allows, usually after copying the plugin to every server behind a proxy. See [Sessions](https://www.phoenixplugins.com/docs/phoenix-plugins/licensing#sessions) on the licensing page. </details> <details id="do-you-offer-refunds"> <summary>Do you offer refunds?</summary> No. A downloaded product is not refundable. See point 7 of the [Terms and Conditions](https://www.phoenixplugins.com/terms-and-conditions). </details> Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers --- # ⁉️ Can a player open a crate with a full inventory? ## Answer Only with the [Crate Claim](../../add-ons/crate-claim/README.md) add-on installed. Without it, a player whose inventory is full is refused before anything happens. They are told their inventory is full and no key is taken, which is deliberate so a reward is never lost to a missing slot. With Crate Claim installed the crate opens normally and anything that does not fit is stored for the player to collect with `/crate claim`. The same applies to keys, crates and rewards handed out by command, which are dropped at the player's feet without the add-on and stored with it. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/can-a-player-open-a-crate-with-a-full-inventory --- # ❔ Can i change the scale of a Better Model crate model? ## Answer Yes. Scaling for Better Model is set from the Better Model editor. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/can-i-change-the-scale-of-a-bettermodel-crate-model --- # ⁉️ Can the plugin run as a Forge or Fabric mod? ## Answer No. It is a Java plugin and there is no mod version of it. Hybrid servers such as Arclight or Mohist can load it, but we do not recommend them. Faults caused by the hybrid itself, such as its own teleport handling, are not plugin issues. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/can-the-plugin-run-as-a-forge-or-fabric-mod --- # ⁉️ Does the plugin support bedrock versions? ## Answer Some features may not work with Bedrock (using Geyser), such as certain actions in the editor due to the lack of a "Shift" option. However, users can still configure settings through the file system. Additionally, opening animations that use heads won't work due to Geyser limitations. In conclusion, while our plugin supports Bedrock versions, it may not function at full potential. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/does-the-plugin-support-bedrock-versions --- # ⁉️ Does the plugin work without internet access? ## Answer Not permanently. The Premium version validates its license against `phoenixplugins.com` when the server starts and keeps renewing it while the server runs, so the machine needs outbound internet access. If our servers cannot be reached, a grace period starts and everything keeps working while the console counts down to its expiry, which covers a temporary outage or a brief network problem. Once it expires the plugin's commands are blocked. If you see the grace period message and your server does have internet, the connection is most likely being blocked by a firewall on the host. The Lite version has no license and never contacts our servers, so it runs fully offline. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/does-the-plugin-work-without-internet-access --- # ⁉️ Do reroll groups stack? ## Answer No. When a player matches more than one reroll group, only the group with the highest reroll count applies. A VIP holding both a default group worth 2 and a VIP group worth 10 gets 10, not 12. Groups do combine with the other two sources though. The total a player opens with is: ``` free rerolls + best matching group + rerolls given with /crates giveReroll ``` When several keys are opened at once through Mass Opening, that total is multiplied by the number of keys used. The full explanation is on the [Reroll](../../features/reroll.md#how-the-total-is-calculated) page. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/do-reroll-groups-stack --- # ⁉️ Do the GUI animations work for Bedrock players? ## Answer Yes, the inventory animations play normally for Bedrock players. There are no Floodgate form menus, so Bedrock players see the same inventory menus as Java players. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/do-the-gui-animations-work-for-bedrock-players --- # ⁉️ Do you offer refunds? ## Answer No. Once the product has been downloaded it is not refundable. See point 7 of our [Terms and Conditions](https://www.phoenixplugins.com/terms-and-conditions). Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/do-you-offer-refunds --- # ❔ How can i create a reward where the player doesn't receive a Physical Item? ## Answer he reward will only be for display purposes, and the player won't receive a physical item. Instead, you can use commands to grant benefits or actions, such as giving a voucher or in-game currency. You can also use PlaceholderAPI to set random quantities for these virtual rewards. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/how-can-i-create-a-reward-where-the-player-doesnt-receive-a-physical-item --- # ❔ How do i allow Bedrock users view animations that include skulls? ## Answer This is a known incompatibility that Bedrock users experience with skulls on servers. Geyser provides an option that allows you to load skulls for Bedrock players, but they must be manually defined in the configuration. Make sure to check their guide on that.\ \ 👉 [Click to view the geyser guide](https://geysermc.org/wiki/geyser/custom-skulls/) ## Skulls Below are the texture links we use for every animation in the plugin that includes player heads. The following method works with the `skin-hashes` option that geyser provides. You will only include the part that is green, like on the example below. ~~http://textures.minecraft.net/texture/~~14e424b1676feec3a3f8ebade9e7d6a6f71f7756a869f36f7df0fc182d436e <details> <summary>Christmas Animation Add-On</summary> **Santa Claus First**:\ 1\) [Santa](http://textures.minecraft.net/texture/14e424b1676feec3a3f8ebade9e7d6a6f71f7756a869f36f7df0fc182d436e) 2) [Kid](http://textures.minecraft.net/texture/5c8d3e33cb1ca1aacf9dad322f4f7519cd7dfa509c33b7dd87b5398ee0ac17a8) **Elf Animation**:\ 1\) [Present](http://textures.minecraft.net/texture/45368f5635ff6c3407f0f356c5b6e0947bcd5e38490c9aa8b8b582a4f21ae3cb) | 2) [Tv](http://textures.minecraft.net/texture/7bbe8fd1aa39f15076e884dfe6ddb9a3f3761db31e2b1f9940b5dfd34d1c4d), 3) [Elf](http://textures.minecraft.net/texture/4ec5455f43426ca1874b5c7b4a492ec3722a502f8b9599e758e133fed8b3c1e4) **Christmas Tree Animation:**\ 1\) [Ornament](http://textures.minecraft.net/texture/2db24dc262631663ba1e3e3398645013dc5cd2331ec9b9f3eb26855a0b104baa)\ \ **Misc for All Animations**: (Should Import for any kind of Animation)\ 1\) **Presents**: a) [White](http://textures.minecraft.net/texture/e47b37e67a89159bf4acc4a44d4328f4efc0181605142288e5eed1ab8aed913c), b) [Green](http://textures.minecraft.net/texture/28dc3c84491c4ff103de6ea01880e2d83432cd4878b84d6b43253cc51fd978e7), c) [Blue](http://textures.minecraft.net/texture/5b85e29f29ec9a90e482ea5b8391bcb4560bbae0dcd15d7ce1d86016b4356e98), d) [Purple](http://textures.minecraft.net/texture/e9e39d91c04c30cc1f530fee798eed279dde60f95c2e1d155c0fdd361d0962ed), e) [Yellow](http://textures.minecraft.net/texture/abd98792dd92d9719894341ac9012a584c4428558fd2c712f78e5f0d4da85470), f) [Red](http://textures.minecraft.net/texture/45368f5635ff6c3407f0f356c5b6e0947bcd5e38490c9aa8b8b582a4f21ae3cb)\ 2\) **Ornaments**: a) [Red](http://textures.minecraft.net/texture/c6f518cdcc30da6e21833f3d90366c3703c27a0170b928fb15b5e51816f4e15e), b) [Orange](http://textures.minecraft.net/texture/ad53ec557eca3c5a08be794164b2e9b6a7fb703a33388f0a9c02c3b16c2945e4), c) [Yellow](http://textures.minecraft.net/texture/c0dac2501c9e756767f6943323ad5955b5a975bb09be12364ef80ea3f1ca7b06), d) [Lime](http://textures.minecraft.net/texture/9b68ca27a304d21e2e8a99a748093f95ae5b148c59d7af0b5670f1d15202502e), e) [Green](http://textures.minecraft.net/texture/41e7340dd4c009c43c398bc40d9aed147014057a7f43722c6cdc9b45837015f5), f) [Dark Green](http://textures.minecraft.net/texture/b605c66347f327c5eed27672d7a0e347f4e36c006353c91b78935ba28116504), g) [Dark Aqua](http://textures.minecraft.net/texture/623323728e9df5c38053176465da1f4c855cd6a3a5f3928a223150e680441a8f), h) [Dark Blue](http://textures.minecraft.net/texture/86f901bbde8cd67520fa0c7ae461ee7ca66ce3c4c481cd5c12fb43712eea6b63), i) [Aqua](http://textures.minecraft.net/texture/29273cb3c79ecd53c13b4d71e9afd919d1dcba1410c2538b8fe099ecd61a6cb4), j) [Very Dark Blue](http://textures.minecraft.net/texture/17f85d2edc530c4f33a35c7cccefea9528812137ae13e040e1169032b4f39c53), k) [Purple](http://textures.minecraft.net/texture/431d901ceeb38d0f9c63ae66cd5a46e33a09c0349d383f5a5c7c3726e0e0e371), l) [Magenta](http://textures.minecraft.net/texture/94b3aed343afb22d536ca60cf95e56cf334c68bc41b1369ec9b06f4dd050e6cb), m) [Pink](http://textures.minecraft.net/texture/87f5c30a117ee8ae80c7858ac42c67b2bbe5e600a60ceeaa2817f862dd89333d) </details> Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/how-do-i-allow-bedrock-users-view-animations-that-include-skulls --- # ❔ How do i check the animations of my custom model? ## Answer The easiest way is to check the .bbmodel file of your crate. If you're using Blockbench, open your model file in the app. In the top right corner, click on the Animate tab. On the left side, you'll see a list of your model's animations, where you can find the animation IDs. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/how-do-i-check-the-animations-of-my-custom-model --- # ❔ How do i remove the amount of the item won from the Hologram? This answer is related to the following example `x1` that displays the amount of the reward that the user receives. <figure><img src="../../.gitbook/assets/image (73).png" alt=""><figcaption></figcaption></figure> ## Answer To edit out the amount of the reward, you need to open the `translations` folder of PhoenixCrates and go to the `translations.en.yml` file and find the following message: ```yaml crate: reward-got: '&ex%amount% &a%reward%' ``` From the message above simply remove the `&ex%amount%`part Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/how-do-i-remove-the-amount-of-the-item-won-from-the-hologram --- # ❔ How do i use a custom model as the crate block? ## Answer The model is chosen through the crate's engine, not by placing the item as a block. Set the engine to Vanilla Entity, Model Engine, or Better Model depending on where your model comes from. In the free version you can right click the engine item, the experience bottle, to change it. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/how-do-i-use-a-custom-model-as-the-crate-block --- # ⁉️ Is PhoenixCrates Folia compatible? ## Answer Yes, both the free and the premium version run on Folia. Commands run as the player, from rewards or from `[COMMAND] player` actions, work there as well. An opening ends when the player leaves the crate's world, `/tp` included, just like on Paper. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/is-phoenixcrates-folia-compatible --- # 🤔 What is the difference between "Your Chance" and "Percentage" in the preview? ## Answer In the preview menu, there are two key concepts: "Percentage" and "Your chance" "Percentage" is the value set by the server owner for a specific reward, indicating its likelihood of being obtained. Multiple rewards can share the same percentage, meaning they have an equal chance of being won. "Your chance" refers to the actual probability of a player winning a particular item. For example, if two items are configured with 100% each, the player has a 50% chance of winning either item. "Your chance" will always total 100%. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/what-is-the-difference-between-your-chance-and-percentage-in-the-preview --- # 🤔 What's the difference between attachCrate and placeCrate? ## Answer **`/crates attachCrate <crate_id>`** turns the block you are looking at into that crate. The block keeps its own appearance, so you can attach a crate to a chest, a barrel or part of a build without the crate replacing it. Use `/crates detachCrate` to undo it. **`/crates placeCrate <crate_id> <world> <x> <y> <z> [facing]`** places the crate at exact coordinates in a named world, with an optional facing direction. Nothing needs to exist there first, and you do not have to be standing nearby, which makes it the one to use from the console or in a setup script. This command is Premium only. Both need the matching permission, and placing a crate item by hand in the world needs `phoenixcrates.admin` instead. See [Permissions](../permissions.md#placing-and-removing-crates). Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/whats-the-difference-between-attachcrate-and-placecrate --- # ❔ Which files do i copy to another server? ## Answer Copy `crates/`, `keys/`, `menus/`, `translations/`, `config.yml`, `internal_storage.yml`, `rarities.yml` and the add-on configuration files. That carries every crate, key, reward and menu across. Placed crates live in `locations.yml`, so copy that too if the worlds are coming with you. A location pointing at a world the new server does not have is skipped. Player progress is not in any of these files. Virtual keys, cooldowns, opened counts and win limits are in the database, so point the new server at the same MySQL database or bring the SQLite file along. The full breakdown of every file is on the [File Structure](../../configurations/file-structure.md) page. > **Warning:** A license only allows a limited number of servers running at once, so remember to check [Licensing](../licensing.md) before starting both servers together. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/which-files-do-i-copy-to-another-server --- # ❓ Why am I told my data is still loading? ## Answer The message "Hold on! We're still loading your data" means the player's record has not finished coming back from the database yet. The crate refuses to open rather than risk reading a stale key count and taking a key it should not. It normally clears within a second and the player can simply click again. If it happens constantly, the database is the bottleneck. Check that your MySQL server is reachable and responsive, then look at the connection pool settings in [Main Configuration](../../configurations/main-configuration.md#connection-pool), where raising `fetch-timeout` or `maximumPoolSize` usually solves it. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/why-am-i-told-my-data-is-still-loading --- # ❓ Why does my crate say there are no rewards available to me? ## Answer The crate has rewards, but none that this particular player can win right now. Work through the list below, checking the reward's own settings in the editor: * The reward is **disabled**. * The player holds one of the reward's **Restricted Permissions**. * The player is missing one of the reward's **Required Permissions**. * The reward's **Win Limit** has been reached by that player. * The reward's **Global Win Limit** has been reached by everyone combined. * A **Win Limit Cooldown** or **Global Win Limit Cooldown** is still running. * The reward is **time limited** and its window has expired. With the [Rarity](../../add-ons/rarity/) add-on installed there are two more: * The reward's **rarity is disabled**, which makes every reward under it impossible to win. * The key being used has rarities assigned and **none of them match** any reward in the crate. A quick way to narrow it down is to try the same crate as an operator on a fresh account. If it works there, the cause is permission based; if it does not, it is a limit or a cooldown. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/why-does-my-crate-say-there-are-no-rewards-available --- # ❓ Why does my crate take the key but say it can't be opened? ## Answer Another plugin on your server is firing the interaction twice, so the crate is opened once and then refused on the second call. Test with the other plugins removed to find which one is duplicating the interaction. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/why-does-my-crate-take-the-key-but-say-it-cant-be-opened --- # ❓ Why does my license say maximum concurrent sessions reached? ## Answer The same license key is active on more servers at once than your plan allows. On a network this usually happens after the plugin is copied to several servers behind the proxy, each of them validating the same key. Stop the servers you do not need running and restart. If you genuinely need more sessions, contact us on [Discord](https://www.phoenixplugins.com/media/discord) and we can raise the limit on your account. A server that crashed without shutting down cleanly can leave its session registered for a short while, so if you are sure nothing else is running, wait a few minutes before getting in touch. While this is unresolved the plugin is not disabled, but all of its commands are blocked. See [Licensing](../licensing.md) for the full picture. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/why-does-my-license-say-maximum-concurrent-sessions --- # ❓ Why doesn't an offline player receive the key i gave them? ## Answer A physical key cannot be handed to a player who is not online unless the Crate Claim add-on is enabled to hold it for them. Without it the command is refused. Virtual keys are not affected and can always be given offline. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/why-doesnt-an-offline-player-receive-the-key-i-gave-them --- # ❓ Why doesn't my key show in the virtual keys menu? ## Answer `/crates virtualKeys` only lists a key when all three of these are true: * The key is set to **Virtual** in the editor. A physical key never appears here, however many the player is holding. * The key is **enabled**. * The player owns **at least one** of it. Keys the player has none of are left out rather than shown as zero. So an admin testing a brand new key sees an empty menu until they give themselves one with `/crates giveKey`. The menu itself can be customized in `menus/virtual_keys.yml`. See [Customize Menus](../../configurations/customize-menus.md#virtual-keys-menu). Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/why-doesnt-my-key-show-in-the-virtual-keys-menu --- # ❓ Why isn't the newest Minecraft version supported yet? ## Answer A new Minecraft release is added once it has settled, so there is a gap between it launching and us supporting it. PhoenixCrates is normally one of the first of our plugins to get it. We do not give an ETA for it. Updates are free for life, so the update reaches you at no extra cost. Check the [Version Support](../version-support.md) page for what is supported right now. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/why-isnt-the-newest-minecraft-version-supported-yet --- # ❓ Why my crates can only be open by OP Players? ## Answer Only ops can access your crates, the issue may be caused by the "spawn-protection" setting in your "server.properties" file. To fix this, set "spawn-protection" to 0. This will prevent interference and allow all players to access the crates as intended. Additionally, it's recommended to use a plugin like WorldGuard to protect specific regions. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/why-my-crates-can-only-be-open-by-op-players --- # ❓ Why my custom model from model engine keep flickering? ## Answer One reason this issue might occur is that you are using a protection plugin, such as WorldGuard, which has the mob spawning set to false in that region. This setting can prevent Model Engine models from loading properly. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/why-my-custom-model-from-model-engine-keep-flickering --- # ❓ Why my custom models are not being displayed correctly? ## Answers ### Messed up Crate Model If you're using a dynamic resource pack handler like ItemsAdder, Oraxen, Nexo or Vanilla Resourcepack, ensure it properly manages Model Engine models. Issues are not caused by our crates plugin but may arise if custom assets and Model Engine resources are unintentionally combined. Verify that your Resourcepack folder doesn’t contain files related to Model Engine to avoid synchronization issues with custom model data. Below is a photo of what was happening to one of our users: <figure><img src="../../.gitbook/assets/image (33).png" alt=""><figcaption></figcaption></figure> ### Smaller / Bigger Crate than the original model If you're using custom models, they might appear too small or too large when imported into Phoenix Crates with the vanilla model engine. Phoenix Crates uses armor stands to display models. To fix this, open the model in BlockBench, go to the Display tab, and adjust the size for when it's placed on an armor stand head. Below is a photo of what was happening on one of our users: <figure><img src="../../.gitbook/assets/image (15).png" alt="" width="563"><figcaption></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/why-my-custom-models-are-not-being-displayed-correctly --- # ❓ Why my furniture models are being destroyed when clicked? ## Answer PhoenixCrates doesn't have a direct support for furniture models, if you are using the Vanilla Model Engine for your crate, you will need to convert the furniture model into an item with custom model data. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/why-my-furniture-models-are-being-destroyed-when-clicked --- # ❓ Why when using the chat from the editor there are color to the value? ## Answer This issue is caused by a prefix or chat color plugin that isn't formatting correctly. To fix it, disable your chat color or manually edit it in the crates file. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/why-when-using-the-chat-from-the-editor-there-are-color-to-the-value --- # ❓ Will renaming a crate, key or reward lose player progress? ## Answer Yes. Identifiers are what the database uses to tie progress to a crate, key, reward or rarity, so changing one leaves the old records pointing at something that no longer exists. Concretely, changing an identifier drops: * **Crate** - open cooldowns, opened counts and rerolls for that crate. * **Key** - every player's virtual keys of that key. * **Reward** - win counts and win limit cooldowns for that reward. * **Rarity** - the rarity link on every reward and key using it. Display names are a different thing entirely and are safe to change whenever you like, so rename the display name rather than the identifier if you just want it to read differently in game. Pick your identifiers before the crate goes live and leave them alone afterwards. If you must change one, do it while nobody has progress worth keeping. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/questions-and-answers/will-renaming-a-crate-or-reward-lose-player-progress --- # 📒 Version Support ## Version Support <a href="#version-support" id="version-support"></a> The plugin supports Spigot, any Spigot forks, Paper, any Paper forks, and Folia. It should also work on any custom modded servers. <table><thead><tr><th>Minecraft Version</th><th data-type="checkbox"></th></tr></thead><tbody><tr><td>26.x</td><td>true</td></tr><tr><td>1.21.x</td><td>true</td></tr><tr><td>1.20.4+</td><td>true</td></tr> </table> > As of version 6.0, PhoenixCrates supports 1.20.4+, support for versions lower than that has been dropped. Source: https://www.phoenixplugins.com/docs/phoenix-crates/plugin-information/version-support --- # 🏠 Homepage ## Introduction Phoenix Crates is a unique plugin that provides players with a fun and user-friendly way to add crates to their server. It offers a wide variety of animations, from simple opening and closing to more elaborate effects, all designed to enhance the player's experience. With its intuitive interface, players of all skill levels can easily incorporate these animations. This plugin allows players to elevate their server and create a more exciting, dynamic world. ## Documentation This doc page includes every feature provided by the plugin, both in the free and premium versions. Be sure to take an in-depth look, and if you have any questions or suggestions, feel free to contact our team. - Every feature exclusive to the Premium version is marked with a ⭐ - Every feature exclusive added via an add-on is marked with a 💎 ## Premium Version In the following table, you can see the additional perks available with the premium version of PhoenixCrates. ### Purchase Phoenix Crates from our [Website](https://www.phoenixplugins.com/phoenix-crates) <table data-full-width="false"><thead><tr><th>Free Version</th><th>Premium Plan Extra Perks</th></tr></thead> <tbody><tr><td>Crates Limit 5</td><td>Unlimited Crates</td></tr> <tr><td>Keys Limit 5</td><td>Unlimited Keys</td></tr> <tr><td>25 Opening Animations</td><td>36 Opening Animations</td></tr> <tr><td>1 Keys Linked per Crate</td><td>Unlimited Keys linked</td></tr> <tr><td>Open Cost: None, Level, Vault, PhoenixCurrencies</td><td>PlayerPoints, VotingPlugin, ExcellentEconomy</td></tr> <tr><td>Max Win Rewards 5</td><td>Max Win Rewards 30</td> <tr><td>No Keys priority</td><td>Has Key priority</td></tr> <tr><td>No Share with Everyone Online</td><td>Includes Share with Everyone</td></tr> <tr><td>No Reward cooldowns</td><td>Has Reward cooldowns</td></tr> <tr><td>No Win Item/Command Amount</td><td>Has Win Item/Command Amount</td></tr> <tr><td>No Rerolls</td><td>Includes Rerolls Feature</td></tr> <tr><td>No Clone Crate </td><td>Includes Clone Crate</td></tr> <tr><td>Global Broadcast</td><td>Per Create Broadcast</td></tr> <tr><td>Reward Notification: Chat</td><td>Chat, Action Bar</td></tr> <tr><td>No Toggle Reward Win Message</td><td>Includes Reward Message Toggling</td></tr> <tr><td>Add Rewards Manually</td><td>Add Multiple Rewards</td></tr> <tr><td>SQLite Database Support</td><td>MySQL Database Support</td></tr> <tr><td>Doesn't Include API</td><td>Public API</td></tr> <tr><td>Not An Option to Install Add-ons</td><td>Install Add-ons to the Plugin</td></tr> <tr><td>Community Based Support</td><td>Specialized Support</td></tr> <tr><td>Response Time ( NO ETA )</td><td>Response Time ( 1-48 Hours )</td></tr> <tr><td>Hot Fixes ( NO ETA )</td><td>Bug Fixes ( 1-7 Days )</td></tr> <tr><td>Doesn't Include a Discord Role</td><td>Discord Role</td></tr></tbody></table> The premium version includes all the features of the free version, along with additional premium features. ## Bug Reports Before reporting an issue to our team, make sure you have tested the latest available build. If you are experiencing an issue on an older version, it will likely not be checked by our team. <figure><img src=".gitbook/assets/Phoenix_Thumbnail_Crates.png" alt="" width="563"><figcaption><p>Phoenix Crates</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-crates === # Phoenix Duels documentation > Premium duels plugin for Spigot and Paper: 1v1, party and FFA duels with arenas that regenerate, kits, queues, betting and 50+ rules, all set up in-game. Docs: https://www.phoenixplugins.com/docs/phoenix-duels Supported Minecraft versions: 1.20.4 – 26.3 (Paper, Folia (experimental), Spigot) --- # 💎 Premium Add-ons > **Warning:** Every add-on on this page requires PhoenixDuels Premium as its base plugin, including the free ones. "Free" here means free to download, not that it runs on Lite. An add-on dropped into a Lite installation refuses to load and reports it in the console on startup. # 💎 Premium Add-ons ## Player Kits Lets your players build their own personalised kits from a set of items that you configure, with an in-game editor for enchantments, stack sizes, durability and armor trims. ## Elo Ranks Adds elo ranks with five defaults: Bronze, Silver, Gold, Diamond and Emerald, along with a `/ranks` menu. ## Lobby Items Adds lobby hotbar items across three stages: default lobby items, party items, and queue items, plus a lobby scoreboard and a right-click menu on other players. ## Sign Queues Adds signs that players can click to join or leave the queue for a game mode, with a live count of who is waiting. <!-- ## Public Parties Lets party leaders make their party public so that anyone can join it. --> ## Bed Fight Adds the well known Bed Fight gamemode as a rule you can apply to a mode. ## Boxing Adds the well known Boxing gamemode as a rule you can apply to a mode. ## The Bridge Adds the well known Bridge gamemode as a rule you can apply to a mode. ## Spleef Adds the well known Spleef gamemode as a rule you can apply to a mode. ## TnT Run Adds the well known TnT Run gamemode as a rule you can apply to a mode. <!-- ## SkyWars Periodically refills the arena chests with random loot and shows a hologram countdown until the next refill. --> # 🪨 Free Add-ons ## Floor is Lava Raises the lava by one layer every few seconds from the bottom of the battle region up. ## Pillar of Fortune Gives every player a random item or block on a fixed timer. ## Rematch & Requeue Adds `/duelrematch` and `/duelrequeue` so players can jump straight back into a match instead of navigating menus. Source: https://www.phoenixplugins.com/docs/phoenix-duels/addons --- # 🛏️ Bed Fight ## Information The Bed Fight add-on adds the well known Bed Fight gamemode to the plugin. <figure><img src="../.gitbook/assets/Bed%20Fight.png" alt="" width="188"><figcaption><p>Bed Fight Add-On</p></figcaption></figure> :point\_right: [You can purchase this add-on on Phoenix Store](https://www.myphoenixstore.com/items/bed-fight-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, then restart your server, or include the add-on while using the bundle download option to download the plugin. This add-on adds the Bed Fight as a [gamemode rule](../main-features/create-a-mode/README.md#mode-rules) to the plugin. ### Create a Gamemode Create a gamemode dedicated for the Bed Fight Gamemode. ### Select Rule Select the Generated rule `Bed Fight` and any other rule you might want. ### Create a Map Create a map dedicated for the Bed Fight Gamemode. Place a bed for each team inside the arena. When a bed is broken, Bed Fight matches it to whichever team's spawn point is closest to it. ### Regeneration Make sure that the Regeneration is enabled for your map, otherwise the blocks will not regenerate. ### Whitelist Gamemode Select the Bed Fight gamemode as the only allowed mode for that map, and you are all set! ## Action Bar The Bed Fight rule can show an action bar summarizing every team's bed status. Both the toggle and the action bar's format string are editable from the rule's settings. <figure><img src="../.gitbook/assets/add-ons/bed-fight/action-bar.png" alt="" width="563"><figcaption><p>Bed Fight Rule (Action Bar)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/bed-fight/action-bar-format.png" alt="" width="563"><figcaption><p>Bed Fight Rule (Action Bar Format)</p></figcaption></figure> ## Bed Defence Build a defence around each bed into the map, for example wood and end stone, and list those block types under **Bed Defence Blocks** in the rule's settings. Wildcards are supported, so `*_PLANKS` covers every plank type. A listed block counts as defence only when it sits within **Bed Defence Radius** blocks of a bed, so the same block type elsewhere in the map stays protected. Defence blocks remain breakable after their bed has been destroyed. Pair this with the **Only Self Placed Block Breaking** rule to make the defence and player-placed blocks the only breakable blocks in the map. Without that rule, every block in the map is breakable anyway. ## Placeholders The Bed Fight add-on adds the following placeholders that you can use on the Scoreboard: 1. `%bed_team1_status%` through `%bed_team4_status%` - Returns the bed status (alive checkmark, or remaining player count once destroyed) for that team slot. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that Bed Fight has. | Placeholders | Description | | -------------------------------------- | --------------------------------------------------------- | | %phoenixduels_bedfight_team1_status% | Returns team 1's bed status. | | %phoenixduels_bedfight_team2_status% | Returns team 2's bed status. | | %phoenixduels_bedfight_team3_status% | Returns team 3's bed status. | | %phoenixduels_bedfight_team4_status% | Returns team 4's bed status. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/bed-fight --- # 🥊 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: - "" - "�a76d7⚔ e8add%winner% &fout-boxed &c%loser% &7(&a%winner_hits% &8- &c%loser_hits%&7)" - "�a76d7☄ &fMode: e8add%mode% &8┃ �a76d7✦ &fFirst to e8add%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 --- # 🚩 Capture the Flag ## Information The Capture the Flag add-on gives every team a banner at their base. Steal the enemy's banner, carry it back to your own, and you score a capture. First team to the goal wins the round. This add-on requires PhoenixDuels Premium. ### 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 Capture the Flag as a [gamemode rule](../main-features/create-a-mode/#gamemode-rules-30) to the plugin, and generates the following file: * `PhoenixDuels/translations/captureflag.translations.en.yml` - The translation file for the add-on. ### Create a Gamemode Create a gamemode dedicated for Capture the Flag. ### Select Rule Select the Generated rule `Capture the Flag` and any other rule you might want. ### Place the Banners Place one banner per team inside the arena's battle region, next to each team's spawn. Any banner type works, and its color is up to you. ### Create a Map Create a map dedicated for this ruleset, and make sure Regeneration is enabled. > **Danger:** Capture the Flag refuses to start a match on an arena without Regeneration enabled. The rule moves banner blocks around the map, so the arena has to be able to reset itself between matches. > **Info:** This add-on supports [Folia](../first-installation.md#version-support), which is still experimental. ## The Flags There is no separate setup step for the flags. When a round starts, every banner inside the battle region is scanned and handed to the team whose spawn it sits closest to — the same way Bed Fight decides which bed belongs to which team. If a team has more than one banner nearby, the closest one becomes its flag. If a team ends up without a banner, everyone in the match is warned in chat, so it is obvious you missed one rather than the mode quietly half-working. ## How it Plays 1. Breaking an enemy flag takes it. The banner disappears from its base and appears on the carrier's head. 2. You cannot break your own team's flag. 3. A carrier who dies, leaves the match, disconnects or becomes a spectator drops the flag where they last stood. It sits on the ground for the return time, then goes home on its own. If there is no free spot there, it goes home straight away. 4. Walking over a dropped flag picks it up if it belongs to an enemy team, or sends it straight home if it is your own. 5. Bringing an enemy flag within the capture radius of your own flag scores a capture — but only while your own flag is still at its base. A team whose flag is out cannot score. 6. The first team to reach the capture goal wins the round. Players respawn rather than being eliminated, so the round is decided by captures and nothing else. While a player waits to respawn, they cannot pick up or return a flag. Flags can only be taken while the round is running. When a round starts and when the match ends, every flag is put back at its base, so a flag never goes missing between rounds. ## Match Settings The Capture the Flag rule's settings let you configure: * **Capture Goal** - how many captures a team needs to win the round. * **Flag Return Time** - how many seconds a dropped flag stays on the ground before it returns to its base by itself. * **Capture Radius** - how close a carrier has to get to their own flag to score, and how close a player has to get to a dropped flag to pick it up. * **Respawn Time** - how many seconds players wait before respawning. Set to `0` to respawn immediately. * **Action Bar** - toggles an action bar showing every team's captures and whether their flag is home. * **Action Bar Format** - the action bar text, using `%teams%` and `%goal%`. <figure><img src="../.gitbook/assets/add-ons/capture-the-flag/capture-goal.png" alt="" width="563"><figcaption><p>Capture the Flag Rule (Capture Goal)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/capture-the-flag/flag-return-time.png" alt="" width="563"><figcaption><p>Capture the Flag Rule (Flag Return Time)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/capture-the-flag/capture-radius.png" alt="" width="563"><figcaption><p>Capture the Flag Rule (Capture Radius)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/capture-the-flag/respawn-time.png" alt="" width="563"><figcaption><p>Capture the Flag Rule (Respawn Time)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/capture-the-flag/action-bar.png" alt="" width="563"><figcaption><p>Capture the Flag Rule (Action Bar)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/capture-the-flag/action-bar-format.png" alt="" width="563"><figcaption><p>Capture the Flag Rule (Action Bar Format)</p></figcaption></figure> ## Placeholders The Capture the Flag add-on adds the following placeholders that you can use on the Scoreboard: 1. `%captureflag_score%` - Returns your team's captures. 2. `%captureflag_enemy_score%` - Returns the enemy team's captures. 3. `%captureflag_goal%` - Returns the capture goal. 4. `%captureflag_team1_score%` through `%captureflag_team4_score%` - Returns that team slot's captures. 5. `%captureflag_team1_status%` through `%captureflag_team4_status%` - Returns whether that team's flag is at its base. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that Capture the Flag has. | Placeholders | Description | | --------------------------------------------- | ----------------------------------------------- | | %phoenixduels_captureflag_team1_score% | Returns the captures of team 1. | | %phoenixduels_captureflag_team2_score% | Returns the captures of team 2. | | %phoenixduels_captureflag_team3_score% | Returns the captures of team 3. | | %phoenixduels_captureflag_team4_score% | Returns the captures of team 4. | | %phoenixduels_captureflag_team1_status% | Returns whether team 1's flag is at its base. | | %phoenixduels_captureflag_team2_status% | Returns whether team 2's flag is at its base. | | %phoenixduels_captureflag_team3_status% | Returns whether team 3's flag is at its base. | | %phoenixduels_captureflag_team4_status% | Returns whether team 4's flag is at its base. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/capture-the-flag --- # 🎮 Elo Ranks ## Information The Elo ranks add-on adds ranks to PhoenixDuels. The add-on includes five default ranks: Bronze, Silver, Gold, Diamond and Emerald. <figure><img src="https://cdn.phoenixplugins.com/9k0q3ltrxlhdz6s6t4is65tgbol6" alt="" width="188"><figcaption><p>Elo Ranks - Add-On </p></figcaption></figure> 👉 [You can purchase this add-on on Phoenix Store](https://www.phoenixplugins.com/product/elo-ranks-add-on) ## Installation To install this add-on, simply drag and drop the jar file into the PhoenixDuels/addons folder, then restart your server. The add-on will generate its contents to the following default files of the PhoenixDuels folder: - `config.yml` the command for the `/ranks` menu - `elo.yml` the configuration for the ranks ## Create a Rank By clicking here, you can create a new rank. The default ranks are: Bronze, Silver, Gold, Diamond, and Emerald. <figure><img src="../../.gitbook/assets/add-ons/elo-ranks/elo_ranks_add.png" alt="" width="563"><figcaption><p>Editor > Settings > Elo > Ranks</p></figcaption></figure> <figure><img src="../../.gitbook/assets/add-ons/elo-ranks/elo_ranks_create.gif" alt="" width="563"><figcaption><p>Editor > Settings > Elo > Ranks</p></figcaption></figure> ```yaml ranks: '0': identifier: bronze display: ==: org.bukkit.inventory.ItemStack DataVersion: 4671 id: minecraft:brick count: 1 components: minecraft:custom_name: '{extra:["&6Bronze"],text:""}' schema_version: 1 elo: 750 actions: rank-up: - '[MESSAGE] &eYou ranked up!' rank-down: [] unique-rank-up: [] ``` ### Rank Sorting The ranks are sorted based on their ELO values, with the lowest appearing first and the highest appearing last. <figure><img src="../../.gitbook/assets/add-ons/elo-ranks/elo_ranks_default.gif" alt="" width="563"><figcaption><p>Editor > Settings > Elo > Ranks</p></figcaption></figure> ## Edit a Rank ### Identifier With this option, you can set an identifier for the rank. Note that the arena identifier is unique and used internally by the plugin, and it's different from the display name. > **Danger:** If your server is in production, we don't recommend changing this value. <figure><img src="../../.gitbook/assets/add-ons/elo-ranks/elo_ranks_identifier.png" alt="" width="563"><figcaption><p>Editor > Settings > Elo > Ranks > Rank</p></figcaption></figure> ### Display With this option, you can adjust the display name of the rank, the material that it will have, and its lore. For the display name, you can use the default Minecraft color codes. For hex colors, use the \&#D6D045 format. <figure><img src="../../.gitbook/assets/add-ons/elo-ranks/elo_ranks_display.gif" alt="" width="563"><figcaption><p>Editor > Settings > Elo > Ranks > Rank</p></figcaption></figure> ### Elo Required With this option, you can define the required elo which players need to reach to get that rank. <figure><img src="../../.gitbook/assets/add-ons/elo-ranks/elo_ranks_elo.png" alt="" width="563"><figcaption><p>Editor > Settings > Elo > Ranks > Rank</p></figcaption></figure> ### Actions With this option, you can execute actions when a player ranks up, ranks down, or ranks up for the first time. The first-time actions only run while the player is online. A player who earns a rank and leaves before they run, such as by quitting as the match ends, gets them the next time they join. 👉 [You can view the Action System here](../../plugins/action-types.md) <figure><img src="../../.gitbook/assets/add-ons/elo-ranks/elo_ranks_actions.gif" alt="" width="563"><figcaption><p>Editor > Settings > Elo > Ranks > Rank</p></figcaption></figure> ## Ranks Menu /ranks shows players every rank on the server, ordered by the elo needed to reach it, from lowest to highest. Each entry uses that rank's own display item, name and lore, so the menu reflects whatever you set up in the editor without any extra configuration. The entries are informational; clicking one does nothing. The menu is there so players can see what the ladder looks like and what the next rank costs. Bedrock players get the ranks as a form, see [GeyserMC (Bedrock)](../../configurations/geysermc-bedrock.md). <figure><img src="../../.gitbook/assets/add-ons/elo-ranks/ranks-menu.png" alt="" width="563"><figcaption><p>Ranks</p></figcaption></figure> ### The Command The command is registered by the add-on into the plugin's own `config.yml`, so it is renamed or switched off there like any other PhoenixDuels command: ```yaml commands: ranks: enabled: true alternative: ranks ``` ### Customization The menu itself lives in menus/elo/ranks.yml under the `ranks` key, and holds the layout, the close button, the filler row and the pagination arrows, which appear once there are more ranks than fit on a page. The `rank` section is what each rank entry looks like. It takes three placeholders, filled in per rank: | Placeholder | Value | | --------------- | ---------------------------------------- | | `%rank_name%` | The rank's display name. | | `%rank_lore%` | The rank's display lore. | | `%rank_elo%` | The elo required to reach the rank. | ```yaml rank: name: '&a%rank_name%' lore: - '&a%rank_lore%' - '' - '&fElo Required: &e%rank_elo%' ``` The display item, name and lore of a rank are edited on the rank itself, not here. See [Edit a Rank](#edit-a-rank). ## Placeholders The following is the list of the available placeholders that Elo ranks has. | Placeholders | Description | |---------------------------------------------|-------------------------------------------------------| | %phoenixduels_elo_rank% | Returns the identifier of the players current rank. | | %phoenixduels_elo_rank_display% | Returns the display name of the players current rank. | | %phoenixduels_elo_rank_next% | Returns the identifier of the players next rank. | | %phoenixduels_elo_rank_next_display% | Returns the display name of the players next rank. | | %phoenixduels_elo_rank_elo_required% | Returns the elo required for the player to rank up. | | %phoenixduels_elo_rank_progress_percentage% | Returns the % to level up a rank. | | %phoenixduels_elo_rank_progress_bar% | Returns a progress bar to level up a rank. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/elo-ranks --- # 🏆 Create a Rank ## Create Rank By clicking here, you can create a new rank. The default ranks are: Bronze, Silver, Gold, Diamond, and Emerald. <figure><img src="../../.gitbook/assets/add-ons/elo-ranks/elo_ranks_add.png" alt="" width="563"><figcaption><p>Editor > Settings > Elo > Ranks</p></figcaption></figure> <figure><img src="../../.gitbook/assets/add-ons/elo-ranks/elo_ranks_create.gif" alt="" width="563"><figcaption><p>Editor > Settings > Elo > Ranks</p></figcaption></figure> ```yaml ranks: '0': identifier: bronze display: ==: org.bukkit.inventory.ItemStack DataVersion: 4671 id: minecraft:brick count: 1 components: minecraft:custom_name: '{extra:["&6Bronze"],text:""}' schema_version: 1 elo: 750 actions: level-up: - '[MESSAGE] &eYou ranked up!' level-down: [] unique-level-up: [] ``` ## Rank Sorting The ranks are sorted based on their ELO values, with the lowest appearing first and the highest appearing last. <figure><img src="../../.gitbook/assets/add-ons/elo-ranks/elo_ranks_default.gif" alt="" width="563"><figcaption><p>Editor > Settings > Elo > Ranks</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/elo-ranks/create-a-rank --- # 🎖️ Customize a Rank ## Identifier With this option, you can set an identifier for the rank. Note that the arena identifier is unique and used internally by the plugin, and it's different from the display name. > **Danger:** If your server is in production, we don't recommend changing this value. <figure><img src="../../.gitbook/assets/add-ons/elo-ranks/elo_ranks_identifier.png" alt="" width="563"><figcaption><p>Editor > Settings > Elo > Ranks > Rank</p></figcaption></figure> ## Display With this option, you can adjust the display name of the rank, the material that it will have, and its lore. For the display name, you can use the default Minecraft color codes. For hex colors, use the \&#D6D045 format. <figure><img src="../../.gitbook/assets/add-ons/elo-ranks/elo_ranks_display.gif" alt="" width="563"><figcaption><p>Editor > Settings > Elo > Ranks > Rank</p></figcaption></figure> ## Elo Required With this option, you can define the required elo which players need to reach to get that rank. <figure><img src="../../.gitbook/assets/add-ons/elo-ranks/elo_ranks_elo.png" alt="" width="563"><figcaption><p>Editor > Settings > Elo > Ranks > Rank</p></figcaption></figure> ## Actions With this option, you can execute actions when a player ranks up, ranks down, or ranks up for the first time. The first-time actions only run while the player is online. A player who earns a rank and leaves before they run, such as by quitting as the match ends, gets them the next time they join. 👉 [You can view the Action System here](https://www.myphoenixstore.com/docs/phoenix-duels/features/action-types) <figure><img src="../../.gitbook/assets/add-ons/elo-ranks/elo_ranks_actions.gif" alt="" width="563"><figcaption><p>Editor > Settings > Elo > Ranks > Rank</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/elo-ranks/edit-a-rank --- # Untitled ## PlaceholderAPI Placeholders The following is the list of the available placeholders that Elo ranks has. | Placeholders | Description | |---------------------------------------------|-------------------------------------------------------| | %phoenixduels_elo_rank% | Returns the identifier of the players current rank. | | %phoenixduels_elo_rank_display% | Returns the display name of the players current rank. | | %phoenixduels_elo_rank_next% | Returns the identifier of the players next rank. | | %phoenixduels_elo_rank_next_display% | Returns the display name of the players next rank. | | %phoenixduels_elo_rank_elo_required% | Returns the elo required for the player to rank up. | | %phoenixduels_elo_rank_progress_percentage% | Returns the % to level up a rank. | | %phoenixduels_elo_rank_progress_bar% | Returns a progress bar to level up a rank. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/elo-ranks/rank-placeholders --- # 📊 Ranks Menu ## The Menu /ranks shows players every rank on the server, ordered by the elo needed to reach it, from lowest to highest. Each entry uses that rank's own display item, name and lore, so the menu reflects whatever you set up in the editor without any extra configuration. The entries are informational; clicking one does nothing. The menu is there so players can see what the ladder looks like and what the next rank costs. <figure><img src="../../.gitbook/assets/add-ons/elo-ranks/ranks-menu.png" alt="" width="563"><figcaption><p>Ranks</p></figcaption></figure> ## The Command The command is registered by the add-on into the plugin's own `config.yml`, so it is renamed or switched off there like any other PhoenixDuels command: ```yaml commands: ranks: enabled: true alternative: ranks ``` ## Customization The menu itself lives in menus/elo/ranks.yml under the `ranks` key, and holds the layout, the close button, the filler row and the pagination arrows, which appear once there are more ranks than fit on a page. The `rank` section is what each rank entry looks like. It takes three placeholders, filled in per rank: | Placeholder | Value | | --------------- | ---------------------------------------- | | `%rank_name%` | The rank's display name. | | `%rank_lore%` | The rank's display lore. | | `%rank_elo%` | The elo required to reach the rank. | ```yaml rank: name: '&a%rank_name%' lore: - '&a%rank_lore%' - '' - '&fElo Required: &e%rank_elo%' ``` The display item, name and lore of a rank are edited on the rank itself, not here. See [edit-a-rank.md](edit-a-rank.md "mention"). Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/elo-ranks/ranks-menu --- # 🌋 Floor is Lava ## Information <figure><img src="https://cdn.phoenixplugins.com/zswjhhoo2mtl4mg2vwm9dw0wc006" alt="" width="188"><figcaption><p>Floor is Lava - Add-On </p></figcaption></figure> ### 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 Floor is Lava as a [gamemode rule](../main-features/create-a-mode/README.md#mode-rules) to the plugin. ### Create a Gamemode Create a gamemode, for the lava is lava gamemode. ### Select Rule Select the Generated rule `Floor is Lava` alongside your other rules. ### Create a Map This map doesn't require a specific build, you can use any of your liking. ### Regeneration Make sure that the Regeneration is enabled for your map, otherwise the lava will not clear between matches. > **Info:** This add-on supports [Folia](../first-installation.md#version-support), which is still experimental. ## How it works Every few seconds, the lava rises by one layer from the bottom of the battle region up. You can configure: * **Lava Rise Interval** - how many seconds between each rise. * **Replace Air Only** - when enabled, the rising lava only fills air blocks and leaves solid terrain untouched. When disabled, it consumes everything as it rises. * **Rise Title** - an optional title/subtitle warning shown to all players right before each rise. * **Action Bar** - an optional action bar reminder. ## Placeholders The Floor is Lava add-on adds the following placeholders that you can use on the Scoreboard: 1. `%floorislava_countdown%` - Returns the number of seconds until the next rise. 2. `%floorislava_team1_remaining%` through `%floorislava_team4_remaining%` - Returns the number of players still alive on that team slot. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that Floor is Lava has. | Placeholders | Description | | ------------------------------------------- | --------------------------------------------- | | %phoenixduels_floorislava_countdown% | Returns the seconds until the next lava rise. | | %phoenixduels_floorislava_team1_remaining% | Returns the players remaining on team 1. | | %phoenixduels_floorislava_team2_remaining% | Returns the players remaining on team 2. | | %phoenixduels_floorislava_team3_remaining% | Returns the players remaining on team 3. | | %phoenixduels_floorislava_team4_remaining% | Returns the players remaining on team 4. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/floor-is-lava --- # 🎮 Gamemode Add-Ons ## Gamemodes These add-ons are inspired by very familiar game modes and have been adapted into PhoenixDuels as rule sets for a mode. * **Spleef** - [Click Here](spleef.md) * **TnT Run** - [Click Here](tnt-run.md) * **The Bridge** - [Click Here](the-bridge.md) * **Boxing** - [Click Here](boxing.md) * **Bed Fight** - [Click Here](bed-fight.md) * **Floor is Lava** - [Click Here](floor-is-lava.md) <!-- * **SkyWars** - [Click Here](skywars.md) --> <!-- * **TNT Tag** - [Click Here](tnt-tag.md) --> <!-- * **Capture the Flag** - [Click Here](capture-the-flag.md) --> <!-- * **Wool Wars** - [Click Here](wool-wars.md) --> * **Pillar of Fortune** - [Click Here](pillar-of-fortune.md) The Floor is Lava and the Pillar of Fortune gamemode add-ons are free to download Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/gamemodes --- # 🛏️ Bed Fight ## Information The Bed Fight add-on adds the well known Bed Fight gamemode to the plugin. <figure><img src="../../.gitbook/assets/Bed%20Fight.png" alt="" width="188"><figcaption><p>Bed Fight Add-On</p></figcaption></figure> :point\_right: [You can purchase this add-on on Phoenix Store](https://www.myphoenixstore.com/items/bed-fight-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, then restart your server, or include the add-on while using the bundle download option to download the plugin. This add-on adds the Bed Fight as a [gamemode rule](../../main-features/create-a-mode/README.md#mode-rules) to the plugin. ### Create a Gamemode Create a gamemode dedicated for the Bed Fight Gamemode. ### Select Rule Select the Generated rule `Bed Fight` and any other rule you might want. ### Create a Map Create a map dedicated for the Bed Fight Gamemode. Place a bed for each team inside the arena. When a bed is broken, Bed Fight matches it to whichever team's spawn point is closest to it. ### Regeneration Make sure that the Regeneration is enabled for your map, otherwise the blocks will not regenerate. ### Whitelist Gamemode Select the Bed Fight gamemode as the only allowed mode for that map, and you are all set! ## Action Bar The Bed Fight rule can show an action bar summarizing every team's bed status. Both the toggle and the action bar's format string are editable from the rule's settings. <!-- TODO: add screenshot --> ## Bed Defence Build a defence around each bed into the map, for example wood and end stone, and list those block types under **Bed Defence Blocks** in the rule's settings. Wildcards are supported, so `*_PLANKS` covers every plank type. A listed block counts as defence only when it sits within **Bed Defence Radius** blocks of a bed, so the same block type elsewhere in the map stays protected. Defence blocks remain breakable after their bed has been destroyed. Pair this with the **Only Self Placed Block Breaking** rule to make the defence and player-placed blocks the only breakable blocks in the map. Without that rule, every block in the map is breakable anyway. ## Placeholders The Bed Fight add-on adds the following placeholders that you can use on the Scoreboard: 1. `%bed_team1_status%` through `%bed_team4_status%` - Returns the bed status (alive checkmark, or remaining player count once destroyed) for that team slot. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that Bed Fight has. | Placeholders | Description | | -------------------------------------- | --------------------------------------------------------- | | %phoenixduels_bedfight_team1_status% | Returns team 1's bed status. | | %phoenixduels_bedfight_team2_status% | Returns team 2's bed status. | | %phoenixduels_bedfight_team3_status% | Returns team 3's bed status. | | %phoenixduels_bedfight_team4_status% | Returns team 4's bed status. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/gamemodes/bed-fight --- # 🥊 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. ## 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. ## 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: - "" - "�a76d7⚔ e8add%winner% &fout-boxed &c%loser% &7(&a%winner_hits% &8- &c%loser_hits%&7)" - "�a76d7☄ &fMode: e8add%mode% &8┃ �a76d7✦ &fFirst to e8add%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. <!-- TODO: add screenshot --> ## 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/gamemodes/boxing --- # 🚩 Capture the Flag ## Information The Capture the Flag add-on gives every team a banner at their base. Steal the enemy's banner, carry it back to your own, and you score a capture. First team to the goal wins the round. This add-on requires PhoenixDuels Premium. <!-- TODO: add screenshot --> ### 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 Capture the Flag as a [gamemode rule](../../main-features/create-a-mode/#gamemode-rules-30) to the plugin, and generates the following file: * `PhoenixDuels/translations/captureflag.translations.en.yml` - The translation file for the add-on. ### Create a Gamemode Create a gamemode dedicated for Capture the Flag. ### Select Rule Select the Generated rule `Capture the Flag` and any other rule you might want. ### Place the Banners Place one banner per team inside the arena's battle region, next to each team's spawn. Any banner type works, and its color is up to you. ### Create a Map Create a map dedicated for this ruleset, and make sure Regeneration is enabled. > **Danger:** Capture the Flag refuses to start a match on an arena without Regeneration enabled. The rule moves banner blocks around the map, so the arena has to be able to reset itself between matches. > **Info:** This add-on supports [Folia](../../first-installation.md#version-support), which is still experimental. ## The Flags There is no separate setup step for the flags. When a round starts, every banner inside the battle region is scanned and handed to the team whose spawn it sits closest to — the same way Bed Fight decides which bed belongs to which team. If a team has more than one banner nearby, the closest one becomes its flag. If a team ends up without a banner, everyone in the match is warned in chat, so it is obvious you missed one rather than the mode quietly half-working. <!-- TODO: add screenshot --> ## How it Plays 1. Breaking an enemy flag takes it. The banner disappears from its base and appears on the carrier's head. 2. You cannot break your own team's flag. 3. A carrier who dies, leaves the match, disconnects or becomes a spectator drops the flag where they last stood. It sits on the ground for the return time, then goes home on its own. If there is no free spot there, it goes home straight away. 4. Walking over a dropped flag picks it up if it belongs to an enemy team, or sends it straight home if it is your own. 5. Bringing an enemy flag within the capture radius of your own flag scores a capture — but only while your own flag is still at its base. A team whose flag is out cannot score. 6. The first team to reach the capture goal wins the round. Players respawn rather than being eliminated, so the round is decided by captures and nothing else. While a player waits to respawn, they cannot pick up or return a flag. Flags can only be taken while the round is running. When a round starts and when the match ends, every flag is put back at its base, so a flag never goes missing between rounds. ## Match Settings The Capture the Flag rule's settings let you configure: * **Capture Goal** - how many captures a team needs to win the round. * **Flag Return Time** - how many seconds a dropped flag stays on the ground before it returns to its base by itself. * **Capture Radius** - how close a carrier has to get to their own flag to score, and how close a player has to get to a dropped flag to pick it up. * **Respawn Time** - how many seconds players wait before respawning. Set to `0` to respawn immediately. * **Action Bar** - toggles an action bar showing every team's captures and whether their flag is home. * **Action Bar Format** - the action bar text, using `%teams%` and `%goal%`. <!-- TODO: add screenshot --> ## Placeholders The Capture the Flag add-on adds the following placeholders that you can use on the Scoreboard: 1. `%captureflag_score%` - Returns your team's captures. 2. `%captureflag_enemy_score%` - Returns the enemy team's captures. 3. `%captureflag_goal%` - Returns the capture goal. 4. `%captureflag_team1_score%` through `%captureflag_team4_score%` - Returns that team slot's captures. 5. `%captureflag_team1_status%` through `%captureflag_team4_status%` - Returns whether that team's flag is at its base. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that Capture the Flag has. | Placeholders | Description | | --------------------------------------------- | ----------------------------------------------- | | %phoenixduels_captureflag_team1_score% | Returns the captures of team 1. | | %phoenixduels_captureflag_team2_score% | Returns the captures of team 2. | | %phoenixduels_captureflag_team3_score% | Returns the captures of team 3. | | %phoenixduels_captureflag_team4_score% | Returns the captures of team 4. | | %phoenixduels_captureflag_team1_status% | Returns whether team 1's flag is at its base. | | %phoenixduels_captureflag_team2_status% | Returns whether team 2's flag is at its base. | | %phoenixduels_captureflag_team3_status% | Returns whether team 3's flag is at its base. | | %phoenixduels_captureflag_team4_status% | Returns whether team 4's flag is at its base. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/gamemodes/capture-the-flag --- # 🌋 Floor is Lava ## Information <figure><img src="https://cdn.phoenixplugins.com/zswjhhoo2mtl4mg2vwm9dw0wc006" alt="" width="188"><figcaption><p>Floor is Lava - Add-On </p></figcaption></figure> ### 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 Floor is Lava as a [gamemode rule](../../main-features/create-a-mode/README.md#mode-rules) to the plugin. ### Create a Gamemode Create a gamemode, for the lava is lava gamemode. ### Select Rule Select the Generated rule `Floor is Lava` alongside your other rules. ### Create a Map This map doesn't require a specific build, you can use any of your liking. ### Regeneration Make sure that the Regeneration is enabled for your map, otherwise the lava will not clear between matches. > **Info:** This add-on supports [Folia](../../first-installation.md#version-support), which is still experimental. ## How it works Every few seconds, the lava rises by one layer from the bottom of the battle region up. You can configure: * **Lava Rise Interval** - how many seconds between each rise. * **Replace Air Only** - when enabled, the rising lava only fills air blocks and leaves solid terrain untouched. When disabled, it consumes everything as it rises. * **Rise Title** - an optional title/subtitle warning shown to all players right before each rise. * **Action Bar** - an optional action bar reminder. ## Placeholders The Floor is Lava add-on adds the following placeholders that you can use on the Scoreboard: 1. `%floorislava_countdown%` - Returns the number of seconds until the next rise. 2. `%floorislava_team1_remaining%` through `%floorislava_team4_remaining%` - Returns the number of players still alive on that team slot. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that Floor is Lava has. | Placeholders | Description | | ------------------------------------------- | --------------------------------------------- | | %phoenixduels_floorislava_countdown% | Returns the seconds until the next lava rise. | | %phoenixduels_floorislava_team1_remaining% | Returns the players remaining on team 1. | | %phoenixduels_floorislava_team2_remaining% | Returns the players remaining on team 2. | | %phoenixduels_floorislava_team3_remaining% | Returns the players remaining on team 3. | | %phoenixduels_floorislava_team4_remaining% | Returns the players remaining on team 4. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/gamemodes/floor-is-lava --- # 🍀 Pillar of Fortune ## Information The Pillar of Fortune add-on periodically gives every player on their own a random item or block. <figure><img src="https://cdn.phoenixplugins.com/4owwwyiv3pbd2s88j7bk18wte9ax" alt="" width="188"><figcaption><p>Pillar of Fortune Add-On</p></figcaption></figure> ### 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 Pillar of Fortune as a [gamemode rule](../../main-features/create-a-mode/README.md#mode-rules) to the plugin. ### Create a Gamemode Create a gamemode, or open an existing one, that you want the periodic item drops applied to. ### Select Rule Select the Generated rule `Pillar of Fortune` alongside your other rules. ### Create a Map Create a map dedicated for this gamemode. > **Info:** This add-on supports [Folia](../../first-installation.md#version-support), which is still experimental. ## Configuration The rule's settings let you configure: * **Drop Interval** - how many seconds between each random item drop. * **Blacklisted Items** - items that should never be picked when rolling a drop. * **Action Bar** - toggles an action bar showing the countdown to the next drop, with an editable format. * **Receive Title** - an optional title/subtitle shown to a player when they receive an item, with the item name available via `%item%`. * **Receive Sound** - toggles a sound effect played when a player receives an item. <!-- TODO: add screenshot --> ## Placeholders The Pillar of Fortune add-on adds the following placeholders that you can use on the Scoreboard: 1. `%pillaroffortune_team1_remaining%` through `%pillaroffortune_team4_remaining%` - Returns the number of players still alive on that team slot. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that Pillar of Fortune has. | Placeholders | Description | | -------------------------------------------------- | ------------------------------------------- | | %phoenixduels_pillaroffortune_team1_remaining% | Returns the players remaining on team 1. | | %phoenixduels_pillaroffortune_team2_remaining% | Returns the players remaining on team 2. | | %phoenixduels_pillaroffortune_team3_remaining% | Returns the players remaining on team 3. | | %phoenixduels_pillaroffortune_team4_remaining% | Returns the players remaining on team 4. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/gamemodes/pillar-of-fortune --- # 🎁 SkyWars ## Information The SkyWars add-on fills every chest and trapped chest placed inside your arena with random loot when a round starts. Each container type draws from its own loot pool, so the chests around a team's island and the ones in the middle of the map can hold completely different gear. This add-on requires PhoenixDuels Premium. <!-- TODO: add screenshot --> ### 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 SkyWars as a [gamemode rule](../../main-features/create-a-mode/#gamemode-rules-30) to the plugin, and generates the following files: * `PhoenixDuels/skywars/chests.yml` - The loot pools of both chest types. * `PhoenixDuels/translations/skywars.translations.en.yml` - The translation file for the add-on. ### Create a Gamemode Create a gamemode, or open an existing one, that you want the loot chests applied to. ### Select Rule Select the Generated rule `SkyWars` alongside your other rules. ### Place Chests Place chests and trapped chests inside the arena's battle region. Only containers inside that region are picked up — anything outside of it is ignored. ### Create a Map Create a map dedicated for this ruleset, and make sure Regeneration is enabled so the arena resets between matches. ## Chest Types The container you place decides which pool it is filled from. This is not configurable — it is how the add-on tells the two pools apart. <table data-full-width="true"><thead><tr><th width="200">Block</th><th width="180">Pool</th><th>Notes</th></tr></thead><tbody><tr><td>Chest</td><td><strong>Team Chests</strong></td><td>Always enabled. Meant for the chests around each spawn island.</td></tr><tr><td>Trapped Chest</td><td><strong>Middle Chests</strong></td><td>Can be switched off, and is capped to 4 chests by default.</td></tr></tbody></table> <!-- TODO: add screenshot --> ## Match Settings The SkyWars rule's settings hold three entries: * **Team Chests** - opens the loot pool of every normal chest in the arena. * **Middle Chests** - opens the loot pool of every trapped chest in the arena. * **Action Bar** - toggles an action bar showing every team's remaining player count. Both chest entries show a summary of their chest limit and how many loot entries they hold before you open them. > **Warning:** The two loot pools live in `skywars/chests.yml` and are shared by **every** mode that uses the SkyWars rule. Editing them from one mode changes them everywhere. Only the Action Bar toggle is stored per mode. <!-- TODO: add screenshot --> ## Loot Items Opening either chest entry takes you to that pool's Loot Items menu, where you can add, edit and remove entries. * **Chest Limit** - caps how many containers of that type the pool may claim in the arena. Chests closest to the center of the battle region are claimed first, so a limit of `4` on the middle pool fills the four most central trapped chests and leaves the rest empty. Set to `-1` for no cap. Clicking past `-1` skips `0` and lands on `1`. * **Enabled** - only shown for the middle chests, and stops them from being filled at all. <!-- TODO: add screenshot --> Each loot entry has its own settings: * **Item** - the item or block that gets placed. Any item works, including custom models, potions and named gear. * **Weight** - how likely this entry is to be drawn. The menu shows the resulting chance, which is this weight divided by the sum of every weight in the pool. * **Minimum Amount** / **Maximum Amount** - the stack size range the entry is drawn with, capped at the item's own stack size: 64 for most items, 16 for ender pearls and 1 for unstackable items. * **Guaranteed** - places this entry in every chest of that pool instead of leaving it to chance. * **Delete Item** - removes the entry from the pool. <!-- TODO: add screenshot --> ## How a Chest is Filled When a round starts, every container inside the battle region is scanned, claimed by its matching pool, emptied and refilled once. There is no refill during the match. 1. Every **Guaranteed** entry is placed first. 2. A target amount of items is rolled between the pool's minimum and maximum item count. 3. The rest of the slots are drawn at random, weighted, until the target is reached. 4. An entry can never be drawn twice in the same chest, and only one item of each gear category is placed per chest — so a chest will not hold two swords, two chestplates or two bows. The gear categories are swords (including tridents), pickaxes, axes, helmets, chestplates (including elytras), leggings, boots and bows (including crossbows). Everything else — blocks, food, pearls, potions — is not categorised, and is limited only by the one-draw-per-entry rule. > **Info:** The minimum and maximum item count per chest is not in the editor. Both live under `team-chest` and `middle-chest` in `skywars/chests.yml` as `min-items` and `max-items`. ## Action Bar While a round is in progress, the rule can show an action bar listing how many players each team has left, refreshed every second. The toggle sits in the rule's settings, and the format is editable in the add-on's translation file under `skywars.action-bar`, using `%team_color%`, `%team_prefix%` and `%team_remaining%`. <!-- TODO: add screenshot --> ## Placeholders The SkyWars add-on adds the following placeholders that you can use on the Scoreboard: 1. `%skywars_team1_remaining%` through `%skywars_team4_remaining%` - Returns the number of players still alive on that team slot. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that SkyWars has. | Placeholders | Description | | ------------------------------------------- | ------------------------------------------- | | %phoenixduels_skywars_team1_remaining% | Returns the players remaining on team 1. | | %phoenixduels_skywars_team2_remaining% | Returns the players remaining on team 2. | | %phoenixduels_skywars_team3_remaining% | Returns the players remaining on team 3. | | %phoenixduels_skywars_team4_remaining% | Returns the players remaining on team 4. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/gamemodes/skywars --- # ❄️ Spleef ## Information The Spleef add-on adds the well known Spleef gamemode to the plugin. <figure><img src="../../.gitbook/assets/tdu42ozjettmcys23yy7uzeij8ox.png" alt="" width="188"><figcaption><p>Spleef Add-On</p></figcaption></figure> :point\_right: [You can purchase this add-on on Phoenix Store](https://www.myphoenixstore.com/items/spleef-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 Spleef as a [gamemode rule](../../main-features/create-a-mode/README.md#mode-rules) to the plugin. ### Create a Gamemode Create a gamemode dedicated for the Spleef Gamemode. ### Select Rule Select the Generated rule `Spleef` and any other rule you might want. ### Setup Inventory Create the Inventory for your Sleep. Recommended items can be found below. ### Create a Map Create a map dedicated for the Spleef Gamemode. ### Regeneration Make sure that the Regeneration is enabled for your map, otherwise the blocks will not regenerate. ### Whitelist Gamemode Select the Spleef gamemode as the only allowed mode for that map, and you are all set! ### Items The Spleef has two different options that you can use, and both can be toggled independently in the rule's settings: 1\) **Snowball Break** - give players a shovel, and when they break a snow block, they receive snowballs. 2\) **Bow Spleef** - give them a bow, and when they hit a snow block, the block will disappear. ## Action Bar The Spleef rule can show an action bar summarizing the match. Both the toggle and the message format are editable from the rule's settings. <!-- TODO: add screenshot --> ## Placeholders The Spleef add-on adds the following placeholders that you can use on the Scoreboard: 1. `%spleef_team1_remaining%` through `%spleef_team4_remaining%` - Returns the number of players still alive on that team slot. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that Spleef has. | Placeholders | Description | | -------------------------------------- | ------------------------------------------ | | %phoenixduels_spleef_team1_remaining% | Returns the players remaining on team 1. | | %phoenixduels_spleef_team2_remaining% | Returns the players remaining on team 2. | | %phoenixduels_spleef_team3_remaining% | Returns the players remaining on team 3. | | %phoenixduels_spleef_team4_remaining% | Returns the players remaining on team 4. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/gamemodes/spleef --- # 🌉 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. 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. <!-- TODO: add screenshot --> ## 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. <!-- TODO: add screenshot --> ## 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/gamemodes/the-bridge --- # 💣 TnT Run ## Information The TnT Run add-on adds the well known TnT Run gamemode to the plugin. <figure><img src="../../.gitbook/assets/TNT%20Run.png" alt="" width="188"><figcaption><p>TnT Run Add-On</p></figcaption></figure> :point\_right: [You can purchase this add-on on Phoenix Store](https://www.myphoenixstore.com/items/tnt-run-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 TnT Run as a [gamemode rule](../../main-features/create-a-mode/README.md#mode-rules) to the plugin. ### Create a Gamemode Create a gamemode dedicated for the Bed Fight Gamemode. ### Select Rule Select the Generated rule `TnT Run` and any other rule you might want. ### Create a Map Create a map dedicated for the Bed Fight Gamemode. ### Regeneration Make sure that the Regeneration is enabled for your map, otherwise the blocks will not regenerate. ### Whitelist Gamemode Select the Bed Fight gamemode as the only allowed mode for that map, and you are all set! > **Info:** This add-on supports [Folia](../../first-installation.md#version-support), which is still experimental. ## Blocks Make sure you have a layer of TNT on the floor, and place one of the following blocks on top of it: * Sand * Red Sand * Gravel * Suspicious Sand * Suspicious Gravel ## Action Bar The TnT Run rule can show an action bar summarizing the match. Both the toggle and the message format are editable from the rule's settings. <!-- TODO: add screenshot --> ## Placeholders The TnT Run add-on adds the following placeholders that you can use on the Scoreboard: 1. `%tntrun_team1_remaining%` through `%tntrun_team4_remaining%` - Returns the number of players still alive on that team slot. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that TnT Run has. | Placeholders | Description | | -------------------------------------- | ------------------------------------------ | | %phoenixduels_tntrun_team1_remaining% | Returns the players remaining on team 1. | | %phoenixduels_tntrun_team2_remaining% | Returns the players remaining on team 2. | | %phoenixduels_tntrun_team3_remaining% | Returns the players remaining on team 3. | | %phoenixduels_tntrun_team4_remaining% | Returns the players remaining on team 4. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/gamemodes/tnt-run --- # 🧨 TNT Tag ## Information The TNT Tag add-on hands live TNT to one or more players at the start of every round. Whoever is holding it when the fuse runs out is blown up, and the survivors go again with a fresh fuse. Hitting another player passes the TNT on. This add-on requires PhoenixDuels Premium. <!-- TODO: add screenshot --> ### 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 TNT Tag as a [gamemode rule](../../main-features/create-a-mode/#gamemode-rules-30) to the plugin, and generates the following file: * `PhoenixDuels/translations/tnttag.translations.en.yml` - The translation file for the add-on. ### Create a Gamemode Create a gamemode dedicated for TNT Tag. ### Select Rule Select the Generated rule `TNT Tag` and any other rule you might want. ### Create a Map Create a map dedicated for this ruleset. An open platform over the void works best, since falling out is the other way to lose. ### Whitelist Gamemode Select the TNT Tag gamemode as the only allowed mode for that map, and you are all set! > **Info:** This add-on supports [Folia](../../first-installation.md#version-support), which is still experimental. ## How it Plays Combat damage is disabled entirely while the rule is active — players cannot kill each other by hitting. The only two ways out of a round are holding the TNT when it detonates, or falling below the battle region. 1. When the round starts, the configured number of players is picked at random and given the TNT. It sits on their head and, if enabled, makes them glow. 2. A tagged player passes the TNT by hitting an untagged player on another team. The hit deals no damage — it only moves the bomb. 3. The freshly tagged player cannot be tagged back until the pass cooldown expires, so the TNT cannot bounce between the same two players. 4. When the fuse hits zero, every holder is eliminated. If two or more players are still alive, the fuse resets and the TNT is handed out again. > **Info:** If a tagged player is eliminated some other way — falling out of the arena, disconnecting — the TNT is passed to a random survivor instead of disappearing with them. ## Match Settings The TNT Tag rule's settings let you configure: * **Fuse Time** - how many seconds the TNT burns before it explodes. * **Tagged Players** - how many players are given the TNT each round. Always capped at one below the number of players alive, so somebody is always safe. * **Pass Cooldown** - how many seconds must pass before a player who was just tagged can be tagged again. * **Glowing** - whether players holding the TNT glow for everyone else. Requires 1.9 or newer. * **Action Bar** - toggles the countdown action bar. * **Action Bar Format** - the countdown text, using `%time%` for the seconds left and `%tagged%` for who is holding it. <!-- TODO: add screenshot --> ## Placeholders The TNT Tag add-on adds the following placeholders that you can use on the Scoreboard: 1. `%tnttag_time_remaining%` - Returns the seconds left on the fuse. 2. `%tnttag_tagged%` - Returns how many players are currently holding the TNT. 3. `%tnttag_team1_remaining%` through `%tnttag_team4_remaining%` - Returns the number of players still alive on that team slot. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that TNT Tag has. | Placeholders | Description | | ------------------------------------------ | ------------------------------------------------- | | %phoenixduels_tnttag_time_remaining% | Returns the seconds left on the fuse. | | %phoenixduels_tnttag_tagged% | Returns how many players hold the TNT. | | %phoenixduels_tnttag_is_tagged% | Returns whether the player is holding the TNT. | | %phoenixduels_tnttag_team1_remaining% | Returns the players remaining on team 1. | | %phoenixduels_tnttag_team2_remaining% | Returns the players remaining on team 2. | | %phoenixduels_tnttag_team3_remaining% | Returns the players remaining on team 3. | | %phoenixduels_tnttag_team4_remaining% | Returns the players remaining on team 4. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/gamemodes/tnt-tag --- # 🧶 Wool Wars ## Information The Wool Wars add-on turns a platform in the middle of your arena into the objective. Both teams get endless wool in their own color and race to cover the platform with it, breaking each other's wool along the way. First team to own enough of it wins the round. This add-on requires PhoenixDuels Premium. <!-- TODO: add screenshot --> ### 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 Wool Wars as a [gamemode rule](../../main-features/create-a-mode/#gamemode-rules-30) to the plugin, and generates the following file: * `PhoenixDuels/translations/woolwars.translations.en.yml` - The translation file for the add-on. ### Create a Gamemode Create a gamemode dedicated for Wool Wars. ### Select Rule Select the Generated rule `Wool Wars` and any other rule you might want. ### Build the Platform Build the objective out of the platform block — white wool by default — inside the arena's battle region. Every block of that type becomes a claimable slot. ### Create a Map Create a map dedicated for this ruleset, and make sure Regeneration is enabled so the platform resets between matches. > **Info:** This add-on supports [Folia](../../first-installation.md#version-support), which is still experimental. ## The Platform When a round starts, the battle region is scanned and every block matching the platform material is registered as a claimable slot. Those slots are the only place in the arena where players can build. * Placing wool on an empty slot claims it for your team, in your team's color. * Breaking a neutral or enemy block on a slot frees it again. * You cannot break your own team's wool, and you cannot build anywhere outside the platform. * The platform is locked during the countdown and after the round ends, so no block can be broken or placed early or late. Each team's share is tracked live, and the round ends the moment one team's share reaches the claim goal. > **Warning:** The platform scan walks the whole battle region block by block. Regions above roughly half a million blocks are skipped with a warning in chat rather than scanned — keep the battle region tight around the arena. <!-- TODO: add screenshot --> ## Team Colors Wool is handed out in a color matched to each team, so the platform reads at a glance: <table data-full-width="true"><thead><tr><th width="240">Team</th><th>Wool</th></tr></thead><tbody><tr><td>Red</td><td>Red Wool</td></tr><tr><td>Dark Red</td><td>Brown Wool</td></tr><tr><td>Blue</td><td>Blue Wool</td></tr><tr><td>Dark Blue</td><td>Blue Terracotta</td></tr><tr><td>Green</td><td>Lime Wool</td></tr><tr><td>Dark Green</td><td>Green Wool</td></tr><tr><td>Aqua</td><td>Light Blue Wool</td></tr><tr><td>Dark Aqua</td><td>Cyan Wool</td></tr><tr><td>Purple</td><td>Purple Wool</td></tr><tr><td>Dark Purple</td><td>Magenta Wool</td></tr><tr><td>Gray</td><td>Light Gray Wool</td></tr><tr><td>Dark Gray</td><td>Gray Wool</td></tr><tr><td>Yellow, Orange, Pink, White, Black</td><td>The matching wool color</td></tr></tbody></table> Players are handed wool when the round starts and again when they respawn, and their stack is topped back up whenever it runs low, so they never have to think about ammo. ## Match Settings The Wool Wars rule's settings let you configure: * **Platform Block** - which block makes up the platform. Defaults to `WHITE_WOOL`. Any block name works, so a stone or clay platform is equally valid. * **Claim Goal** - what percentage of the platform a team must own to win the round. Defaults to `60`. * **Respawn Time** - how many seconds players wait before respawning. Set to `0` to respawn immediately. * **Wool Amount** - how much wool players are handed, and topped back up to. * **Action Bar** - toggles an action bar showing how much of the platform each team owns. * **Action Bar Format** - the action bar text, using `%teams%` and `%goal%`. <!-- TODO: add screenshot --> ## Placeholders The Wool Wars add-on adds the following placeholders that you can use on the Scoreboard: 1. `%woolwars_claimed%` - Returns how many slots your team owns. 2. `%woolwars_percent%` - Returns your team's share of the platform, as a percentage. 3. `%woolwars_platform_size%` - Returns how many slots the platform has in total. 4. `%woolwars_goal%` - Returns the claim goal percentage. 5. `%woolwars_team1_claimed%` through `%woolwars_team4_claimed%` - Returns that team slot's owned blocks. 6. `%woolwars_team1_percent%` through `%woolwars_team4_percent%` - Returns that team slot's share. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that Wool Wars has. | Placeholders | Description | | -------------------------------------------- | ------------------------------------------- | | %phoenixduels_woolwars_team1_claimed% | Returns the blocks owned by team 1. | | %phoenixduels_woolwars_team2_claimed% | Returns the blocks owned by team 2. | | %phoenixduels_woolwars_team3_claimed% | Returns the blocks owned by team 3. | | %phoenixduels_woolwars_team4_claimed% | Returns the blocks owned by team 4. | | %phoenixduels_woolwars_team1_percent% | Returns team 1's share of the platform. | | %phoenixduels_woolwars_team2_percent% | Returns team 2's share of the platform. | | %phoenixduels_woolwars_team3_percent% | Returns team 3's share of the platform. | | %phoenixduels_woolwars_team4_percent% | Returns team 4's share of the platform. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/gamemodes/wool-wars --- # 🪄 Lobby Items ## Information The Lobby Items add-on adds lobby items to PhoenixDuels. The add-on includes three different stages: default lobby items, party items, and queue items. It also brings a lobby scoreboard, join actions, and a right-click menu on other players. This add-on requires PhoenixDuels Premium. <figure><img src="https://cdn.phoenixplugins.com/oy8w7wgk9wq06hn13k146g0tx2ht" alt="" width="188"><figcaption><p>Lobby Items - Add-On </p></figcaption></figure> 👉 [You can purchase this add-on on Phoenix Store](https://www.myphoenixstore.com/en/items/lobby-items-addon) ## Installation To install this add-on, simply drag and drop the jar file into the PhoenixDuels/addons folder, then restart your server. The add-on will generate a file in the main PhoenixDuels folder called `lobby.yml` , which contains all configuration settings for the add-on. > **Info:** This add-on supports [Folia](../../first-installation.md#version-support), which is still experimental. ## Inventory Stages ### Default Lobby Items The lobby includes special items to help users navigate the plugin’s features more easily. By default, the lobby items are: * **Play Unranked**** -** Iron Sword * **Play Ranked**** -** Diamond Sword * **Kit Editor** - Book * **Party** - Nether Star * **Statistics** - Item Frame * **Setting**** -** Comparator <figure><img src="../../.gitbook/assets/add-ons/lobby-items/lobby_first.png" alt="" width="563"><figcaption><p>Default Lobby Items</p></figcaption></figure> ### Party Items When a user joins a party, their hotbar items automatically change to enhance navigation and make it easier to play games with the party. The items available during the party state are: * **Play Unranked** - Iron Sword * **Play Ranked** - Diamond Sword * **Play Private FFA** - Iron Axe * **Split the Party** - Golden Axe * **Fight another Party** - Diamond Axe * **Manage your Party** - Nether Star * **Leave the Party** - Red Dye <figure><img src="../../.gitbook/assets/add-ons/lobby-items/lobby_party.png" alt="" width="563"><figcaption><p>Party Lobby Items</p></figcaption></figure> ### Queue Items When the party is queuing, the hotbar items automatically update to include a red dye. Clicking on the red dye allows a party member to leave the queue, which will stop the entire party from queuing. <figure><img src="../../.gitbook/assets/add-ons/lobby-items/lobby_queue.png" alt="" width="563"><figcaption><p>Queue Lobby Items</p></figcaption></figure> ### Rematch Item When the Rematch & Requeue add-on opens a rematch window for a player at the end of a match, a clock is laid over the hotbar for as long as that window lasts and disappears again once it expires. It has its own slot on the default stage and on the party stage; the queue stage has no rematch item, so nothing is overlaid while a player is queueing. ```yaml hotbar: rematch-item: default: slot: 4 material: CLOCK party: slot: 3 material: CLOCK ``` ### Held Slot Each stage decides which hotbar slot the player is left holding once the items are handed out. Unlike the item slots above, this one counts from 0 on the left, so 8 is the far right of the hotbar. ```yaml hotbar: enabled: true player-held-slot: default: 0 party: 7 queue: 8 ``` Turning the hotbar off leaves player inventories untouched. The lobby scoreboard and the join actions keep working. ### Item Protection Hotbar items cannot be dropped, moved around an inventory, swapped into the off hand, or left behind as a death drop. Players in creative mode are exempt from all of that, so an admin can still clear their own hotbar. ### Inventory Clearing Switching between the default, party and queue stages only swaps the lobby items, so everything else a player carries stays, such as items won from a bet or an inventory handed back after a match. The whole inventory is cleared only when a player joins, respawns, or moves into or out of a lobby world. ```yaml hotbar: clear-inventory: true ``` Turning it off makes those moments remove only the lobby items too. A player's own item sitting in a slot a lobby item needs is moved to a free slot, or to [Lost Items](../../features/lost-items.md) when the inventory is full. ### Previewing a Stage /pduels lobbyitems \<default/party/queue> hands you the items of that stage without having to actually join a party or a queue first. The next event that rebuilds your hotbar, such as joining a party or leaving a match, replaces them again. ### Extra #### Player Heads To display the player's head in the hotbar, use the following method. ```yaml material: PLAYER_HEAD ``` To display a custom head as an item, use the **basehead** option. ```yaml material: PLAYER_HEAD:BASEHEAD_VALUE ``` ## Lobby Extras ### Join Actions Every time a user joins the server, specific actions can be triggered. By default, the plugin sends a how to duel message. <figure><img src="../../.gitbook/assets/add-ons/lobby-items/join_actions.png" alt="" width="563"><figcaption><p>Join Message</p></figcaption></figure> ```yaml lobby: every-join-actions: - '[MESSAGE] &7' - '[MESSAGE] &5&lPHOENIX DUELS' - '[MESSAGE] &7 1v1s, Party FFA/Fight' - '[MESSAGE] &7 Unranked & Ranked Fights' - '[MESSAGE] &7 And much more!' - '[MESSAGE] &7' - '[MESSAGE] &e⬤ To duel, type: &d/duel <player>&e.' - '[MESSAGE] &e⬤ To play, &duse your hotbar&e.' - '[MESSAGE] &7' ``` ### Scoreboard Your server will now display a lobby scoreboard. Note that this scoreboard only appears in the lobby, during a duel the match’s own scoreboard will take over. <figure><img src="../../.gitbook/assets/add-ons/lobby-items/scoreboard.png" alt="" width="563"><figcaption><p>Lobby Scoreboard</p></figcaption></figure> ```yaml scoreboard: enabled: true refresh-rate: 20 header: interval: 2 frames: - '&5&lPHOENIX DUELS' - '&d&lP&5&lHOENIX DUELS' - '&d&lPH&5&lOENIX DUELS' - '&5&lP&d&lHO&5&lENIX DUELS' - '&5&lPH&d&lOE&5&lNIX DUELS' - '&5&lPHO&d&lEN&5&lIX DUELS' - '&5&lPHOE&d&lNI&5&lX DUELS' - '&5&lPHOEN&d&lIX&5&l DUELS' - '&5&lPHOENI&d&lX D&5&lUELS' - '&5&lPHOENIX &d&lDU&5&lELS' - '&5&lPHOENIX D&d&lUE&5&lLS' - '&5&lPHOENIX DU&d&lEL&5&lS' - '&5&lPHOENIX DUE&d&lLS' - '&5&lPHOENIX DUEL&d&lS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&d&lPHOENIX DUELS' - '&d&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&d&lPHOENIX DUELS' - '&d&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' lines: - '' - ' ꜱᴛᴀʀᴛ ᴄʜᴀʟʟᴇɴɢɪɴɢ ᴘʟᴀʏᴇʀꜱ' - ' ᴡɪᴛʜ &6/ᴅᴜᴇʟ <ᴘʟᴀʏᴇʀ>' - '' - '&3✔ &fᴏɴʟɪɴᴇ: &3%online%' - '&a🪓 &fᴘʟᴀʏɪɴɢ: &a%playing%' - '&6♠ &fǫᴜᴇᴜᴇɪɴɢ: &6%queueing%' - '' - '&c🗡 &fᴋɪʟʟꜱ: &c%kills%' - '&4☠ &fᴅᴇᴀᴛʜꜱ: &4%deaths%' - '' - ' ᴄᴏɴꜰɪɢᴜʀᴇ ᴅᴜᴇʟꜱ:' - ' &e/ᴘʜᴏᴇɴɪxᴅᴜᴇʟꜱ ᴇᴅɪᴛᴏʀ' - '' - ' &dwww.phoenixplugins.com ' ``` #### Scoreboard Placeholders Beyond every PlaceholderAPI placeholder installed on your server, the lobby scoreboard understands the following on its own. | Placeholder | Description | | ------------- | ------------------------------------------------------------- | | %player% | The name of the player looking at the board. | | %online% | The amount of players online. | | %max_online% | The player slot limit of the server. | | %playing% | The amount of players currently inside a match. | | %queueing% | The amount of players currently in a queue. | | %kills% | The player's kills across challenge, unranked and ranked combined. | | %deaths% | The player's deaths across challenge, unranked and ranked combined. | If another plugin claims a player's sidebar, the lobby board steps aside for it and comes back on its own once that claim is released. ### Teleport on Join Sends every player to the lobby spawn point as they log in. The spawn point is the one set with /pduels setLobby, and nothing happens if none has been set yet. Players who respawn outside a match are always sent there regardless of this option. ```yaml teleport-on-join: true ``` ### Player Interaction Menu Lets players right-click each other in the lobby to open a small menu offering a duel invitation and a party invitation for that player. It never opens for NPCs, and never while either of the two is in a match. ```yaml player-interaction-menu: true ``` The menu itself, including which items sit in it and what they run, is a normal menu file and can be edited or given extra items like any other. Bedrock players get it as a form, see [GeyserMC (Bedrock)](../../configurations/geysermc-bedrock.md). ### Where the Add-On Applies Hotbar items, the scoreboard and the player interaction menu all follow the world list of the main configuration, so a world excluded from PhoenixDuels gets none of them. Walking out of a lobby world clears the hotbar items, and walking back in hands them out again. With PhoenixLobby 3.3.0 or newer on the same server, PhoenixLobby leaves its own lobby items out of the worlds where this add-on hands out its hotbar. Its Stand Down In Duels Worlds join setting turns that off. Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/lobby-items --- # ⚔️ Inventory Stages ## Default Lobby Items The lobby includes special items to help users navigate the plugin’s features more easily. By default, the lobby items are: * **Play Unranked**** -** Iron Sword * **Play Ranked**** -** Diamond Sword * **Kit Editor** - Book * **Party** - Nether Star * **Statistics** - Item Frame * **Setting**** -** Comparator <figure><img src="../../.gitbook/assets/add-ons/lobby-items/lobby_first.png" alt="" width="563"><figcaption><p>Default Lobby Items</p></figcaption></figure> ## Party Items When a user joins a party, their hotbar items automatically change to enhance navigation and make it easier to play games with the party. The items available during the party state are: * **Play Unranked** - Iron Sword * **Play Ranked** - Diamond Sword * **Play Private FFA** - Iron Axe * **Split the Party** - Golden Axe * **Fight another Party** - Diamond Axe * **Manage your Party** - Nether Star * **Leave the Party** - Red Dye <figure><img src="../../.gitbook/assets/add-ons/lobby-items/lobby_party.png" alt="" width="563"><figcaption><p>Party Lobby Items</p></figcaption></figure> ## Queue Items When the party is queuing, the hotbar items automatically update to include a red dye. Clicking on the red dye allows a party member to leave the queue, which will stop the entire party from queuing. <figure><img src="../../.gitbook/assets/add-ons/lobby-items/lobby_queue.png" alt="" width="563"><figcaption><p>Queue Lobby Items</p></figcaption></figure> ## Rematch Item When the Rematch & Requeue add-on opens a rematch window for a player at the end of a match, a clock is laid over the hotbar for as long as that window lasts and disappears again once it expires. It has its own slot on the default stage and on the party stage; the queue stage has no rematch item, so nothing is overlaid while a player is queueing. ```yaml hotbar: rematch-item: default: slot: 4 material: CLOCK party: slot: 3 material: CLOCK ``` ## Held Slot Each stage decides which hotbar slot the player is left holding once the items are handed out. Unlike the item slots above, this one counts from 0 on the left, so 8 is the far right of the hotbar. ```yaml hotbar: enabled: true player-held-slot: default: 0 party: 7 queue: 8 ``` Turning the hotbar off leaves player inventories untouched. The lobby scoreboard and the join actions keep working. ## Item Protection Hotbar items cannot be dropped, moved around an inventory, swapped into the off hand, or left behind as a death drop. Players in creative mode are exempt from all of that, so an admin can still clear their own hotbar. ## Inventory Clearing Switching between the default, party and queue stages only swaps the lobby items, so everything else a player carries stays, such as items won from a bet or an inventory handed back after a match. The whole inventory is cleared only when a player joins, respawns, or moves into or out of a lobby world. ```yaml hotbar: clear-inventory: true ``` Turning it off makes those moments remove only the lobby items too. A player's own item sitting in a slot a lobby item needs is moved to a free slot, or to [Lost Items](../../features/lost-items.md) when the inventory is full. ## Previewing a Stage /pduels lobbyitems \<default/party/queue> hands you the items of that stage without having to actually join a party or a queue first. The next event that rebuilds your hotbar, such as joining a party or leaving a match, replaces them again. ## Extra ### Player Heads To display the player's head in the hotbar, use the following method. ```yaml material: PLAYER_HEAD ``` To display a custom head as an item, use the **basehead** option. ```yaml material: PLAYER_HEAD:BASEHEAD_VALUE ``` Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/lobby-items/inventory-stages --- # 📌 Lobby Extras ## Join Actions Every time a user joins the server, specific actions can be triggered. By default, the plugin sends a how to duel message. <figure><img src="../../.gitbook/assets/add-ons/lobby-items/join_actions.png" alt="" width="563"><figcaption><p>Join Message</p></figcaption></figure> ```yaml lobby: every-join-actions: - '[MESSAGE] &7' - '[MESSAGE] &5&lPHOENIX DUELS' - '[MESSAGE] &7 1v1s, Party FFA/Fight' - '[MESSAGE] &7 Unranked & Ranked Fights' - '[MESSAGE] &7 And much more!' - '[MESSAGE] &7' - '[MESSAGE] &e⬤ To duel, type: &d/duel <player>&e.' - '[MESSAGE] &e⬤ To play, &duse your hotbar&e.' - '[MESSAGE] &7' ``` ## Scoreboard Your server will now display a lobby scoreboard. Note that this scoreboard only appears in the lobby, during a duel the match’s own scoreboard will take over. <figure><img src="../../.gitbook/assets/add-ons/lobby-items/scoreboard.png" alt="" width="563"><figcaption><p>Lobby Scoreboard</p></figcaption></figure> ```yaml scoreboard: enabled: true refresh-rate: 20 header: interval: 2 frames: - '&5&lPHOENIX DUELS' - '&d&lP&5&lHOENIX DUELS' - '&d&lPH&5&lOENIX DUELS' - '&5&lP&d&lHO&5&lENIX DUELS' - '&5&lPH&d&lOE&5&lNIX DUELS' - '&5&lPHO&d&lEN&5&lIX DUELS' - '&5&lPHOE&d&lNI&5&lX DUELS' - '&5&lPHOEN&d&lIX&5&l DUELS' - '&5&lPHOENI&d&lX D&5&lUELS' - '&5&lPHOENIX &d&lDU&5&lELS' - '&5&lPHOENIX D&d&lUE&5&lLS' - '&5&lPHOENIX DU&d&lEL&5&lS' - '&5&lPHOENIX DUE&d&lLS' - '&5&lPHOENIX DUEL&d&lS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&d&lPHOENIX DUELS' - '&d&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&d&lPHOENIX DUELS' - '&d&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' - '&5&lPHOENIX DUELS' lines: - '' - ' ꜱᴛᴀʀᴛ ᴄʜᴀʟʟᴇɴɢɪɴɢ ᴘʟᴀʏᴇʀꜱ' - ' ᴡɪᴛʜ &6/ᴅᴜᴇʟ <ᴘʟᴀʏᴇʀ>' - '' - '&3✔ &fᴏɴʟɪɴᴇ: &3%online%' - '&a🪓 &fᴘʟᴀʏɪɴɢ: &a%playing%' - '&6♠ &fǫᴜᴇᴜᴇɪɴɢ: &6%queueing%' - '' - '&c🗡 &fᴋɪʟʟꜱ: &c%kills%' - '&4☠ &fᴅᴇᴀᴛʜꜱ: &4%deaths%' - '' - ' ᴄᴏɴꜰɪɢᴜʀᴇ ᴅᴜᴇʟꜱ:' - ' &e/ᴘʜᴏᴇɴɪxᴅᴜᴇʟꜱ ᴇᴅɪᴛᴏʀ' - '' - ' &dwww.phoenixplugins.com ' ``` ### Scoreboard Placeholders Beyond every PlaceholderAPI placeholder installed on your server, the lobby scoreboard understands the following on its own. | Placeholder | Description | | ------------- | ------------------------------------------------------------- | | %player% | The name of the player looking at the board. | | %online% | The amount of players online. | | %max_online% | The player slot limit of the server. | | %playing% | The amount of players currently inside a match. | | %queueing% | The amount of players currently in a queue. | | %kills% | The player's kills across challenge, unranked and ranked combined. | | %deaths% | The player's deaths across challenge, unranked and ranked combined. | If another plugin claims a player's sidebar, the lobby board steps aside for it and comes back on its own once that claim is released. ## Teleport on Join Sends every player to the lobby spawn point as they log in. The spawn point is the one set with /pduels setLobby, and nothing happens if none has been set yet. Players who respawn outside a match are always sent there regardless of this option. ```yaml teleport-on-join: true ``` ## Player Interaction Menu Lets players right-click each other in the lobby to open a small menu offering a duel invitation and a party invitation for that player. It never opens for NPCs, and never while either of the two is in a match. ```yaml player-interaction-menu: true ``` The menu itself, including which items sit in it and what they run, is a normal menu file and can be edited or given extra items like any other. ## Where the Add-On Applies Hotbar items, the scoreboard and the player interaction menu all follow the world list of the main configuration, so a world excluded from PhoenixDuels gets none of them. Walking out of a lobby world clears the hotbar items, and walking back in hands them out again. With PhoenixLobby 3.3.0 or newer on the same server, PhoenixLobby leaves its own lobby items out of the worlds where this add-on hands out its hotbar. Its Stand Down In Duels Worlds join setting turns that off. Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/lobby-items/lobby-extras --- # 🍀 Pillar of Fortune ## Information The Pillar of Fortune add-on periodically gives every player on their own a random item or block. <figure><img src="https://cdn.phoenixplugins.com/4owwwyiv3pbd2s88j7bk18wte9ax" alt="" width="188"><figcaption><p>Pillar of Fortune Add-On</p></figcaption></figure> ### 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 Pillar of Fortune as a [gamemode rule](../main-features/create-a-mode/README.md#mode-rules) to the plugin. ### Create a Gamemode Create a gamemode, or open an existing one, that you want the periodic item drops applied to. ### Select Rule Select the Generated rule `Pillar of Fortune` alongside your other rules. ### Create a Map Create a map dedicated for this gamemode. > **Info:** This add-on supports [Folia](../first-installation.md#version-support), which is still experimental. ## Configuration The rule's settings let you configure: * **Drop Interval** - how many seconds between each random item drop. * **Blacklisted Items** - items that should never be picked when rolling a drop. `*` matches any characters, so `*_SPAWN_EGG` covers every spawn egg. New rules block operator, unobtainable and spawner items by default: command blocks, bedrock, barriers, light, structure and jigsaw blocks, spawners, trial spawners, vaults, spawn eggs, the debug stick, end portal frames, portal and gateway blocks, the dragon egg, knowledge books, reinforced deepslate, infested blocks and frogspawn. Rules you already added keep their own list. * **Action Bar** - toggles an action bar showing the countdown to the next drop, with an editable format. * **Receive Title** - an optional title/subtitle shown to a player when they receive an item, with the item name available via `%item%`. * **Receive Sound** - toggles a sound effect played when a player receives an item. <figure><img src="../.gitbook/assets/add-ons/pillar-of-fortune/drop-interval.png" alt="" width="563"><figcaption><p>Pillar of Fortune Rule (Item Drop Interval)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/pillar-of-fortune/blacklisted-items.png" alt="" width="563"><figcaption><p>Pillar of Fortune Rule (Blacklisted Items)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/pillar-of-fortune/action-bar.png" alt="" width="563"><figcaption><p>Pillar of Fortune Rule (Action Bar)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/pillar-of-fortune/receive-title.png" alt="" width="563"><figcaption><p>Pillar of Fortune Rule (Receive Title)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/pillar-of-fortune/receive-sound.png" alt="" width="563"><figcaption><p>Pillar of Fortune Rule (Sound Status)</p></figcaption></figure> ## Placeholders The Pillar of Fortune add-on adds the following placeholders that you can use on the Scoreboard: 1. `%pillaroffortune_team1_remaining%` through `%pillaroffortune_team4_remaining%` - Returns the number of players still alive on that team slot. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that Pillar of Fortune has. | Placeholders | Description | | -------------------------------------------------- | ------------------------------------------- | | %phoenixduels_pillaroffortune_team1_remaining% | Returns the players remaining on team 1. | | %phoenixduels_pillaroffortune_team2_remaining% | Returns the players remaining on team 2. | | %phoenixduels_pillaroffortune_team3_remaining% | Returns the players remaining on team 3. | | %phoenixduels_pillaroffortune_team4_remaining% | Returns the players remaining on team 4. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/pillar-of-fortune --- # 🪓 Player Kits ## Information The Player Kits add-on allows your players to create their own personalized kits using a predefined set of items that you configure. This add-on requires PhoenixDuels Premium. <figure><img src="../../.gitbook/assets/Player Kits.png" alt="" width="188"><figcaption><p>Player Kits - Add-on</p></figcaption></figure> :point\_right: [You can purchase this add-on on Phoenix Store](https://www.myphoenixstore.com/en/items/player-kits-addon) ## Installation To install this add-on, simply drag and drop the jar file into the PhoenixDuels/addons folder, then restart your server. The add-on will generate a file in the main PhoenixDuels folder called `player_kits.yml` , which contains all configuration settings for the add-on.<br> > **Info:** This add-on supports [Folia](../../first-installation.md#version-support), which is still experimental. ## Player Kit Mode When the add-on has been installed, the Loadout Type of a gamemode will now have the Player Kit option. Now, you will be able to create a gamemode that players will use their premade inventories to compete against each other. <figure><img src="../../.gitbook/assets/add-ons/player-kits/loadout-player-kit.png" alt="" width="563"><figcaption><p>Editor > Modes > Mode</p></figcaption></figure> ## Shared Player Kit Mode Next to Player Kit, the Loadout Type list also offers Shared Player Kit. Everyone in the match fights with the selected kit of whoever hosted it, rather than with their own, and each player is told whose kit they have been handed. It is meant for party fights and private matches where one host sets the terms for everybody. <figure><img src="../../.gitbook/assets/add-ons/player-kits/loadout-shared-player-kit.png" alt="" width="563"><figcaption><p>Editor > Modes > Mode</p></figcaption></figure> Matches with no host, such as ranked and unranked queues, have no kit to share, so every player falls back to their own selected kit. ## Extended Premade Kits The categories also power [Extended Kit](../../main-features/create-a-kit.md#extended-kit) on premade kits: with it on, players add extra items from the allowed categories on top of a server kit such as Crystal, from that kit's layout screen, and fight with them in every mode that uses the kit. Each kit picks which categories are allowed and how many extra items a player may add. See [Kit Editor](../../features/kit-editor.md#extra-items-extended-kits). ## Create Kit Category To configure the Player Kits, open the in-game editor and access it from the main menu. <figure><img src="../../.gitbook/assets/configure.png" alt=""><figcaption><p>In-Game Editor</p></figcaption></figure> ### Categories To create a category, simply click on the green stained glass pane. By default, the plugin includes 6 categories with items, allowing users to create their kits based on those items right away. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 013855.png" alt=""><figcaption><p>Add Category</p></figcaption></figure> ### Reordering You can use the reordering option to sort the categories in your desired order for the menu. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp99-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Reordering Categories</p></figcaption></figure> ## Edit Kit Category ### Edit Display Item With this option, you can customize the material, display name, and lore that the kit category will have for the user and the admin. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp-2025-03-03T024109.285-ezgif.com-video-to-gif-converter (2).gif" alt="" width="563"><figcaption><p>Display Item</p></figcaption></figure> ### Identifier With this option, you can set a unique identifier for the category. By default, the plugin automatically assigns a unique identifier to each category. Changing this identifier will result in data loss. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 024506.png" alt="" width="563"><figcaption><p>Category Identifier</p></figcaption></figure> ### Category Menu With this option, you can specify which menu you want your category to have. You can create or edit menus inside the menus/playerkits folder. If you create a custom menu from the editor, the plugin will generate a premade layout for it. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 024801.png" alt="" width="563"><figcaption><p>Category Menu</p></figcaption></figure> ### Delete a Category With this option, you can delete a kit category. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 025114.png" alt="" width="563"><figcaption><p>Delete Category</p></figcaption></figure> > **Danger:** This option is permanent, and categories can't be restored. ## Add Items With the items, you can create and manage the items that will be included in the category. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 031243.png" alt="" width="563"><figcaption><p>items</p></figcaption></figure> ### Reordering You can use the reordering option to sort the items in your desired order for the category menu. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp-2025-03-03T031549.863-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Reordering Rewards</p></figcaption></figure> ### Edit the Item You can set the Display Item, which is the item players will see and select. Additionally, you can customize its display name and lore to make it more appealing. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp-2025-03-03T032454.207-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Edit Item</p></figcaption></figure> ### Target Slot This option is mainly used to identify armor slots. If you have an item that its an armor set, make sure to select the corresponding attribute. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 032756.png" alt="" width="563"><figcaption><p>Target Slot</p></figcaption></figure> ### Remove Item With this option you can delete an item. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 032945.png" alt="" width="563"><figcaption></figcaption></figure> > **Danger:** This option is permanent, and items can't be restored. ### Picker Slot Pins the item to a fixed position in the kit editor's picker grid instead of letting it flow into the next free space. The grid is 25 slots per page, numbered from 0, and a value of 25 or higher lands the item on a later page. Leaving it at -1 means auto-fill: the item takes whatever position the ones declared before it leave open. Use it when a category needs a deliberate shape, such as one armor material per row. ## Configure Slots ### Default Slots With default slots, you can set the number of slots players will have. By default, this is set to 3, allowing users to create up to 3 custom kits. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 020242.png" alt="" width="563"><figcaption><p>Default Slots</p></figcaption></figure> As shown below, the user has access to only 3 custom kits, as specified above.<br> <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 020526.png" alt="" width="563"><figcaption><p>Locked Slots</p></figcaption></figure> ### Permission Slots With Permission Slots, you can grant users additional slots beyond the default ones. Keep in mind that these are extra slots, not replacements for the default slots. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 020912.png" alt="" width="563"><figcaption><p>Permission Slots</p></figcaption></figure> ### Add Permission Slots To create a new permission slot, simply click on the green stained glass. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 021330.png" alt=""><figcaption><p>Add Permission Slot</p></figcaption></figure> After that, you’ll need to specify the permission you want your users to have and the number of slots to grant. There’s also an option to delete a specific slot if needed <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp100-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Permission Slot</p></figcaption></figure> > **Info:** Permission slots do not stack. A player who matches several of them only gets the largest one, added on top of the default slots. ## Default Kits Default kits are ready-made kits every player starts with, so nobody has to build one from scratch. They live in the Default Kits button of the Player Kits editor, and each one is built with the same kit editor players use, from the categories and items above. Left-Click the green stained glass pane to add a default kit, and Left-Click an entry to open it. Turn on Reordering to change the order, which is also the order defaults fill a player's slots in. ### Name The name that tells the default kits apart in the editor. Players never see it. ### Edit Kit Opens the kit editor on the default kit. Saving a change publishes a new version of it. ### Delete Default Kit Right-Click, then confirm, to delete the default kit. Players who already have a copy keep it as a normal kit. ### How Defaults Reach Players * Defaults only fill empty kit slots, within the player's slot limit, for new and existing players alike. A kit the player built is never overwritten. * An empty default kit is skipped until it has items. * A player who never edited their copy gets every new version you save. Once they edit it, they keep their own until they press Reset to Default in the kit editor. * Slots are filled when the player opens their kits or enters a Player Kit match. Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/player-kits --- # 🪁 Add Items ## Items With the items, you can create and manage the items that will be included in the category. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 031243.png" alt="" width="563"><figcaption><p>items</p></figcaption></figure> ## Reordering You can use the reordering option to sort the items in your desired order for the category menu. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp-2025-03-03T031549.863-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Reordering Rewards</p></figcaption></figure> ## Edit the Item You can set the Display Item, which is the item players will see and select. Additionally, you can customize its display name and lore to make it more appealing. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp-2025-03-03T032454.207-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Edit Item</p></figcaption></figure> ## Target Slot This option is mainly used to identify armor slots. If you have an item that its an armor set, make sure to select the corresponding attribute. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 032756.png" alt="" width="563"><figcaption><p>Target Slot</p></figcaption></figure> ## Remove Item With this option you can delete an item. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 032945.png" alt="" width="563"><figcaption></figcaption></figure> > **Danger:** This option is permanent, and items can't be restored. ## Picker Slot Pins the item to a fixed position in the kit editor's picker grid instead of letting it flow into the next free space. The grid is 25 slots per page, numbered from 0, and a value of 25 or higher lands the item on a later page. Leaving it at -1 means auto-fill: the item takes whatever position the ones declared before it leave open. Use it when a category needs a deliberate shape, such as one armor material per row. Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/player-kits/add-items --- # 💺 Configure Slots ## Default Slots With default slots, you can set the number of slots players will have. By default, this is set to 3, allowing users to create up to 3 custom kits. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 020242.png" alt="" width="563"><figcaption><p>Default Slots</p></figcaption></figure> As shown below, the user has access to only 3 custom kits, as specified above.<br> <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 020526.png" alt="" width="563"><figcaption><p>Locked Slots</p></figcaption></figure> ## Permission Slots With Permission Slots, you can grant users additional slots beyond the default ones. Keep in mind that these are extra slots, not replacements for the default slots. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 020912.png" alt="" width="563"><figcaption><p>Permission Slots</p></figcaption></figure> ## Add Permission Slots To create a new permission slot, simply click on the green stained glass. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 021330.png" alt=""><figcaption><p>Add Permission Slot</p></figcaption></figure> After that, you’ll need to specify the permission you want your users to have and the number of slots to grant. There’s also an option to delete a specific slot if needed <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp100-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Permission Slot</p></figcaption></figure> > **Info:** Permission slots do not stack. A player who matches several of them only gets the largest one, added on top of the default slots. Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/player-kits/configure-slots --- # 📚 Create Kit Category ## Configure a Player Kit To configure the Player Kits, open the in-game editor and access it from the main menu. <figure><img src="../../.gitbook/assets/configure.png" alt=""><figcaption><p>In-Game Editor</p></figcaption></figure> ## Categories To create a category, simply click on the green stained glass pane. By default, the plugin includes 6 categories with items, allowing users to create their kits based on those items right away. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 013855.png" alt=""><figcaption><p>Add Category</p></figcaption></figure> ## Reordering You can use the reordering option to sort the categories in your desired order for the menu. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp99-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Reordering Categories</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/player-kits/create-kit-category --- # 🎨 Edit Kit Category ## Edit Display Item With this option, you can customize the material, display name, and lore that the kit category will have for the user and the admin. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp-2025-03-03T024109.285-ezgif.com-video-to-gif-converter (2).gif" alt="" width="563"><figcaption><p>Display Item</p></figcaption></figure> ## Identifier With this option, you can set a unique identifier for the category. By default, the plugin automatically assigns a unique identifier to each category. Changing this identifier will result in data loss. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 024506.png" alt="" width="563"><figcaption><p>Category Identifier</p></figcaption></figure> ## Category Menu With this option, you can specify which menu you want your category to have. You can create or edit menus inside the menus/playerkits folder. If you create a custom menu from the editor, the plugin will generate a premade layout for it. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 024801.png" alt="" width="563"><figcaption><p>Category Menu</p></figcaption></figure> ## Delete a Category With this option, you can delete a kit category. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 025114.png" alt="" width="563"><figcaption><p>Delete Category</p></figcaption></figure> > **Danger:** This option is permanent, and categories can't be restored. Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/player-kits/edit-kit-category --- # 🧰 The Kit Editor ## Opening the Editor Players reach their kits from the Player Kits button on the bottom bar of the /kiteditor kit list, or straight away with /kiteditor playerkits. The list that opens shows one entry per slot the player owns; clicking an entry edits that kit, and the button underneath it marks which kit is the selected one used in matches. The selection is saved with the player's data, so it stays across reconnects and restarts. Bedrock players get the list as a form and choose between selecting and editing a kit, while the editing screen stays a chest menu, see [GeyserMC (Bedrock)](../../configurations/geysermc-bedrock.md). <figure><img src="../../.gitbook/assets/add-ons/player-kits/open-player-kits.png" alt="" width="563"><figcaption><p>Kit Editor</p></figcaption></figure> <figure><img src="../../.gitbook/assets/add-ons/player-kits/kit-list.png" alt="" width="563"><figcaption><p>Your Player Kits</p></figcaption></figure> ## The Editing Screen While a kit is open, the player's real inventory is put aside and handed back untouched on close, so nothing they were carrying can be lost or duplicated into a kit. The upper half is the kit itself, laid out like a survival inventory with an armor row and an off-hand slot at the bottom. The lower half is the picker: the hotbar holds the tools, and the three rows above it hold whatever the current tool is showing. Items are placed by dragging them out of the picker into the kit area. Middle-clicking any item copies it onto the cursor, which is the quickest way to fill several slots with the same thing. Dropping an item outside the window discards it, and so does clicking the trash bin. <figure><img src="../../.gitbook/assets/add-ons/player-kits/editing-screen.png" alt="" width="563"><figcaption><p>Editing Player Kit</p></figcaption></figure> <figure><img src="../../.gitbook/assets/add-ons/player-kits/trash-bin.png" alt="" width="563"><figcaption><p>Editing Player Kit</p></figcaption></figure> ## Categories The first hotbar slot cycles through the categories you configured. Each category fills the picker grid with its own items, paginated when there are more than 25 of them, with page arrows on the left and right of the row above the hotbar. <figure><img src="../../.gitbook/assets/add-ons/player-kits/categories.png" alt="" width="563"><figcaption><p>Editing Player Kit</p></figcaption></figure> ## Enchanter Slot Dropping an item into the enchanter slot turns the picker grid into a list of enchantment books, showing only the enchantments that can legally go on that item. Each book carries the level the item is currently at and the cap it can be taken to, and clicking it walks that level up or down. An enchantment that conflicts with one already on the item, such as Sharpness with Smite, cannot be added. A barrier on the right of the third row strips every enchantment back off at once. <figure><img src="../../.gitbook/assets/add-ons/player-kits/enchanter-slot.png" alt="" width="563"><figcaption><p>Editing Player Kit</p></figcaption></figure> <figure><img src="../../.gitbook/assets/add-ons/player-kits/enchantment-book.png" alt="" width="563"><figcaption><p>Editing Player Kit</p></figcaption></figure> Only the first 25 applicable enchantments are shown, so a heavily modded server may want to narrow the list down with the whitelist below. ## Stack Size and Durability Two more hotbar slots accept an item the same way the enchanter slot does, and offer quick values for it: stack sizes of 1, 8, 16, 32 and 64, and durability at 100%, 75%, 50%, 25% and 1% of the item's maximum. Sizes above what the item can actually stack to are greyed out, and the durability slot stays inactive for items that have no durability at all. <figure><img src="../../.gitbook/assets/add-ons/player-kits/stack-size.png" alt="" width="563"><figcaption><p>Editing Player Kit</p></figcaption></figure> <figure><img src="../../.gitbook/assets/add-ons/player-kits/change-durability.png" alt="" width="563"><figcaption><p>Editing Player Kit</p></figcaption></figure> <figure><img src="../../.gitbook/assets/add-ons/player-kits/durability-options.png" alt="" width="563"><figcaption><p>Editing Player Kit</p></figcaption></figure> ## Trim Slot Dropping a piece of armor into the trim slot turns the picker into a pattern row and a material row, both paginated. Picking one of each applies the trim to the armor, and a barrier on the right of the third row removes it again. Patterns and materials the player has no permission for are shown as a locked tile naming the permission they are missing. <figure><img src="../../.gitbook/assets/add-ons/player-kits/trim-slot.png" alt="" width="563"><figcaption><p>Editing Player Kit</p></figcaption></figure> <figure><img src="../../.gitbook/assets/add-ons/player-kits/trim-pattern.png" alt="" width="563"><figcaption><p>Editing Player Kit</p></figcaption></figure> <figure><img src="../../.gitbook/assets/add-ons/player-kits/trim-material.png" alt="" width="563"><figcaption><p>Editing Player Kit</p></figcaption></figure> <figure><img src="../../.gitbook/assets/add-ons/player-kits/trim-applied.png" alt="" width="563"><figcaption><p>Editing Player Kit</p></figcaption></figure> ## Saving Save and Go Back both write the kit and return to the kit list; Reset puts the kit back to how it looked when the screen was opened. Closing with Escape, disconnecting, or a server shutdown all save the kit exactly as saving would, so no work is lost by leaving the wrong way. Dying while a kit is open saves it too and closes the editor, and the player's own inventory comes back once they respawn. <figure><img src="../../.gitbook/assets/add-ons/player-kits/save.png" alt="" width="563"><figcaption><p>Editing Player Kit</p></figcaption></figure> ## Reset to Default Kits that came from one of the server's [default kits](README.md#default-kits) show a Reset to Default button next to the armor row. Left-Click it and confirm to replace the kit with the current version of that default, which also brings back automatic updates when the default changes. Bedrock players find the same option in the kit's form. The button disappears if the default is deleted, and the kit stays as it is. ## Enchantment Limits Two options in the add-on configuration bound what the enchanter can hand out. They have no editor screen, so they are set in the file directly. ```yaml allowed-enchantments: [] max-enchantment-level: -1 ``` An empty whitelist offers every vanilla enchantment. Filling it in restricts the enchanter to the names listed, on top of the usual rule that an enchantment still has to fit the item. A level cap of -1 keeps each enchantment's own vanilla maximum; any positive value replaces that maximum for all of them, which is how you allow Sharpness X. > **Info:** The cap only binds the editor. Levels already stored in a player's kit are applied to the item as they are. ## Trim Permissions Armor trims are gated one pattern and one material at a time, and the nodes are shared with the rest of PhoenixDuels rather than being specific to player kits. | Permission | Description | | ---------------------------------------------- | ----------------------------------------------- | | phoenixplugins.trim.pattern.\<pattern> | Allows using the trim pattern matching `<pattern>`. | | phoenixplugins.trim.material.\<material> | Allows using the trim material matching `<material>`. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/player-kits/kit-editor --- # 🎉 Public Parties ## Information The Public Parties add-on lets a party leader list their party to the whole server, so players can find it and join it without ever being invited. Parties can be fully open, or accept join requests the leader approves one by one. This add-on requires PhoenixDuels Premium. <figure><img src="https://cdn.phoenixplugins.com/7dkt2hykh8j7jtjxv7jvpmev9x38" alt="" width="188"><figcaption><p>Public Parties Add-On</p></figcaption></figure> ## Installation To install this add-on, simply drag and drop the jar file into the PhoenixDuels/addons folder, then restart your server. These are the following files that this add-on will generate to your PhoenixDuels folder: * `PhoenixDuels/menus/publicparties/browser.yml` - The party browser opened by `/joinparty`. * `PhoenixDuels/menus/publicparties/bans.yml` - The banned players menu. * `PhoenixDuels/translations/publicparties.translations.en.yml` - The translation file for the add-on. It also adds a `public-parties` section to your `config.yml`, extends the existing `menus/party/party.yml` and `menus/party/info.yml` menus, and creates a `%prefix%_publicparties_table` table in your database. > **Warning:** The add-on replaces the party command and the party menus with its own versions while it is loaded, and puts the originals back when it is unloaded. If you already customised `menus/party/info.yml`, the new buttons are appended to it, but existing lines are never rewritten — delete the file if you want the new layout generated from scratch. ## Visibility A party is always in one of three states. The leader switches between them with a command, or by clicking the visibility button in the party menu, which cycles through all three. <table data-full-width="true"><thead><tr><th width="180">State</th><th>Behaviour</th></tr></thead><tbody><tr><td><strong>Private</strong></td><td>The default. The party is hidden from the browser and can only be joined by invite.</td></tr><tr><td><strong>Public</strong></td><td>The party is listed in the browser and anyone can join it instantly.</td></tr><tr><td><strong>Requests</strong></td><td>The party is listed, but clicking it sends the leader a request to approve or deny instead of joining.</td></tr></tbody></table> A listed party can be announced to every online player with `/party announce`. The announcement is skipped for the other members of that party and for anyone banned from it. <figure><img src="../../.gitbook/assets/add-ons/public-parties/party-visibility.png" alt="" width="563"><figcaption><p>Party (Party Visibility)</p></figcaption></figure> ## Commands | Command | Description | | ----------------------------- | ------------------------------------------------------------------------------------------------ | | `/joinparty` | Opens the public parties browser. | | `/joinparty <player>` | Joins that player's party directly, or sends a request if the party is in Requests mode. | | `/joinparty accept <player>` | Accepts a pending join request. Leader only. | | `/joinparty deny <player>` | Denies a pending join request. Leader only. | | `/party public` | Lists the party and lets anyone join instantly. Leader only. | | `/party requests` | Lists the party, but every join has to be approved. Leader only. | | `/party private` | Unlists the party and drops every pending request. Leader only. | | `/party announce` | Announces a listed party to every online player. Leader only. | | `/party desc <text>` | Sets the description shown on the party's entry in the browser. Leader only. | | `/party desc clear` | Removes the description. Leader only. | | `/party ban <player>` | Bans a player from the party. Leader only. | | `/party unban <player>` | Lifts a ban. Leader only. | | `/party bans` | Opens the banned players menu. Leader only. | > **Info:** If you renamed the party command through `commands.party.alternative`, these sub-commands follow the new name. Every other party sub-command keeps working exactly as before. `/joinparty` has its own rename option, listed under Configuration. ## The Browser `/joinparty` opens a paginated list of every listed party, refreshed every second. Each entry shows the leader's head, the member count, the members themselves and the party's description. * **Sorting** - cycles between free slots, party size, leader name, instant join and needs approval. The last two only list parties of that kind, and are hidden when join requests are disabled. * **Hide Full Parties** - hides parties with no room left, on by default. Both buttons are per viewer, so two players browsing at the same time keep their own sorting and filtering. Bedrock players get the browser, the party menu and the banned players menu as forms, see [GeyserMC (Bedrock)](../../configurations/geysermc-bedrock.md). <figure><img src="../../.gitbook/assets/add-ons/public-parties/browser-sorting.png" alt="" width="563"><figcaption><p>Public Parties (Sorting)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/add-ons/public-parties/browser-hide-full.png" alt="" width="563"><figcaption><p>Public Parties (Hide Full Parties)</p></figcaption></figure> The entry lore supports `%player%`, `%members%`, `%max%`, `%members_list%` and `%description%`. The `%description%` line is dropped entirely when the party has no description set, and parties in Requests mode use their own separate entry item. <figure><img src="../../.gitbook/assets/add-ons/public-parties/browser-party-entry.png" alt="" width="563"><figcaption><p>Public Parties (Liam's Party)</p></figcaption></figure> ## Join Rules A join attempt is refused when: * The joiner is already in another party with other players in it. A party they are alone in is disbanded instead, the same as when accepting an invite. * The joiner is in a match or in the queue. * The target party is in a match, in the queue, or has a pending challenge. * The party is full, unless the joiner has the bypass permission. * The joiner is banned from that party. > **Warning:** The match and queue checks cannot be turned off. They exist because a party's roster changing mid-duel breaks the match. Free slots are counted as members **plus** pending invites, which is what the plugin itself enforces — so a party showing an open slot in the browser really has one. ## Descriptions `/party desc <text>` gives the party a short line of text that shows up on its browser entry, so leaders can say what they are looking for instead of just showing a member count. The length limit and the whole feature are configurable. ## Join Requests In Requests mode, clicking a party in the browser sends its leader a message with clickable `[ACCEPT]` and `[DENY]` buttons, wired to `/joinparty accept` and `/joinparty deny`. Requests expire on their own after the configured time, and are dropped when the party goes private. <figure><img src="../../.gitbook/assets/add-ons/public-parties/browser-request-entry.png" alt="" width="563"><figcaption><p>Public Parties (Sophie's Party)</p></figcaption></figure> ## Party Bans A ban stops a player from rejoining a party they were kicked from. Banning someone removes them from the party on the spot, drops any request they had pending, hides the party from their browser, and skips them when the party is announced. Bans last as long as the party exists and are cleared when it disbands. The leader can review and lift them from `/party bans`, or through the **Banned Players** button in the party menu, by clicking a head. <figure><img src="../../.gitbook/assets/add-ons/public-parties/banned-player-entry.png" alt="" width="563"><figcaption><p>Banned Players (Oliver)</p></figcaption></figure> ## Configuration The add-on adds a `public-parties` section to your `config.yml`. <table data-full-width="true"><thead><tr><th width="330">Configuration key</th><th width="150">Default</th><th>Notes</th></tr></thead><tbody><tr><td><code>advertisement.enabled</code></td><td>true</td><td>Enables <code>/party announce</code>.</td></tr><tr><td><code>advertisement.cooldown-seconds</code></td><td>60</td><td>How long a party has to wait between two announcements.</td></tr><tr><td><code>maximum-listed-parties</code></td><td>0</td><td>Caps how many parties can be listed at once. <code>0</code> is unlimited.</td></tr><tr><td><code>visibility-cooldown-seconds</code></td><td>3</td><td>How long a leader has to wait between two visibility changes, from the menu or a command. <code>0</code> turns it off.</td></tr><tr><td><code>browser.hide-full-parties</code></td><td>true</td><td>The starting state of the browser's hide-full toggle.</td></tr><tr><td><code>browser.default-sort</code></td><td>SLOTS_REMAINING</td><td><code>SLOTS_REMAINING</code>, <code>MEMBERS</code>, <code>LEADER_NAME</code>, <code>INSTANT_JOIN</code> or <code>NEEDS_APPROVAL</code>.</td></tr><tr><td><code>requests.enabled</code></td><td>true</td><td>Turning this off removes Requests from the visibility cycle entirely.</td></tr><tr><td><code>requests.expiration-seconds</code></td><td>60</td><td>How long a pending request stays valid.</td></tr><tr><td><code>description.enabled</code></td><td>true</td><td>Enables <code>/party desc</code>.</td></tr><tr><td><code>description.maximum-length</code></td><td>48</td><td>Characters allowed in a description.</td></tr><tr><td><code>permissions.enabled</code></td><td>false</td><td>Gates joining and listing behind the permissions below. Off by default so existing setups keep working.</td></tr><tr><td><code>command.alternative</code></td><td>joinparty</td><td>Renames <code>/joinparty</code>, including the accept and deny buttons of join requests. Applied on the next restart.</td></tr></tbody></table> ## Permissions | Permission | Description | | ---------------------------------------- | ---------------------------------------------------------------------------------------- | | phoenixduels.publicparties.join | Allows joining public parties. Only enforced when `permissions.enabled` is on. | | phoenixduels.publicparties.advertise | Allows listing your own party. Only enforced when `permissions.enabled` is on. | | phoenixduels.publicparties.bypass-full | Allows joining a party that is already full. Always enforced. | | phoenixduels.publicparties.announce | Allows `/party announce`. Always enforced. | > **Warning:** `bypass-full` works by raising that party's slot limit by one, because the plugin hard-caps a party at its maximum. The extra slot stays with the party after the bypassing player leaves. ## Storage Visibility, descriptions and bans are written to the `%prefix%_publicparties_table` table through whichever database you have configured, SQLite or MySQL. The table is created and migrated on its own the first time the add-on loads. State is saved when the add-on unloads and restored when it loads again, so reloading the add-on does not silently drop every public party back to private. Rows are deleted as they are read, so parties that died while the add-on was unloaded do not pile up. > **Info:** This does not survive a full server restart, and cannot: parties themselves are never persisted by the plugin, so after a restart there is no party left for a saved row to attach to and every row is discarded. Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/public-parties --- # 🔁 Rematch & Requeue ## Information The Rematch & Requeue add-on adds two quality-of-life commands, `/duelrematch` and `/duelrequeue`, so players can jump straight back into a match instead of navigating menus after every game. This add-on requires PhoenixDuels Premium. <figure><img src="https://cdn.phoenixplugins.com/dpc4iaqrge8rsiotjpw31m4e0690" alt="" width="188"><figcaption><p>Rematch & Requeue Add-On</p></figcaption></figure> ## Installation To install this add-on, simply drag and drop the jar file into the PhoenixDuels/addons folder, then restart your server. This add-on generates the following file: * `PhoenixDuels/translations/rematchrequeue.translations.en.yml` - The translation file for the add-on. ## Commands | Command | Description | | -------------------- | --------------------------------------------------------------------------------------------------------------- | | `/duelrematch` | Re-challenges your most recent 1v1 opponent to the same mode. Only available for a short window (10 seconds) after the match ends. Only works after a clean 1v1 — team and party matches don't have a single "last opponent" to re-challenge. | | `/duelrequeue` | Toggles **Auto-Requeue**. While enabled, you're automatically placed back in queue for the same mode after every match you finish. | ## Auto-Requeue Auto-Requeue is a per-player toggle, saved with the rest of a player's settings. Once turned on with `/duelrequeue`, the player is silently re-queued for whichever mode they just finished playing at the end of every match, until they toggle it off again. Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/rematch-requeue --- # 🛑 Sign Queues ## Information The Sign Queues add-on allows the admins to create signs that players can use to queue for a game mode. This add-on requires PhoenixDuels Premium. <figure><img src="https://cdn.phoenixplugins.com/nyy5qom859svjedmptk1wufrg5fe" alt="" width="188"><figcaption><p>Sign Queues - Add-on</p></figcaption></figure> 👉 [You can purchase this add-on on Phoenix Store](https://www.phoenixplugins.com/product/signqueues-addon) ## Installation To install this add-on, simply drag and drop the jar file into the PhoenixDuels/addons folder, then restart your server. These are the following files that this add-on will generate to your PhoenixDuels folder: - `PhoenixDuels\sign_queue.yml` - Signs and their format can be found on that file. - `PhoenixDuels\translations\signqueue.translations.en.yml` - The translation file for the add-on. > **Info:** This add-on supports [Folia](../../first-installation.md#version-support), which is still experimental. ## Sign Queues Once you have installed the add-on on your server, you will be able to set up signs for queuing similar to the ones below. The plugin supports any type of sign. <figure><img src="../../.gitbook/assets/add-ons/sign-queues/sign_queues_in_game.png" alt="" width="563"><figcaption><p>Sign Queues in-game </p></figcaption></figure> ## Sign Text Once a sign is registered, its four lines are rebuilt from a single template shared by every queue sign, so changing the template restyles all of them at once. The [placeholders](#placeholders) work on each line. ```yaml lines: - '&0<&f&lQueue&r&0>' - '&7&l%mode%' - '&7%queue% queueing...' - '&fClick to join' ``` A sign whose mode no longer exists, usually because the mode was renamed or deleted, falls back to a second template instead, so a broken sign is obvious in-game rather than silently doing nothing. ```yaml invalid-lines: - '&0<&f&lQueue&r&0>' - '&cInvalid mode' - '' - '&e&nContact staff!' ``` Signs are redrawn whenever somebody joins or leaves the queue they point at, not on a timer, so the counter on a sign is always current without any polling cost. ## Create Queue Sign The format to set up the queue sign is as follows. <figure><img src="../../.gitbook/assets/add-ons/sign-queues/sign_queues_format.png" alt="" width="563"><figcaption><p>Sign Queue Format</p></figcaption></figure> <table><thead><tr><th width="306">[QUEUE]</tr></thead><tbody> <tr><td>The ID of your gamemode</td></tr> <tr><td>Ranked/Unranked</td></tr> <td>Solo/Duo/Trio/Quad</td></tbody></table> ### Example If you want to create a queue sign for players to play 1v1 ranked in Crystal mode, it would look like the following: <figure><img src="../../.gitbook/assets/add-ons/sign-queues/sign_queues_example.png" alt="" width="563"><figcaption><p>Example for Crystal Ranked 1v1 Sign Queue<</p></figcaption></figure> <details> <summary>Sign Queue format in the sign_queue.yml</summary> ```yaml '1': location: world: world x: 612.0 y: 102.0 z: -6.0 yaw: 0.0 pitch: 0.0 mode: crystal queue-type: RANKED team-size: SOLO ``` </details> ### Modification If you want to modify the queue sign at any point, you can either edit it manually in the `sign_queue.yml` file, as shown in the example above, or Shift + Right-click the sign. ### Placeholders: Here is a list of the placeholders that you can use on the signs. | Placeholder | Description | | ----------- | -------------------------------------------- | | %type% | Returns Ranked, Unranked | | %team% | Returns Solo, Duo, Trio, Quad | | %mode% | Returns the gamemode's display name | | %queue% | Returns the amount of players queuing. | | %queuesize% | Returns the players per match (2, 4, 6, 8) | ### Joining and Leaving Right-clicking a sign puts the player in that queue. Right-clicking it again while already queued for that exact mode, type and team size takes them back out, so a single sign covers both directions and no separate leave item is needed. Clicking a sign whose mode no longer exists only warns the player; it never queues them for anything. ### Removing a Sign Breaking the sign removes the registration along with the block. Players without phoenixduels.admin cannot break a queue sign at all, so a registered sign is safe from anyone with build rights in the lobby. > **Info:** Creating and editing queue signs also requires phoenixduels.admin. Writing the format on a sign without it leaves an ordinary sign behind. Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/sign-queues --- # ✍️ Create Queue Sign ## Set up a Queue Sign The format to set up the queue sign is as follows. <figure><img src="../../.gitbook/assets/add-ons/sign-queues/sign_queues_format.png" alt="" width="563"><figcaption><p>Sign Queue Format</p></figcaption></figure> <table><thead><tr><th width="306">[QUEUE]</tr></thead><tbody> <tr><td>The ID of your gamemode</td></tr> <tr><td>Ranked/Unranked</td></tr> <td>Solo/Duo/Trio/Quad</td></tbody></table> ### Example If you want to create a queue sign for players to play 1v1 ranked in Crystal mode, it would look like the following: <figure><img src="../../.gitbook/assets/add-ons/sign-queues/sign_queues_example.png" alt="" width="563"><figcaption><p>Example for Crystal Ranked 1v1 Sign Queue<</p></figcaption></figure> <details> <summary>Sign Queue format in the sign_queue.yml</summary> ```yaml '1': location: world: world x: 612.0 y: 102.0 z: -6.0 yaw: 0.0 pitch: 0.0 mode: crystal queue-type: RANKED team-size: SOLO ``` </details> ## Modification If you want to modify the queue sign at any point, you can either edit it manually in the `sign_queue.yml` file, as shown in the example above, or Shift + Right-click the sign. ## Placeholders: Here is a list of the placeholders that you can use on the signs. | Placeholder | Description | | ----------- | -------------------------------------------- | | %type% | Returns Ranked, Unranked | | %team% | Returns Solo, Duo, Trio, Quad | | %mode% | Returns the gamemode's display name | | %queue% | Returns the amount of players queuing. | | %queuesize% | Returns the amount of players that can queue | ## Joining and Leaving Right-clicking a sign puts the player in that queue. Right-clicking it again while already queued for that exact mode, type and team size takes them back out, so a single sign covers both directions and no separate leave item is needed. Clicking a sign whose mode no longer exists only warns the player; it never queues them for anything. ## Removing a Sign Breaking the sign removes the registration along with the block. Players without phoenixduels.admin cannot break a queue sign at all, so a registered sign is safe from anyone with build rights in the lobby. > **Info:** Creating and editing queue signs also requires phoenixduels.admin. Writing the format on a sign without it leaves an ordinary sign behind. Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/sign-queues/create-queue-sign --- # 🎁 SkyWars ## Information The SkyWars add-on fills every chest and trapped chest placed inside your arena with random loot when a round starts. Each container type draws from its own loot pool, so the chests around a team's island and the ones in the middle of the map can hold completely different gear. This add-on requires PhoenixDuels Premium. ### 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 SkyWars as a [gamemode rule](../main-features/create-a-mode/#gamemode-rules-30) to the plugin, and generates the following files: * `PhoenixDuels/skywars/chests.yml` - The loot pools of both chest types. * `PhoenixDuels/translations/skywars.translations.en.yml` - The translation file for the add-on. ### Create a Gamemode Create a gamemode, or open an existing one, that you want the loot chests applied to. ### Select Rule Select the Generated rule `SkyWars` alongside your other rules. ### Place Chests Place chests and trapped chests inside the arena's battle region. Only containers inside that region are picked up — anything outside of it is ignored. ### Create a Map Create a map dedicated for this ruleset, and make sure Regeneration is enabled so the arena resets between matches. ## Chest Types The container you place decides which pool it is filled from. This is not configurable — it is how the add-on tells the two pools apart. <table data-full-width="true"><thead><tr><th width="200">Block</th><th width="180">Pool</th><th>Notes</th></tr></thead><tbody><tr><td>Chest</td><td><strong>Team Chests</strong></td><td>Always enabled. Meant for the chests around each spawn island.</td></tr><tr><td>Trapped Chest</td><td><strong>Middle Chests</strong></td><td>Can be switched off, and is capped to 4 chests by default.</td></tr></tbody></table> ## Match Settings The SkyWars rule's settings hold three entries: * **Team Chests** - opens the loot pool of every normal chest in the arena. * **Middle Chests** - opens the loot pool of every trapped chest in the arena. * **Action Bar** - toggles an action bar showing every team's remaining player count. Both chest entries show a summary of their chest limit and how many loot entries they hold before you open them. > **Warning:** The two loot pools live in `skywars/chests.yml` and are shared by **every** mode that uses the SkyWars rule. Editing them from one mode changes them everywhere. Only the Action Bar toggle is stored per mode. <figure><img src="../.gitbook/assets/add-ons/skywars/team-chests.png" alt="" width="563"><figcaption><p>SkyWars Rule (Team Chests)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/skywars/middle-chests.png" alt="" width="563"><figcaption><p>SkyWars Rule (Middle Chests)</p></figcaption></figure> ## Loot Items Opening either chest entry takes you to that pool's Loot Items menu, where you can add, edit and remove entries. * **Chest Limit** - caps how many containers of that type the pool may claim in the arena. Chests closest to the center of the battle region are claimed first, so a limit of `4` on the middle pool fills the four most central trapped chests and leaves the rest empty. Set to `-1` for no cap. Clicking past `-1` skips `0` and lands on `1`. * **Enabled** - only shown for the middle chests, and stops them from being filled at all. <figure><img src="../.gitbook/assets/add-ons/skywars/chest-limit.png" alt="" width="563"><figcaption><p>Loot Items (Chest Limit)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/skywars/enabled.png" alt="" width="563"><figcaption><p>Loot Items (Enabled)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/skywars/weight.png" alt="" width="563"><figcaption><p>Loot Item (Weight)</p></figcaption></figure> Each loot entry has its own settings: * **Item** - the item or block that gets placed. Any item works, including custom models, potions and named gear. * **Weight** - how likely this entry is to be drawn. The menu shows the resulting chance, which is this weight divided by the sum of every weight in the pool. * **Minimum Amount** / **Maximum Amount** - the stack size range the entry is drawn with, capped at the item's own stack size: 64 for most items, 16 for ender pearls and 1 for unstackable items. * **Guaranteed** - places this entry in every chest of that pool instead of leaving it to chance. * **Delete Item** - removes the entry from the pool. ## How a Chest is Filled When a round starts, every container inside the battle region is scanned, claimed by its matching pool, emptied and refilled once. There is no refill during the match. 1. Every **Guaranteed** entry is placed first. 2. A target amount of items is rolled between the pool's minimum and maximum item count. 3. The rest of the slots are drawn at random, weighted, until the target is reached. 4. An entry can never be drawn twice in the same chest, and only one item of each gear category is placed per chest — so a chest will not hold two swords, two chestplates or two bows. The gear categories are swords (including tridents), pickaxes, axes, helmets, chestplates (including elytras), leggings, boots and bows (including crossbows). Everything else — blocks, food, pearls, potions — is not categorised, and is limited only by the one-draw-per-entry rule. > **Info:** The minimum and maximum item count per chest is not in the editor. Both live under `team-chest` and `middle-chest` in `skywars/chests.yml` as `min-items` and `max-items`. ## Action Bar While a round is in progress, the rule can show an action bar listing how many players each team has left, refreshed every second. The toggle sits in the rule's settings, and the format is editable in the add-on's translation file under `skywars.action-bar`, using `%team_color%`, `%team_prefix%` and `%team_remaining%`. <figure><img src="../.gitbook/assets/add-ons/skywars/action-bar.png" alt="" width="563"><figcaption><p>SkyWars Rule (Action Bar)</p></figcaption></figure> ## Placeholders The SkyWars add-on adds the following placeholders that you can use on the Scoreboard: 1. `%skywars_team1_remaining%` through `%skywars_team4_remaining%` - Returns the number of players still alive on that team slot. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that SkyWars has. | Placeholders | Description | | ------------------------------------------- | ------------------------------------------- | | %phoenixduels_skywars_team1_remaining% | Returns the players remaining on team 1. | | %phoenixduels_skywars_team2_remaining% | Returns the players remaining on team 2. | | %phoenixduels_skywars_team3_remaining% | Returns the players remaining on team 3. | | %phoenixduels_skywars_team4_remaining% | Returns the players remaining on team 4. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/skywars --- # ❄️ Spleef ## Information The Spleef add-on adds the well known Spleef gamemode to the plugin. <figure><img src="../.gitbook/assets/tdu42ozjettmcys23yy7uzeij8ox.png" alt="" width="188"><figcaption><p>Spleef Add-On</p></figcaption></figure> :point\_right: [You can purchase this add-on on Phoenix Store](https://www.myphoenixstore.com/items/spleef-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 Spleef as a [gamemode rule](../main-features/create-a-mode/README.md#mode-rules) to the plugin. ### Create a Gamemode Create a gamemode dedicated for the Spleef Gamemode. ### Select Rule Select the Generated rule `Spleef` and any other rule you might want. ### Setup Inventory Create the Inventory for your Spleef. Recommended items can be found below. ### Create a Map Create a map dedicated for the Spleef Gamemode. ### Regeneration Make sure that the Regeneration is enabled for your map, otherwise the blocks will not regenerate. ### Whitelist Gamemode Select the Spleef gamemode as the only allowed mode for that map, and you are all set! ### Items The Spleef has two different options that you can use, and both can be toggled independently in the rule's settings: 1\) **Snowball Break** - give players a shovel, and when they break a snow block, they receive snowballs. 2\) **Bow Spleef** - give them a bow, and when they hit a snow block, the block will disappear. Both only apply to players in a running Spleef match and to snow blocks inside that arena's battle region. Snow anywhere else, and any block another plugin protects, is left alone. ## Action Bar The Spleef rule can show an action bar with the players each team has left. Both the toggle and the message format are editable from the rule's settings. ## Placeholders The Spleef add-on adds the following placeholders that you can use on the Scoreboard: 1. `%spleef_team1_remaining%` through `%spleef_team4_remaining%` - Returns the number of players still alive on that team slot. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that Spleef has. | Placeholders | Description | | -------------------------------------- | ------------------------------------------ | | %phoenixduels_spleef_team1_remaining% | Returns the players remaining on team 1. | | %phoenixduels_spleef_team2_remaining% | Returns the players remaining on team 2. | | %phoenixduels_spleef_team3_remaining% | Returns the players remaining on team 3. | | %phoenixduels_spleef_team4_remaining% | Returns the players remaining on team 4. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/spleef --- # 🌉 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 --- # 💣 TnT Run ## Information The TnT Run add-on adds the well known TnT Run gamemode to the plugin. <figure><img src="../.gitbook/assets/TNT%20Run.png" alt="" width="188"><figcaption><p>TnT Run Add-On</p></figcaption></figure> :point\_right: [You can purchase this add-on on Phoenix Store](https://www.myphoenixstore.com/items/tnt-run-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 TnT Run as a [gamemode rule](../main-features/create-a-mode/README.md#mode-rules) to the plugin. ### Create a Gamemode Create a gamemode dedicated for the TnT Run Gamemode. ### Select Rule Select the Generated rule `TnT Run` and any other rule you might want. ### Create a Map Create a map dedicated for the TnT Run Gamemode. ### Regeneration Make sure that the Regeneration is enabled for your map, otherwise the blocks will not regenerate. ### Whitelist Gamemode Select the TnT Run gamemode as the only allowed mode for that map, and you are all set! > **Info:** This add-on supports [Folia](../first-installation.md#version-support), which is still experimental. ## Blocks Make sure you have a layer of TNT on the floor, and place one of the following blocks on top of it: * Sand * Red Sand * Gravel * Suspicious Sand * Suspicious Gravel ## Action Bar The TnT Run rule can show an action bar with the players each team has left. Both the toggle and the message format are editable from the rule's settings. ## Placeholders The TnT Run add-on adds the following placeholders that you can use on the Scoreboard: 1. `%tntrun_team1_remaining%` through `%tntrun_team4_remaining%` - Returns the number of players still alive on that team slot. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that TnT Run has. | Placeholders | Description | | -------------------------------------- | ------------------------------------------ | | %phoenixduels_tntrun_team1_remaining% | Returns the players remaining on team 1. | | %phoenixduels_tntrun_team2_remaining% | Returns the players remaining on team 2. | | %phoenixduels_tntrun_team3_remaining% | Returns the players remaining on team 3. | | %phoenixduels_tntrun_team4_remaining% | Returns the players remaining on team 4. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/tnt-run --- # 🧨 TNT Tag ## Information The TNT Tag add-on hands live TNT to one or more players at the start of every round. Whoever is holding it when the fuse runs out is blown up, and the survivors go again with a fresh fuse. Hitting another player passes the TNT on. This add-on requires PhoenixDuels Premium. ### 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 TNT Tag as a [gamemode rule](../main-features/create-a-mode/#gamemode-rules-30) to the plugin, and generates the following file: * `PhoenixDuels/translations/tnttag.translations.en.yml` - The translation file for the add-on. ### Create a Gamemode Create a gamemode dedicated for TNT Tag. ### Select Rule Select the Generated rule `TNT Tag` and any other rule you might want. ### Create a Map Create a map dedicated for this ruleset. An open platform over the void works best, since falling out is the other way to lose. ### Whitelist Gamemode Select the TNT Tag gamemode as the only allowed mode for that map, and you are all set! > **Info:** This add-on supports [Folia](../first-installation.md#version-support), which is still experimental. ## How it Plays Combat damage is disabled entirely while the rule is active — players cannot kill each other by hitting. The only two ways out of a round are holding the TNT when it detonates, or falling below the battle region. 1. When the round starts, the configured number of players is picked at random and given the TNT. It sits on their head and, if enabled, makes them glow. 2. A tagged player passes the TNT by hitting an untagged player on another team. The hit deals no damage — it only moves the bomb. 3. The freshly tagged player cannot be tagged back until the pass cooldown expires, so the TNT cannot bounce between the same two players. 4. When the fuse hits zero, every holder is eliminated. If two or more players are still alive, the fuse resets and the TNT is handed out again. > **Info:** If a tagged player is eliminated some other way — falling out of the arena, disconnecting — the TNT is passed to a random survivor instead of disappearing with them. ## Match Settings The TNT Tag rule's settings let you configure: * **Fuse Time** - how many seconds the TNT burns before it explodes. * **Tagged Players** - how many players are given the TNT each round. Always capped at one below the number of players alive, so somebody is always safe. * **Pass Cooldown** - how many seconds must pass before a player who was just tagged can be tagged again. * **Glowing** - whether players holding the TNT glow for everyone else. Requires 1.9 or newer. * **Action Bar** - toggles the countdown action bar. * **Action Bar Format** - the countdown text, using `%time%` for the seconds left and `%tagged%` for who is holding it. <figure><img src="../.gitbook/assets/add-ons/tnt-tag/fuse-time.png" alt="" width="563"><figcaption><p>TNT Tag Rule (Fuse Time)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/tnt-tag/tagged-players.png" alt="" width="563"><figcaption><p>TNT Tag Rule (Tagged Players)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/tnt-tag/pass-cooldown.png" alt="" width="563"><figcaption><p>TNT Tag Rule (Pass Cooldown)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/tnt-tag/glowing.png" alt="" width="563"><figcaption><p>TNT Tag Rule (Glowing)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/tnt-tag/action-bar.png" alt="" width="563"><figcaption><p>TNT Tag Rule (Action Bar)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/tnt-tag/action-bar-format.png" alt="" width="563"><figcaption><p>TNT Tag Rule (Action Bar Format)</p></figcaption></figure> ## Placeholders The TNT Tag add-on adds the following placeholders that you can use on the Scoreboard: 1. `%tnttag_time_remaining%` - Returns the seconds left on the fuse. 2. `%tnttag_tagged%` - Returns how many players are currently holding the TNT. 3. `%tnttag_team1_remaining%` through `%tnttag_team4_remaining%` - Returns the number of players still alive on that team slot. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that TNT Tag has. | Placeholders | Description | | ------------------------------------------ | ------------------------------------------------- | | %phoenixduels_tnttag_time_remaining% | Returns the seconds left on the fuse. | | %phoenixduels_tnttag_tagged% | Returns how many players hold the TNT. | | %phoenixduels_tnttag_is_tagged% | Returns whether the player is holding the TNT. | | %phoenixduels_tnttag_team1_remaining% | Returns the players remaining on team 1. | | %phoenixduels_tnttag_team2_remaining% | Returns the players remaining on team 2. | | %phoenixduels_tnttag_team3_remaining% | Returns the players remaining on team 3. | | %phoenixduels_tnttag_team4_remaining% | Returns the players remaining on team 4. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/tnt-tag --- # 🧶 Wool Wars ## Information The Wool Wars add-on turns a platform in the middle of your arena into the objective. Both teams get endless wool in their own color and race to cover the platform with it, breaking each other's wool along the way. First team to own enough of it wins the round. This add-on requires PhoenixDuels Premium. ### 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 Wool Wars as a [gamemode rule](../main-features/create-a-mode/#gamemode-rules-30) to the plugin, and generates the following file: * `PhoenixDuels/translations/woolwars.translations.en.yml` - The translation file for the add-on. ### Create a Gamemode Create a gamemode dedicated for Wool Wars. ### Select Rule Select the Generated rule `Wool Wars` and any other rule you might want. ### Build the Platform Build the objective out of the platform block — white wool by default — inside the arena's battle region. Every block of that type becomes a claimable slot. ### Create a Map Create a map dedicated for this ruleset, and make sure Regeneration is enabled so the platform resets between matches. > **Info:** This add-on supports [Folia](../first-installation.md#version-support), which is still experimental. ## The Platform When a round starts, the battle region is scanned and every block matching the platform material is registered as a claimable slot. Those slots are the only place in the arena where players can build. * Placing wool on an empty slot claims it for your team, in your team's color. * Breaking a neutral or enemy block on a slot frees it again. * You cannot break your own team's wool, and you cannot build anywhere outside the platform. * The platform is locked during the countdown and after the round ends, so no block can be broken or placed early or late. Each team's share is tracked live, and the round ends the moment one team's share reaches the claim goal. > **Warning:** The platform scan walks the whole battle region block by block. Regions above roughly half a million blocks are skipped with a warning in chat rather than scanned — keep the battle region tight around the arena. ## Team Colors Wool is handed out in a color matched to each team, so the platform reads at a glance: <table data-full-width="true"><thead><tr><th width="240">Team</th><th>Wool</th></tr></thead><tbody><tr><td>Red</td><td>Red Wool</td></tr><tr><td>Dark Red</td><td>Brown Wool</td></tr><tr><td>Blue</td><td>Blue Wool</td></tr><tr><td>Dark Blue</td><td>Blue Terracotta</td></tr><tr><td>Green</td><td>Lime Wool</td></tr><tr><td>Dark Green</td><td>Green Wool</td></tr><tr><td>Aqua</td><td>Light Blue Wool</td></tr><tr><td>Dark Aqua</td><td>Cyan Wool</td></tr><tr><td>Purple</td><td>Purple Wool</td></tr><tr><td>Dark Purple</td><td>Magenta Wool</td></tr><tr><td>Gray</td><td>Light Gray Wool</td></tr><tr><td>Dark Gray</td><td>Gray Wool</td></tr><tr><td>Yellow, Orange, Pink, White, Black</td><td>The matching wool color</td></tr></tbody></table> Players are handed wool when the round starts and again when they respawn, and their stack is topped back up whenever it runs low, so they never have to think about ammo. ## Match Settings The Wool Wars rule's settings let you configure: * **Platform Block** - which block makes up the platform. Defaults to `WHITE_WOOL`. Any block name works, so a stone or clay platform is equally valid. * **Claim Goal** - what percentage of the platform a team must own to win the round. Defaults to `60`. * **Respawn Time** - how many seconds players wait before respawning. Set to `0` to respawn immediately. * **Wool Amount** - how much wool players are handed, and topped back up to. * **Action Bar** - toggles an action bar showing how much of the platform each team owns. * **Action Bar Format** - the action bar text, using `%teams%` and `%goal%`. <figure><img src="../.gitbook/assets/add-ons/wool-wars/platform-block.png" alt="" width="563"><figcaption><p>Wool Wars Rule (Platform Block)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/wool-wars/claim-goal.png" alt="" width="563"><figcaption><p>Wool Wars Rule (Claim Goal)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/wool-wars/respawn-time.png" alt="" width="563"><figcaption><p>Wool Wars Rule (Respawn Time)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/wool-wars/wool-amount.png" alt="" width="563"><figcaption><p>Wool Wars Rule (Wool Amount)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/wool-wars/action-bar.png" alt="" width="563"><figcaption><p>Wool Wars Rule (Action Bar)</p></figcaption></figure> <figure><img src="../.gitbook/assets/add-ons/wool-wars/action-bar-format.png" alt="" width="563"><figcaption><p>Wool Wars Rule (Action Bar Format)</p></figcaption></figure> ## Placeholders The Wool Wars add-on adds the following placeholders that you can use on the Scoreboard: 1. `%woolwars_claimed%` - Returns how many slots your team owns. 2. `%woolwars_percent%` - Returns your team's share of the platform, as a percentage. 3. `%woolwars_platform_size%` - Returns how many slots the platform has in total. 4. `%woolwars_goal%` - Returns the claim goal percentage. 5. `%woolwars_team1_claimed%` through `%woolwars_team4_claimed%` - Returns that team slot's owned blocks. 6. `%woolwars_team1_percent%` through `%woolwars_team4_percent%` - Returns that team slot's share. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that Wool Wars has. | Placeholders | Description | | -------------------------------------------- | ------------------------------------------- | | %phoenixduels_woolwars_team1_claimed% | Returns the blocks owned by team 1. | | %phoenixduels_woolwars_team2_claimed% | Returns the blocks owned by team 2. | | %phoenixduels_woolwars_team3_claimed% | Returns the blocks owned by team 3. | | %phoenixduels_woolwars_team4_claimed% | Returns the blocks owned by team 4. | | %phoenixduels_woolwars_team1_percent% | Returns team 1's share of the platform. | | %phoenixduels_woolwars_team2_percent% | Returns team 2's share of the platform. | | %phoenixduels_woolwars_team3_percent% | Returns team 3's share of the platform. | | %phoenixduels_woolwars_team4_percent% | Returns team 4's share of the platform. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/wool-wars --- # 🌐 API > **Danger:** The API is only available for the premium version of the plugin. Build your own extensions for Phoenix Duels with our public API. ## Maven Repository ```xml <repositories> <repository> <id>phoenixplugins</id> <url>https://repo.phoenixplugins.com/</url> </repository> </repositories> ``` ## Dependency ```xml <dependency> <groupId>com.phoenixplugins.phoenixduels</groupId> <artifactId>api</artifactId> <version>1.0.0-SNAPSHOT</version> </dependency> ``` ## Advanced Access (Internal Classes) Our public API covers the recommended integration points for addons. If you need deeper access to internal classes and systems, we recommend using a direct `systemPath` dependency to your local Phoenix Duels plugin JAR. ```xml <dependency> <groupId>com.phoenixplugins.phoenixduels</groupId> <artifactId>internal</artifactId> <version>1.0.0-SNAPSHOT</version> <scope>system</scope> <systemPath>${project.basedir}/libs/PhoenixDuels-1.0.0-SNAPSHOT.jar</systemPath> </dependency> ``` Place the plugin JAR in your project's `libs` folder before building. By using internal access through `systemPath`, you can work with plugin registries that are not part of the public API, such as: * `MenuRegistry`: register custom menus and menu configurations. * `CommandsRegistry`: register custom commands. * `RuleRegistry`: register custom gamemode rules. * `LoadoutRegistry`: register custom loadout types. * `EditorRegistry`: register custom editor sections. > **Warning:** Internal classes can change between versions without API compatibility guarantees. When possible, prefer public API integrations first. ## Custom Addons Custom Addons are extensions that allow you to extend, modify, or enhance Phoenix Duels behavior with your own Java code. ### Before You Start 1. Add the API [dependency](#dependency). 2. Create your addon project (Maven or Gradle). 3. Make sure your final artifact is a shaded or standalone JAR when needed. ### addon.yml Create an `addon.yml` file in your project resources folder. ```yaml name: AddonName main: your.path.AddonExample author: [YourName] version: 1.0.0 description: Small description (optional) website: https://your-website.com (optional) ``` Required fields: * `name`: Display name of your addon. * `main`: Fully qualified path to your addon main class. * `author`: One or more addon authors. * `version`: Addon version. ### Main Class Example The `main` value in `addon.yml` must point to your class that extends `Addon`. ```java package your.path; import com.phoenixplugins.phoenixduels.api.sdk.plugin.addons.Addon; public class AddonExample extends Addon { @Override public void init() { // Register rules, menus, modules, or listeners. } @Override public void load() { // Runtime registrations and startup logic. } @Override public void unload() { // Cleanup logic. } @Override public void reload() { // Optional runtime reload logic. } @Override public String getRequiredPluginVersion() { return "1.0.0"; } } ``` ### Build and Install 1. Build your addon JAR with your normal project build command. 2. Move the compiled JAR into `plugins/PhoenixDuels/addons`. 3. Restart the server. 4. Check console logs to confirm the addon was loaded successfully. ### Next Step Continue with [🧪 Examples](examples.md) for practical event and profile integrations. Source: https://www.phoenixplugins.com/docs/phoenix-duels/api --- # 🔧 Custom Addons > **Danger:** The API is only available for the premium version of the plugin. Custom Addons are extensions that allow you to extend, modify, or enhance Phoenix Duels behavior with your own Java code. ## Before You Start 1. Add the API dependency from the [API page](README.md). 2. Create your addon project (Maven or Gradle). 3. Make sure your final artifact is a shaded or standalone JAR when needed. ## addon.yml Create an `addon.yml` file in your project resources folder. ```yaml name: AddonName main: your.path.AddonExample author: [YourName] version: 1.0.0 description: Small description (optional) website: https://your-website.com (optional) ``` Required fields: * `name`: Display name of your addon. * `main`: Fully qualified path to your addon main class. * `author`: One or more addon authors. * `version`: Addon version. ## Main Class Example The `main` value in `addon.yml` must point to your class that extends `Addon`. ```java package your.path; import com.phoenixplugins.phoenixduels.api.sdk.plugin.addons.Addon; public class AddonExample extends Addon { @Override public void init() { // Register rules, menus, modules, or listeners. } @Override public void load() { // Runtime registrations and startup logic. } @Override public void unload() { // Cleanup logic. } @Override public void reload() { // Optional runtime reload logic. } @Override public String getRequiredPluginVersion() { return "1.0.0"; } } ``` ## Build and Install 1. Build your addon JAR with your normal project build command. 2. Move the compiled JAR into `plugins/PhoenixDuels/addons`. 3. Restart the server. 4. Check console logs to confirm the addon was loaded successfully. ## Next Step Continue with [🧪 Examples](examples.md) for practical event and profile integrations. Source: https://www.phoenixplugins.com/docs/phoenix-duels/api/custom-addons --- # 📡 Events ## Events Every event below lives under `com.phoenixplugins.phoenixduels.api.events` and is listened to like any other Bukkit event. See [Examples](examples.md) for working listeners. > **Danger:** The API is only available for the premium version of the plugin. ## Match Lifecycle These fire in the order they are listed. Every one of them extends `MatchEvent` and exposes `getMatch()`. <table data-full-width="true"><thead><tr><th width="250">Event</th><th width="110">Cancellable</th><th>Fired when</th></tr></thead><tbody><tr><td>MatchCreateEvent</td><td>Yes</td><td>A match object has been built but no players have been moved yet. Cancelling stops the match from ever running.</td></tr><tr><td>MatchPreStartEvent</td><td>Yes</td><td>Just before players are teleported in, while every start requirement is being checked. See the note below on cancelling with a reason.</td></tr><tr><td>MatchStartEvent</td><td>Yes</td><td>The match is about to begin.</td></tr><tr><td>MatchPhaseStartEvent</td><td>No</td><td>The match moves from one state to another. Exposes <code>getOldState()</code> and <code>getNewState()</code>.</td></tr><tr><td>MatchPreEndEvent</td><td>No</td><td>The match has been decided but has not been cleaned up yet, so match data is still readable.</td></tr><tr><td>MatchEndEvent</td><td>No</td><td>The match is over. <code>getConnectedPlayers()</code> returns everyone still online at that point.</td></tr></tbody></table> `MatchPhaseStartEvent` reports one of six states: `NOT_STARTED`, `ROUND_START`, `ROUND_IN_PROGRESS`, `POST_ROUND`, `ROUND_END` and `FINISHED`. > **Info:** `MatchPreStartEvent` also has `setCancelledReason(String)`. Using it instead of `setCancelled(true)` cancels the match **and** shows your own message to the players, which is how the CombatLogX hook explains that someone is in combat. ## Players in a Match These extend `MatchPlayerEvent`, so they expose both `getMatch()` and `getPlayer()`. None of them are cancellable. <table data-full-width="true"><thead><tr><th width="270">Event</th><th>Fired when</th></tr></thead><tbody><tr><td>MatchPlayerKillEvent</td><td>A player kills someone. <code>getVictim()</code> returns who died.</td></tr><tr><td>MatchPlayerDeathEvent</td><td>A player dies. <code>getKiller()</code> may be null. <code>setDeathMessage(String[])</code> replaces the broadcast with your own text.</td></tr><tr><td>MatchPlayerLeaveEvent</td><td>A player leaves the match. <code>isGuest()</code> tells you whether they were a spectator rather than a participant.</td></tr><tr><td>MatchSpectatorJoinEvent</td><td>Someone starts spectating the match.</td></tr><tr><td>MatchSpectatorLeaveEvent</td><td>Someone stops spectating the match.</td></tr></tbody></table> ## Elo <table data-full-width="true"><thead><tr><th width="290">Event</th><th>Fired when</th></tr></thead><tbody><tr><td>MatchPlayerChangeEloEvent</td><td>A match changes a player's rating in one mode. Exposes <code>getPlayer()</code>, <code>getOldElo()</code>, <code>getNewElo()</code> and <code>getMatch()</code>.</td></tr><tr><td>PlayerGlobalEloChangeEvent</td><td>A player's <a href="../features/elo.md">global elo</a> changes, including through the admin commands. Exposes <code>getPlayer()</code>, <code>getOldElo()</code> and <code>getNewElo()</code>.</td></tr></tbody></table> Both give you an `OfflinePlayer`, because a rating can change while the player is not connected. ## Queue <table data-full-width="true"><thead><tr><th width="290">Event</th><th>Fired when</th></tr></thead><tbody><tr><td>ProfileQueueStartEvent</td><td>A player or party enters the matchmaking queue.</td></tr><tr><td>ProfileQueueStopEvent</td><td>A player or party leaves it, whether by finding a match or by cancelling.</td></tr></tbody></table> Both expose `getProfile()` for what was queued for, and `getParticipants()` for who queued. Neither is cancellable. ## Party These extend `PartyEvent` and expose `getParty()`. None of them are cancellable. <table data-full-width="true"><thead><tr><th width="310">Event</th><th>Fired when</th></tr></thead><tbody><tr><td>PartyCreatedEvent</td><td>A party is created.</td></tr><tr><td>PartyDisbandEvent</td><td>A party is disbanded. Carries the list of participants it had.</td></tr><tr><td>PartyParticipantAddedEvent</td><td>A participant joins the party. Exposes <code>getParticipant()</code>.</td></tr><tr><td>PartyParticipantAcceptedEvent</td><td>A participant accepts their invitation. Exposes <code>getParticipant()</code>.</td></tr><tr><td>PartyParticipantRemovedEvent</td><td>A participant leaves or is kicked. Exposes <code>getParticipant()</code>.</td></tr><tr><td>PartyLeaderChangedEvent</td><td>Leadership passes to someone else. Exposes <code>getOldLeaderUniqueId()</code> and <code>getNewLeaderUniqueId()</code>.</td></tr></tbody></table> ## Add-ons <table data-full-width="true"><thead><tr><th width="250">Event</th><th>Fired when</th></tr></thead><tbody><tr><td>RematchWindowEvent</td><td>A rematch window opens for a player at the end of a match. Exposes <code>getPlayer()</code> and <code>getDurationSeconds()</code>. Requires the <a href="../add-ons/rematch-requeue/README.md">Rematch & Requeue</a> add-on.</td></tr></tbody></table> ## Cancellable events Only three events can be cancelled, and all three cancel a match before it runs: MatchCreateEvent, MatchPreStartEvent and MatchStartEvent. There is deliberately no way to cancel a kill, a death, or a player leaving. If you need to stop something during a fight, write a [custom rule](README.md#custom-addons) instead. Source: https://www.phoenixplugins.com/docs/phoenix-duels/api/events --- # 🧪 Examples > **Danger:** These examples target the public API package (`com.phoenixplugins.phoenixduels.api.*`). ## 1) Track match start and phase transitions ```java import com.phoenixplugins.phoenixduels.api.events.MatchPhaseStartEvent; import com.phoenixplugins.phoenixduels.api.events.MatchStartEvent; import com.phoenixplugins.phoenixduels.api.match.MatchState; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; public final class MatchLifecycleListener implements Listener { @EventHandler public void onStart(MatchStartEvent event) { if (event.getMatch().getTeamsPlayers().isEmpty()) { event.setCancelled(true); } } @EventHandler public void onPhase(MatchPhaseStartEvent event) { if (event.getNewState() == MatchState.ROUND_IN_PROGRESS) { // Start your per-round metrics. } } } ``` ## 2) Capture kills and deaths ```java import com.phoenixplugins.phoenixduels.api.events.MatchPlayerDeathEvent; import com.phoenixplugins.phoenixduels.api.events.MatchPlayerKillEvent; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; public final class CombatStatsListener implements Listener { @EventHandler public void onDeath(MatchPlayerDeathEvent event) { // event.getPlayer() died, event.getKiller() can be null. } @EventHandler public void onKill(MatchPlayerKillEvent event) { // Track kill streaks or challenge progress here. } } ``` ## 3) Observe queue entry and exit ```java import com.phoenixplugins.phoenixduels.api.events.queue.ProfileQueueStartEvent; import com.phoenixplugins.phoenixduels.api.events.queue.ProfileQueueStopEvent; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; public final class QueueMetricsListener implements Listener { @EventHandler public void onQueueStart(ProfileQueueStartEvent event) { int participants = event.getParticipants().size(); String modeId = event.getProfile().getSelectedModeId(); } @EventHandler public void onQueueStop(ProfileQueueStopEvent event) { // Store queue duration and stop reason in your analytics. } } ``` ## 4) React to global ELO changes ```java import com.phoenixplugins.phoenixduels.api.events.PlayerGlobalEloChangeEvent; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; public final class EloChangeListener implements Listener { @EventHandler public void onGlobalElo(PlayerGlobalEloChangeEvent event) { int delta = event.getNewElo() - event.getOldElo(); if (delta >= 50) { // Trigger your own reward or announcement pipeline. } } } ``` ## 5) Handle party lifecycle events ```java import com.phoenixplugins.phoenixduels.api.events.party.PartyCreatedEvent; import com.phoenixplugins.phoenixduels.api.events.party.PartyLeaderChangedEvent; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; public final class PartyListener implements Listener { @EventHandler public void onPartyCreated(PartyCreatedEvent event) { int slots = event.getParty().getMaximumSlots(); } @EventHandler public void onLeaderChanged(PartyLeaderChangedEvent event) { // Sync your own group service with the new party leader. } } ``` ## 6) Read match player state safely ```java import com.phoenixplugins.phoenixduels.api.events.MatchStartEvent; import com.phoenixplugins.phoenixduels.api.match.players.MatchPlayer; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; public final class MatchRosterListener implements Listener { @EventHandler public void onMatchStart(MatchStartEvent event) { for (MatchPlayer player : event.getMatch().getTeamsPlayers()) { if (player.isDisconnected()) { continue; } String name = player.getName(); int kills = player.getKills(); int deaths = player.getDeaths(); } } } ``` ## 7) Use profile data from queue events ```java import com.phoenixplugins.phoenixduels.api.events.queue.ProfileQueueStartEvent; import com.phoenixplugins.phoenixduels.api.profiles.MatchProfile; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; public final class ProfileAuditListener implements Listener { @EventHandler public void onQueued(ProfileQueueStartEvent event) { MatchProfile profile = event.getProfile(); boolean hasPending = profile.containsPendingParticipants(); boolean hasOffline = profile.containsOfflineParticipants(); if (hasPending || hasOffline) { profile.sendMessage("Your group is not fully ready yet."); } } } ``` ## 8) Register your listener through plugin entrypoint ```java import com.phoenixplugins.phoenixduels.api.PhoenixDuelsAPI; import org.bukkit.event.Listener; public final class ListenerBootstrap { public void register(Listener listener) { PhoenixDuelsAPI.getPluginInstance().getEventBus().registerListener(listener); } } ``` ## 9) Internal systemPath: register menus, commands, and rules When you include the plugin JAR via `systemPath`, you can access internal registries. Because you are depending on the built plugin JAR, use the shaded package names exposed by that JAR. ```java import com.phoenixplugins.phoenixduels.lib.xseries.XMaterial; import com.phoenixplugins.phoenixduels.registry.CommandsRegistry; import com.phoenixplugins.phoenixduels.registry.MenuRegistry; import com.phoenixplugins.phoenixduels.registry.RuleRegistry; import com.phoenixplugins.phoenixduels.internal.Key; import com.phoenixplugins.phoenixduels.sdk.platforms.server.commands.ServerCommand; import com.phoenixplugins.phoenixduels.sdk.platforms.server.commands.ServerCommandManager; import java.util.Collections; public final class InternalBootstrap { public void load() throws Exception { MenuRegistry.getInstance().registerMenu( "my_custom_menu", new MyCustomMenu.MyCustomMenuConfiguration(), "menus/custom/my_custom_menu.yml", MyCustomMenu::new ); CommandsRegistry.registerCommand(new ServerCommand("mymode") { @Override public boolean execute(ServerCommandManager manager, org.bukkit.command.CommandSender sender, String label, String[] args) { sender.sendMessage("Custom command executed."); return true; } }, true); RuleRegistry.registerRule(Key.of("MY_CUSTOM_RULE"), MyCustomRule::new, new RuleRegistry.RuleDetails(XMaterial.BLAZE_ROD, "My Custom Rule", Collections.singletonList("Example custom rule registered from addon."))); } } ``` This internal path is powerful but version-sensitive, so lock your plugin version and retest after updates. ## What is not supported by API-only integrations * Do not cast API interfaces (`Match`, `MatchProfile`, `Party`) to internal implementation classes. * Do not depend on internal registries or core-only packages as your primary integration path. * Do not mutate internal state by reflection; rely on events and documented API methods. * Do not run heavy blocking logic in event handlers during match or queue events. Source: https://www.phoenixplugins.com/docs/phoenix-duels/api/examples --- # 🗃️ Configuration Files ## Configurations <table data-full-width="true"><thead><tr><th width="270">File</th><th>What it holds</th></tr></thead><tbody><tr><td><a href="main-configuration.md">config.yml</a></td><td>The server-wide settings: database, worlds, match rules, party, betting, commands and performance.</td></tr><tr><td><a href="map-configuration.md">maps/*.yml</a></td><td>One file per map, holding its regions, spawns, arenas and regeneration settings.</td></tr><tr><td><a href="mode-configuration.md">modes/*.yml</a></td><td>One file per mode, holding its loadout, rules, rounds, scoreboard and commands.</td></tr><tr><td><a href="#feature-toggles">feature_toggles.yml</a></td><td>Switches for individual plugin behaviours such as the countdown freeze or arena knockback.</td></tr><tr><td><a href="#templates">templates.yml</a></td><td>The default scoreboard that new modes are created from.</td></tr><tr><td><a href="#spectator-hotbar">spectator_hotbar.yml</a></td><td>The items a player is given while spectating a match.</td></tr><tr><td><a href="../../features/elo.md">elo.yml</a></td><td>The elo settings.</td></tr><tr><td><a href="../customize-sounds.md">sounds.yml</a></td><td>Every sound the plugin plays.</td></tr><tr><td><a href="../customize-menus.md">menus/*.yml</a></td><td>One file per menu.</td></tr><tr><td>kits/*.yml</td><td>One file per premade kit.</td></tr><tr><td><a href="../../features/statistics.md">replay.yml</a></td><td>Match replay recording. Premium</td></tr><tr><td><a href="../../features/discord-match-log.md">discord.yml</a></td><td>Discord match result webhooks. Premium</td></tr><tr><td><a href="../languages.md">translations/*.yml</a></td><td>Every message the plugin sends, per language.</td></tr><tr><td>cache.yml</td><td>Written by the plugin, holding things such as the lobby spawn point. Not meant to be edited by hand.</td></tr></tbody></table> > **Info:** After editing any of these by hand, run /pduels reload. If you only touched a menu file, /pduels reload menus is much quicker and safer on a live server. ## Feature Toggles `feature_toggles.yml` switches off individual behaviours of the plugin that most servers want, but some do not. Every option is a **disable** switch, so `false` means the behaviour stays on, which is the default for all of them. The same options are available in the editor, under Settings > Feature Toggling. ```yaml disable-player-freeze: false disable-leather-armor-coloring: false disable-vanilla-stat-tracking: false disable-invitations-in-match: false disable-arena-knockback: false ``` ### Player Freeze Players are normally frozen in place during the pre-fight countdown so neither side can reposition before the fight starts. Set `disable-player-freeze` to true to let them move freely while the countdown runs. ### Leather Armor Coloring Leather armor handed out by a kit is normally dyed to match the team colour, so teams are easy to tell apart. Set `disable-leather-armor-coloring` to true to keep the armor exactly as the kit defines it. ### Vanilla Stat Tracking Kills and deaths inside a duel normally count toward the player's vanilla Minecraft statistics as well as the plugin's own. Set `disable-vanilla-stat-tracking` to true to keep duels out of the vanilla statistics screen and out of anything else reading them, such as an advancement or a scoreboard objective. ### Invitations in Match Set `disable-invitations-in-match` to true to stop players receiving duel invitations while they are already fighting, so a pop-up never lands mid-fight. ### Arena Border Knockback Players who reach the edge of the battle region are normally pushed back in, which keeps a fight inside the arena without walls. Set `disable-arena-knockback` to true to remove that push. Do this only if your arena is physically enclosed, otherwise players can walk out of the fight. ## Templates `templates.yml` holds the **default match scoreboard**: the animated header and the lines that every newly created mode starts with. It is a template, not a live setting. Changing it does not touch modes that already exist, because each mode keeps its own copy of the scoreboard in its own file. Edit this file to change what the *next* mode you create will look like, and edit the mode itself to change one that already exists. ```yaml scoreboard: header-frames: - '&5&lPHOENIX DUELS' - '&d&lP&5&lHOENIX DUELS' - '&d&lPH&5&lOENIX DUELS' lines: - '' - '&7⌚ &fTime Left: &7%time_left%' - '' - '&f%opponents%' - '' - '&a🪓 &fMode: &a%mode%' - '&2🕹 &fMap: &2%map%' - '' - ' &dwww.phoenixplugins.com ' ``` ### Header Frames `scoreboard.header-frames` is a list of titles played one after another, one frame per tick, looping back to the start when it runs out. The default list spells out an animated shimmer across the words by shifting which letters are the lighter colour, and pads the end with repeated identical frames to hold the title still between shimmers. For a static title, use a single frame. ### Lines `scoreboard.lines` is the body of the scoreboard, top to bottom. An empty string leaves a blank line. Every [internal placeholder](../../plugins/placeholders.md) works here, as does any PlaceholderAPI placeholder installed on your server. ### Editing an existing mode To change the scoreboard of a mode that already exists, edit that mode instead, either from Editor > Edit Modes > Mode > Scoreboard or in its file under `modes/`. The default scoreboard can also be edited from Settings in the editor. > **Info:** If you edit a scoreboard and nothing changes in game, you are almost certainly editing this template rather than the mode that is actually being played. ## Spectator Hotbar `spectator_hotbar.yml` defines the items a player is given while they are [spectating a match](../../features/spectator.md). Their real inventory is saved beforehand and given back the moment they stop spectating. ```yaml leave-item: slot: 4 material: BARRIER custom-model-data: 0 display-name: '&cLeave' lore: - '&7Click here to leave this game.' - '' - '&7Or do /leave.' actions: [] items: {} ``` ### Leave Item `leave-item` is handled by the plugin itself: clicking it removes the player from the match they are watching, whatever else you configure on it. You can change its slot, material, name and lore freely, but its behaviour is fixed. To remove it entirely, set its slot to a value outside the hotbar, such as `-1`. ### Custom Items Everything under `items` is yours. Each entry is a normal item definition with an `actions` list, using the same [action types](../../plugins/action-types.md) as any menu item, and runs those actions when the spectator clicks it. ```yaml items: players: slot: 0 material: PLAYER_HEAD display-name: '&aPlayers' lore: - '&7Jump between the players of this match.' actions: - '[MENU] spectator_players' back-to-lobby: slot: 8 material: RED_DYE display-name: '&cBack to Lobby' actions: - '[COMMAND] player;leave' ``` Slots run from `0` on the far left of the hotbar to `8` on the far right. Anything outside that range is ignored, so the item simply never appears. > **Info:** The `spectator_players` menu used above is a built-in menu that lists everyone in the match being watched, so a spectator can jump straight to a specific player. Source: https://www.phoenixplugins.com/docs/phoenix-duels/configurations/configuration-files --- # 📁 Feature Toggles ## Feature Toggles `feature_toggles.yml` switches off individual behaviours of the plugin that most servers want, but some do not. Every option is a **disable** switch, so `false` means the behaviour stays on, which is the default for all of them. The same options are available in the editor, under Settings > Feature Toggling. ```yaml disable-player-freeze: false disable-leather-armor-coloring: false disable-vanilla-stat-tracking: false disable-invitations-in-match: false disable-arena-knockback: false ``` ## Player Freeze Players are normally frozen in place during the pre-fight countdown so neither side can reposition before the fight starts. Set `disable-player-freeze` to true to let them move freely while the countdown runs. ## Leather Armor Coloring Leather armor handed out by a kit is normally dyed to match the team colour, so teams are easy to tell apart. Set `disable-leather-armor-coloring` to true to keep the armor exactly as the kit defines it. ## Vanilla Stat Tracking Kills and deaths inside a duel normally count toward the player's vanilla Minecraft statistics as well as the plugin's own. Set `disable-vanilla-stat-tracking` to true to keep duels out of the vanilla statistics screen and out of anything else reading them, such as an advancement or a scoreboard objective. ## Invitations in Match Set `disable-invitations-in-match` to true to stop players receiving duel invitations while they are already fighting, so a pop-up never lands mid-fight. ## Arena Border Knockback Players who reach the edge of the battle region are normally pushed back in, which keeps a fight inside the arena without walls. Set `disable-arena-knockback` to true to remove that push. Do this only if your arena is physically enclosed, otherwise players can walk out of the fight. Source: https://www.phoenixplugins.com/docs/phoenix-duels/configurations/configuration-files/feature-toggles --- # 📁 Main Configuration ## Main Configuration `config.yml` holds the server-wide settings. Almost everything here is also editable in game from /pduels editor > Settings, which is the safer route on a live server; this page is for when you would rather edit the file directly. Run /pduels reload after editing, or /pduels reload menus if you only touched menu files. > **Warning:** Leave `product-license` alone. It is written by the plugin and identifies your purchase. See [Licensing](../../plugins/licensing.md). ## General ```yaml notify-if-new-version: true send-server-statistics: true join-reminder: true language: EN_US debug: false ``` <table><thead><tr><th width="240">Option</th><th>Description</th></tr></thead><tbody><tr><td>notify-if-new-version</td><td>Tells players with <code>phoenixduels.admin</code> when a newer version is available, shortly after they join.</td></tr><tr><td>send-server-statistics</td><td>Lite only. Sends the server version, software, join domains and player count to our servers so the server shows on the website. See <a href="../../plugins/licensing.md#server-statistics">Server Statistics</a>.</td></tr><tr><td>join-reminder</td><td>Shows the Lite version's welcome message on join. Has no effect on Premium.</td></tr><tr><td>language</td><td>Which translation file the plugin loads. Lines missing from it fall back to English. See <a href="../languages.md">Languages & Translations</a>.</td></tr><tr><td>debug</td><td>Adds verbose logging to the console. Leave it off unless support asks for it.</td></tr></tbody></table> ## Database The available types are sqlite and mysql. SQLite needs no setup and is fine for a single server; MySQL is a Premium feature. ```yaml database: type: sqlite address: localhost name: phoenixduels_db port: 3306 username: phoenixuser password: phoenixpassword table-prefix: '' hikari: maximumPoolSize: 20 minimumIdle: 5 idleTimeout: 600000 maxLifetime: 1800000 connectionTimeout: 30000 fetch-timeout: 5000 ``` **table-prefix** is put in front of every table name. It is what lets two separate Phoenix Duels installations share one MySQL database without colliding. Set it before the first start, because changing it later makes the plugin create a fresh, empty set of tables and your existing data is left behind under the old names. The **hikari** block tunes the connection pool and only applies to MySQL. The defaults suit most servers. `maximumPoolSize` is the usual thing to raise on a large network, and `fetch-timeout` is how long a query may take before the plugin gives up on it. On MySQL and MariaDB the plugin creates its tables in the utf8mb4 character set, so names, lore and messages can hold emoji and any symbol. Tables made in another character set by an older version are converted once at startup, with one console line per table. If a table cannot be converted, a console warning names it. See [What tables does the plugin create in my database?](../../plugins/questions-and-answers/README.md#what-tables-does-the-plugin-create-in-my-database) for the tables that get created. ## Worlds Restricts the plugin to certain worlds, which is useful if you run Multiverse and only want duels in a dedicated world. ```yaml worlds: should-use: DISABLED_WORLDS enabled: [] disabled: - world_nether allow-challenges-from-disabled-worlds: false ``` Valid options for `should-use` are ENABLED\_WORLDS and DISABLED\_WORLDS. With `ENABLED_WORLDS`, only the worlds in the `enabled` list are used and everything else is ignored. With `DISABLED_WORLDS`, every world is used except the ones in `disabled`. `allow-challenges-from-disabled-worlds` (Premium, off by default) lets players in a filtered-out world still send and accept duels, challenge parties and join queues. They are taken to the arena when the match starts and brought back to where they were afterwards. Lobby items and the lobby scoreboard stay off in those worlds either way. You can also change it with **Allow Challenges From Disabled Worlds** in `/pd editor` → Settings → Plugin → Worlds. ## Allowed Types Removes an entire category of play. To run a ranked-only server, leave `RANKED` as the only entry. ```yaml allowed-types: - CHALLENGE - UNRANKED - RANKED ``` ## Match Every option below is documented in detail, with screenshots, on the [Match Settings](../../features/settings/match/README.md) page. The keys are listed here for editing the file directly. ```yaml match: default-finishing-seconds: 5 extended-finishing-seconds: 60 maximum-allowed-rounds: 10 rounds-format: FIRST_TO restore-last-inventory: true require-empty-inventory: false launch-fireworks-for-winner: true spectator-engine: DEFAULT tablist-scoping-enabled: true spectator-tablist-prefix: '&e[S] ' prevent-same-ip-ranked: false sneak-to-ready: false save-countdown-kit-layout: true queue-match-found: enabled: false delay-seconds: 2 sound: ENTITY_PLAYER_LEVELUP;1.0;1.0 prevent-party-queueing: false floor-kill: true reconnect: enabled: true window-seconds: 60 combat-log-seconds: 5 max-per-match: 1 ``` <table><thead><tr><th width="290">Option</th><th>Description</th></tr></thead><tbody><tr><td>default-finishing-seconds</td><td>How long players stay in the arena after a match ends.</td></tr><tr><td>extended-finishing-seconds</td><td>Used instead of the default when the ending needs more time on screen, such as a betting payout.</td></tr><tr><td>maximum-allowed-rounds</td><td>The highest rounds value a player may pick for a custom match.</td></tr><tr><td>rounds-format</td><td>FIRST_TO makes the rounds value the number of round wins needed to clinch the match. BEST_OF makes it the total number of rounds played, with the majority deciding the winner.</td></tr><tr><td>restore-last-inventory</td><td>Saves the player's inventory before a match and gives it back afterwards.</td></tr><tr><td>require-empty-inventory</td><td>Refuses a duel invitation unless the player's inventory is empty.</td></tr><tr><td>launch-fireworks-for-winner</td><td>Fires fireworks around the winner.</td></tr><tr><td>spectator-engine</td><td>DEFAULT uses real spectator gamemode. LEGACY keeps the player in survival as an invisible ghost. Lite is always LEGACY.</td></tr><tr><td>tablist-scoping-enabled</td><td>Limits the tab list of players in a match to that arena.</td></tr><tr><td>spectator-tablist-prefix</td><td>Shown before a spectator's name in the tab list.</td></tr><tr><td>prevent-same-ip-ranked</td><td>Stops ranked matchmaking pairing players who share an IP address.</td></tr><tr><td>sneak-to-ready</td><td>Ends the pre-fight countdown as soon as everyone has sneaked.</td></tr><tr><td>save-countdown-kit-layout</td><td>Saves the way a player rearranges a premade kit during the pre-fight countdown as their layout for that kit. Only for kits that allow custom layouts. Premium only, on by default.</td></tr><tr><td>queue-match-found</td><td>Shows a MATCH FOUND title and plays <code>sound</code> (written as <code>NAME;volume;pitch</code>) to players matched by the queue, then teleports them after <code>delay-seconds</code>. Queue matches only. Premium only, off by default.</td></tr><tr><td>prevent-party-queueing</td><td>Stops parties queueing for Unranked and Ranked.</td></tr><tr><td>floor-kill</td><td>Instantly eliminates a player who lands on the arena floor.</td></tr><tr><td>reconnect</td><td>Holds the spot of a player who disconnects during a round and pauses the round until they log back in. <code>window-seconds</code> is how long the round waits, <code>combat-log-seconds</code> denies the window to a player hit by another player that recently, and <code>max-per-match</code> caps how often one player can use it in a match. Not used in modes where players fight with their own inventory and drop it on death.</td></tr></tbody></table> ### Whitelist / Blacklist Commands Controls which commands players may run during a match. To block flying mid-duel, for example: ```yaml match: commands: mode: BLACKLIST whitelist-commands: [] blacklist-commands: - fly - heal ``` Valid options for `mode` are BLACKLIST and WHITELIST. Only the list matching the chosen mode is read. ### Nametags and Chat ```yaml match: custom-nametags: enabled: true prefix: '%color%[%team%] ' chat: enabled: true scope: TEAM format: '&8[&a&lArena&8] &e%player%&8: &f%message%' ``` `chat.scope` takes TEAM, where only teammates see the message, or ARENA, where everyone in the match does. See [Custom Nametags](../../features/settings/match/README.md#custom-nametags) and [Team Chat](../../features/settings/match/README.md#team-chat). ## Party ```yaml party: require-permission-to-create: false default-slots: 5 chat-format: '&7[Party] &f%player%&7: &f%message%' permission-slots: '0': amount: 10 permission: phoenixduels.partymembers.10 '1': amount: 15 permission: phoenixduels.partymembers.15 ``` Covered in full on the [Party](../../features/party/) page. ## Betting ```yaml betting: money-enabled: true items-enabled: true items-betting: max-items-per-player: 10 ``` Money betting requires Vault. See [Betting](../../features/betting.md). ## Ranked Restriction Keeps players out of Ranked until they have won a number of Unranked games. ```yaml ranked: unranked-requirement: enabled: false amount: 10 bypass-permission: phoenixduels.ranked.bypass ``` ## Matchmaking (Premium) ```yaml matchmaking: ping-ranges: - 50 - 100 - 150 - 200 ``` The steps players cycle through with the [Ping Range](../../features/player-settings.md#ping-range-premium) setting, in milliseconds. Unrestricted is always the first step and is not listed here. ## Invitations ```yaml invitation-expiration-time: 60 ``` How many seconds a duel or party invitation stays valid before it lapses. ## Performance ```yaml performance: internal-pool-size: 5 cache: use-memory-for-performance: true stats-update-interval: 60 leaderboard-fetch-interval: 60 regeneration: internal: blocks-per-cycle: 4096 max-chunks-per-cycle: 16 ``` <table><thead><tr><th width="300">Option</th><th>Description</th></tr></thead><tbody><tr><td>performance.internal-pool-size</td><td>How many threads the plugin uses for its background work, such as database reads.</td></tr><tr><td>cache.use-memory-for-performance</td><td>Caches components in memory instead of rebuilding them. Recommended, but you can turn it off on a very low-memory server.</td></tr><tr><td>stats-update-interval</td><td>Seconds between refreshes of cached player statistics.</td></tr><tr><td>leaderboard-fetch-interval</td><td>Seconds between leaderboard refreshes. Raise it if leaderboard queries are heavy; lower it if your holograms feel stale.</td></tr><tr><td>regeneration.internal.blocks-per-cycle</td><td>How many blocks the internal regeneration engine restores per tick. Lower this if regeneration causes lag spikes.</td></tr><tr><td>regeneration.internal.max-chunks-per-cycle</td><td>How many chunks it may touch per tick. Lower this alongside the option above.</td></tr></tbody></table> > **Info:** The two `regeneration.internal` values are the ones to change if [regeneration is causing lag](../../plugins/questions-and-answers/README.md#why-regeneration-causes-lag-to-my-server). Halving them makes regeneration slower but much smoother. ## Commands Every command can be disabled or renamed. See the [Commands](../../plugins/commands.md) page for the full table of keys and defaults. ```yaml commands: require-permission: false party: enabled: true alternative: match ``` ## Bedrock How Bedrock players joining through Geyser see the menus. See the [GeyserMC (Bedrock)](../geysermc-bedrock.md) page for every option. ## Other Files `config.yml` is not the only file. The plugin also writes: * [Map Configuration](map-configuration.md) and [Mode Configuration](mode-configuration.md) - one file per map and per mode. * [Feature Toggles](README.md#feature-toggles) - `feature_toggles.yml`. * [Templates](README.md#templates) - `templates.yml`, the default scoreboard. * [Spectator Hotbar](README.md#spectator-hotbar) - `spectator_hotbar.yml`. * `elo.yml` - the elo settings, covered on the [Elo](../../features/elo.md) page. * `sounds.yml` - covered on [Customize Sounds](../customize-sounds.md). * `replay.yml` and `discord.yml` - Premium only, covered on [Statistics](../../features/statistics.md) and [Discord Match Log](../../features/discord-match-log.md). ## Translations All player-facing text lives in the translation file for your chosen language, under `translations/`. Chat messages, titles, menu text and holograms are all edited there rather than in `config.yml`. Source: https://www.phoenixplugins.com/docs/phoenix-duels/configurations/configuration-files/main-configuration --- # 📁 Map Configuration ## Example Map Each map has its own file inside the `maps` folder. The example below is trimmed, since the `display` item and a long arena list make a real file much taller. ```yaml sort-order: 1000 enabled: true type: FREE_MODE identifier: map_7245 display-name: Map display: ==: org.bukkit.inventory.ItemStack id: minecraft:minecart count: 1 template: universal-region: minimum: x: -20.0 y: -14.0 z: -26.0 maximum: x: 19.0 y: 15.0 z: 26.0 battle-region: minimum: x: -2.0 y: -12.0 z: 12.0 maximum: x: 6.0 y: 3.0 z: 21.0 ffa-positions: [] teams: '0': positions: '0': x: 14.08244880949405 y: -13.0 z: 14.815054676272695 yaw: 68.54266 pitch: -3.449963 '1': positions: '0': x: 12.878836385874612 y: -13.0 z: 15.231936686241397 yaw: 73.492676 pitch: -21.599962 '2': positions: [] '3': positions: [] extras: {} regeneration: false post-round-regeneration: true pre-match-regeneration: false regen-engine: INTERNAL teleport-to-lobby: false allowed-modes: - classic team-colors: - RED - BLUE - GREEN - YELLOW arenas: '0': reference: world: world x: 199 y: 95 z: 357 dont-edit: assistance-stage: 4 blob-key: 6b7b172167a74f498cdc6c0327256529 auto-generation: enabled: false world: '' min-spacing: 250 ``` ## Options <table data-full-width="true"><thead><tr><th width="270">Option</th><th>Description</th></tr></thead><tbody><tr><td>sort-order</td><td>Where this map sits in the map list. Lower numbers come first.</td></tr><tr><td>enabled</td><td>Whether players can be sent to this map. A disabled map is still visible in the editor.</td></tr><tr><td>type</td><td>FREE_MODE, where you place every arena yourself, or GRID_MODE, where the plugin lays them out for you. See <a href="../../main-features/create-a-map/grid-mode.md">Grid Mode</a>.</td></tr><tr><td>identifier</td><td>The map's unique id. Used by <code>allowed-modes</code>, commands and placeholders.</td></tr><tr><td>display-name</td><td>The name players see.</td></tr><tr><td>display</td><td>The item shown for this map in menus. Written by the editor; easier to change there than by hand.</td></tr><tr><td>template</td><td>The build itself: the two regions, the team spawns, and the optional FFA and spectator positions. See <a href="../../main-features/create-a-map/README.md#edit-the-arena">Edit the Arena</a>.</td></tr><tr><td>allowed-modes</td><td>Which modes may be played here. An empty list means none, so the map is never picked.</td></tr><tr><td>team-colors</td><td>The colour assigned to each team slot, in order.</td></tr><tr><td>arenas</td><td>Every physical copy of this map, each with the world and coordinates it was pasted at.</td></tr><tr><td>teleport-to-lobby</td><td>Send players to the lobby after a match instead of back to where they were before it.</td></tr><tr><td>dont-edit</td><td>Written by the plugin. Leave it alone.</td></tr></tbody></table> ## Regeneration <table data-full-width="true"><thead><tr><th width="270">Option</th><th>Description</th></tr></thead><tbody><tr><td>regeneration</td><td>Whether the arena is restored after use at all. This must be on before players can break or place blocks in it.</td></tr><tr><td>post-round-regeneration</td><td>Restore the arena after every round rather than only at the end of the match.</td></tr><tr><td>pre-match-regeneration</td><td>Also restore the arena at the start of a match, during the first countdown. A safety net in case a previous regeneration failed.</td></tr><tr><td>regen-engine</td><td>INTERNAL uses the built-in engine, which restores blocks gradually and needs no other plugin. WORLDEDIT pastes a schematic, which is heavier on large arenas and requires WorldEdit or FAWE.</td></tr></tbody></table> See [Arena Regeneration](../../main-features/create-a-map/arena-regeneration.md) for the full explanation, and [Main Configuration](main-configuration.md) for the two performance settings that control how fast the internal engine works. ## Auto Generation When auto generation is on and every arena of this map is busy, the plugin pastes a new permanent one into the world you nominate rather than making players wait. <table data-full-width="true"><thead><tr><th width="270">Option</th><th>Description</th></tr></thead><tbody><tr><td>auto-generation.enabled</td><td>Whether new arenas are generated on demand.</td></tr><tr><td>auto-generation.world</td><td>The world new arenas are pasted into.</td></tr><tr><td>auto-generation.min-spacing</td><td>The minimum distance in blocks kept between every arena in that world.</td></tr></tbody></table> > **Warning:** Arenas created this way are permanent. On a busy server this grows the world file over time, so give it a dedicated, ideally void, world. Source: https://www.phoenixplugins.com/docs/phoenix-duels/configurations/configuration-files/map-configuration --- # 📁 Mode Configuration ## Example Mode Each mode has its own file inside the `modes` folder. The example below is trimmed: the `display` item and the scoreboard's animated header are both much longer in a real file. ```yaml sort-order: 1 enabled: true identifier: crystal display-name: Crystal display-description: - This is a custom arena mode. display: ==: org.bukkit.inventory.ItemStack id: minecraft:end_crystal count: 1 allowed-player-type: - UNRANKED_SOLO - UNRANKED_DUO - RANKED_SOLO - RANKED_DUO - CUSTOM_SOLO - SOLO_CHALLENGE - PARTY_CHALLENGE - PARTY_FFA - PARTY_TEAM_FIGHT loadout: type: PREMADE_KIT kit-id: crystal scoreboard: enabled: true header-frames: - '&5&lPHOENIX DUELS' - '&d&lP&5&lHOENIX DUELS' lines: - '' - '&fTime Left: &a%time_left%' - '' - '&f%opponents%' - '' - '&fMode: &a%mode%' - '&fMap: &a%map%' rules: - 'ENDER_PEARL_COOLDOWN;{5}' permission: required: false permission: phoenixduels.mode.example rounds-to-win: 1 pre-fight-delay-seconds: 10 duration-seconds: 300 cooldown-seconds: 0 public-broadcast: true commands: when-starting: [] when-ending: [] when-winning: [] when-losing: [] ``` ## Options <table data-full-width="true"><thead><tr><th width="270">Option</th><th>Description</th></tr></thead><tbody><tr><td>sort-order</td><td>Where this mode sits in the mode menus. Lower numbers come first.</td></tr><tr><td>enabled</td><td>Whether players can play it. A disabled mode stays visible in the editor.</td></tr><tr><td>identifier</td><td>The mode's unique id. Used by placeholders, commands and a map's <code>allowed-modes</code>.</td></tr><tr><td>display-name</td><td>The name players see.</td></tr><tr><td>display-description</td><td>The lore shown under the mode in the menus.</td></tr><tr><td>display</td><td>The item shown for this mode in menus. Written by the editor.</td></tr><tr><td>allowed-player-type</td><td>Which kinds of match may use this mode. Remove an entry to block it.</td></tr><tr><td>loadout</td><td>What players fight with. See below.</td></tr><tr><td>scoreboard</td><td>This mode's own scoreboard. New modes start from <a href="README.md#templates">templates.yml</a>.</td></tr><tr><td>rules</td><td>The <a href="../../main-features/create-a-mode/README.md">gamemode rules</a> applied, with their settings in braces.</td></tr><tr><td>permission</td><td>Set <code>required</code> to true to restrict the mode to holders of <code>permission</code>.</td></tr><tr><td>rounds-to-win</td><td>The rounds value. What it means depends on the server's <code>match.rounds-format</code> setting.</td></tr><tr><td>pre-fight-delay-seconds</td><td>The countdown before the fight starts.</td></tr><tr><td>duration-seconds</td><td>How long a round may run before it is called.</td></tr><tr><td>cooldown-seconds</td><td>How long a player must wait before playing this mode again. <code>0</code> means no cooldown.</td></tr><tr><td>public-broadcast</td><td>Announce the result of every match in this mode to the server.</td></tr><tr><td>commands</td><td>Commands run by the console at each stage of a match.</td></tr></tbody></table> ## Loadout `loadout.type` decides what players are given when the match starts: * **PREMADE_KIT** - everyone fights with the kit named by `kit-id`, which points at a file in the `kits` folder. * **PLAYER_INVENTORY** - players fight with whatever they are already carrying. `kit-id` is not used. Add-ons register more types. Player Kits adds PLAYER_KIT and SHARED_PLAYER_KIT. ## Player Types `allowed-player-type` controls both the team sizes and the kinds of match this mode appears in. <table data-full-width="true"><thead><tr><th width="330">Value</th><th>Allows</th></tr></thead><tbody><tr><td>UNRANKED_SOLO / DUO / TRIO / QUAD</td><td>Unranked queue at 1v1, 2v2, 3v3 and 4v4.</td></tr><tr><td>RANKED_SOLO / DUO / TRIO / QUAD</td><td>Ranked queue at the same sizes.</td></tr><tr><td>CUSTOM_SOLO / DUO / TRIO / QUAD</td><td>Custom matches at the same sizes.</td></tr><tr><td>SOLO_CHALLENGE</td><td>A direct <code>/duel</code> between two players.</td></tr><tr><td>PARTY_CHALLENGE</td><td>One party challenging another.</td></tr><tr><td>PARTY_FFA</td><td>A free-for-all inside one party.</td></tr><tr><td>PARTY_TEAM_FIGHT</td><td>Splitting one party into two teams.</td></tr><tr><td>PARTY_MULTI_TEAM_FIGHT</td><td>Splitting one party into up to four teams. Off by default on new modes.</td></tr></tbody></table> > **Info:** `PARTY_MULTI_TEAM_FIGHT` also needs the map to have third and fourth team spawn positions defined, otherwise there is nowhere to put the extra teams. Source: https://www.phoenixplugins.com/docs/phoenix-duels/configurations/configuration-files/mode-configuration --- # 📁 Spectator Hotbar ## Spectator Hotbar `spectator_hotbar.yml` defines the items a player is given while they are [spectating a match](../../features/spectator.md). Their real inventory is saved beforehand and given back the moment they stop spectating. ```yaml leave-item: slot: 4 material: BARRIER custom-model-data: 0 display-name: '&cLeave' lore: - '&7Click here to leave this game.' - '' - '&7Or do /leave.' actions: [] items: {} ``` ## Leave Item `leave-item` is handled by the plugin itself: clicking it removes the player from the match they are watching, whatever else you configure on it. You can change its slot, material, name and lore freely, but its behaviour is fixed. To remove it entirely, set its slot to a value outside the hotbar, such as `-1`. ## Custom Items Everything under `items` is yours. Each entry is a normal item definition with an `actions` list, using the same [action types](../../plugins/action-types.md) as any menu item, and runs those actions when the spectator clicks it. ```yaml items: players: slot: 0 material: PLAYER_HEAD display-name: '&aPlayers' lore: - '&7Jump between the players of this match.' actions: - '[MENU] spectator_players' back-to-lobby: slot: 8 material: RED_DYE display-name: '&cBack to Lobby' actions: - '[COMMAND] player;leave' ``` Slots run from `0` on the far left of the hotbar to `8` on the far right. Anything outside that range is ignored, so the item simply never appears. > **Info:** The `spectator_players` menu used above is a built-in menu that lists everyone in the match being watched, so a spectator can jump straight to a specific player. Source: https://www.phoenixplugins.com/docs/phoenix-duels/configurations/configuration-files/spectator-hotbar --- # 📁 Templates ## Templates `templates.yml` holds the **default match scoreboard**: the animated header and the lines that every newly created mode starts with. It is a template, not a live setting. Changing it does not touch modes that already exist, because each mode keeps its own copy of the scoreboard in its own file. Edit this file to change what the *next* mode you create will look like, and edit the mode itself to change one that already exists. ```yaml scoreboard: header-frames: - '&5&lPHOENIX DUELS' - '&d&lP&5&lHOENIX DUELS' - '&d&lPH&5&lOENIX DUELS' lines: - '' - '&7⌚ &fTime Left: &7%time_left%' - '' - '&f%opponents%' - '' - '&a🪓 &fMode: &a%mode%' - '&2🕹 &fMap: &2%map%' - '' - ' &dwww.phoenixplugins.com ' ``` ## Header Frames `scoreboard.header-frames` is a list of titles played one after another, one frame per tick, looping back to the start when it runs out. The default list spells out an animated shimmer across the words by shifting which letters are the lighter colour, and pads the end with repeated identical frames to hold the title still between shimmers. For a static title, use a single frame. ## Lines `scoreboard.lines` is the body of the scoreboard, top to bottom. An empty string leaves a blank line. Every [internal placeholder](../../plugins/placeholders.md) works here, as does any PlaceholderAPI placeholder installed on your server. ## Editing an existing mode To change the scoreboard of a mode that already exists, edit that mode instead, either from Editor > Edit Modes > Mode > Scoreboard or in its file under `modes/`. The default scoreboard can also be edited from Settings in the editor. > **Info:** If you edit a scoreboard and nothing changes in game, you are almost certainly editing this template rather than the mode that is actually being played. Source: https://www.phoenixplugins.com/docs/phoenix-duels/configurations/configuration-files/templates --- # 🎑 Customize Menus ## Plugin Menus All the menus that can be customized for the plugin are located in the menus folder of Phoenix Duels. > **Info:** The layout of every player menu can also be changed in-game with the [In-Game Menu Editor](in-game-menu-editor.md). <figure><img src="../.gitbook/assets/image (12).png" alt=""><figcaption></figcaption></figure> ## Menu Settings <a href="#menu-settings" id="menu-settings"></a> Menu settings can be found in any type of menu. From there, you can specify the type of menu you want, the title of the menu, the number of rows it will have, the refresh rate, and the actions that will run when the user clicks to preview it. ```yaml settings: type: SETTINGS title: 'Your Settings' rows: # 1, 2, 3, 4, 5, 6 refresh: enabled: false rate: 20 on-open-actions: [] ``` You can change the rows number if you want to adjust the rows that the menu will have. ## Pagination <a href="#pagination" id="pagination"></a> Pagination is another main option that menus have. With this, you can create multiple pages, set your preview page item, the next page item, and a material that will fill specific slots. ## Items <a href="#items" id="items"></a> With the items, you can create custom entries to be included in your menu. These could be items to close the menu or items that display where players can purchase keys. ```yaml items: close-menu: slot: '49' material: ARROW amount: 1 custom-model-data: 0 item-model: '' glow: false hide-attributes: false display-name: '&aClose Menu' lore: - '&7Click here to close this menu.' - '' - '&6Left-Click: &eClose menu.' actions: - '[CLOSE_INVENTORY]' ``` `item-model` lets you point an item at a resource pack's custom item model (Minecraft 1.21.2+'s `item_model` component) instead of, or alongside, the older `custom-model-data`. ## Menu Keys <a href="#menu-keys" id="menu-keys"></a> Each menu has a **key** as well as a file. The key is what the [`[MENU]`](../plugins/action-types.md) action takes, so this is the list to reach for when you want a lobby item or a kill effect to open a specific screen. **Playing** <table><thead><tr><th width="290">Key</th><th>File</th></tr></thead><tbody><tr><td>queue</td><td>menus/queue.yml</td></tr><tr><td>play</td><td>menus/play.yml</td></tr><tr><td>select_mode</td><td>menus/select_mode.yml</td></tr><tr><td>select_map</td><td>menus/select_map.yml</td></tr><tr><td>unranked_select_player_mode</td><td>menus/unranked/select_player_mode.yml</td></tr><tr><td>unranked_select_arena_mode</td><td>menus/unranked/select_arena_mode.yml</td></tr><tr><td>ranked_select_player_mode</td><td>menus/ranked/select_player_mode.yml</td></tr><tr><td>ranked_select_arena_mode</td><td>menus/ranked/select_arena_mode.yml</td></tr><tr><td>create_match</td><td>menus/custom/create_match.yml</td></tr><tr><td>custom_select_arena_mode</td><td>menus/custom/select_arena_mode.yml</td></tr><tr><td>custom_challenge_opponent</td><td>menus/custom/challenge_opponent.yml</td></tr><tr><td>duel_player</td><td>menus/custom/duel_player.yml</td></tr><tr><td>items_betting</td><td>menus/items_betting.yml</td></tr></tbody></table> **Party** <table><thead><tr><th width="290">Key</th><th>File</th></tr></thead><tbody><tr><td>party</td><td>menus/party/party.yml</td></tr><tr><td>party_info</td><td>menus/party/info.yml</td></tr><tr><td>party_invite_player</td><td>menus/party/invite_player.yml</td></tr><tr><td>party_manage_member</td><td>menus/party/manage_member.yml</td></tr><tr><td>party_ffa</td><td>menus/party/ffa.yml</td></tr><tr><td>party_teamfight</td><td>menus/party/teamfight.yml</td></tr><tr><td>party_multiteam</td><td>menus/party/multiteam.yml</td></tr><tr><td>party_multiteam_spectators</td><td>menus/party/multiteam_spectators.yml</td></tr></tbody></table> **Player** <table><thead><tr><th width="290">Key</th><th>File</th></tr></thead><tbody><tr><td>settings</td><td>menus/settings.yml</td></tr><tr><td>stats</td><td>menus/stats.yml</td></tr><tr><td>leaderboard</td><td>menus/leaderboard.yml</td></tr><tr><td>lost_items</td><td>menus/lost_items.yml</td></tr><tr><td>ongoing_matches</td><td>menus/ongoing_matches.yml</td></tr><tr><td>spectator_players</td><td>menus/spectator_players.yml</td></tr><tr><td>confirmation_menu</td><td>menus/confirmation.yml</td></tr><tr><td>select_option_menu</td><td>menus/select_option.yml</td></tr></tbody></table> **Kits** <table><thead><tr><th width="290">Key</th><th>File</th></tr></thead><tbody><tr><td>kit_preview</td><td>menus/kit/preview.yml</td></tr><tr><td>kit_items_editor</td><td>menus/kit/items_editor.yml</td></tr><tr><td>player_kit_layout</td><td>menus/player_kit_layout.yml</td></tr></tbody></table> **Add-ons** These only exist once the matching add-on is installed. <table><thead><tr><th width="290">Key</th><th>File</th></tr></thead><tbody><tr><td>ranks</td><td>menus/elo/ranks.yml</td></tr><tr><td>player_interaction</td><td>menus/lobby/player_interaction.yml</td></tr><tr><td>manage_player_kits</td><td>menus/playerkits/manage_kits.yml</td></tr><tr><td>player_kit_categories</td><td>menus/playerkits/kit_categories.yml</td></tr><tr><td>player_kit_armor_filter</td><td>menus/playerkits/kit_armor_filter.yml</td></tr><tr><td>edit_player_kit</td><td>menus/playerkits/edit_kit.yml</td></tr><tr><td>edit_player_kit_item</td><td>menus/playerkits/edit_kit_item.yml</td></tr><tr><td>edit_player_kit_item_amount</td><td>menus/playerkits/edit_kit_item_amount.yml</td></tr><tr><td>match_lobby</td><td>menus/match_lobby.yml</td></tr><tr><td>match_lobby_settings</td><td>menus/match_lobby_settings.yml</td></tr><tr><td>manage_member</td><td>menus/manage_member.yml</td></tr></tbody></table> > **Warning:** Some of these menus are opened by the plugin with data attached to them, such as which mode was picked. Opening one of those directly with an `[MENU]` action can leave it empty, because that data is missing. The safe ones to open by hand are the top-level menus a player would normally reach themselves, such as `queue`, `party`, `stats`, `settings`, `leaderboard` and `ongoing_matches`. Source: https://www.phoenixplugins.com/docs/phoenix-duels/configurations/customize-menus --- # 🔊 Customize Sounds ## Sounds Every sound the plugin plays (joining/leaving queue, invitations, defeat, and more) is customizable from `sounds.yml`. ```yaml sounds: invitation_accepted: '0': - ENTITY_ARROW_HIT_PLAYER;1.0;1.0 defeat: '0': - BLOCK_NOTE_BLOCK_BASS;1.0;0.5 '1': - BLOCK_NOTE_BLOCK_SNARE;1.0;1.5 ``` Each event (`invitation_accepted`, `defeat`, etc.) can have multiple numbered entries. The number is how many ticks after the event fires that sound plays, so you can build a short jingle out of several sounds instead of a single note — as `defeat` does above. Each entry follows the `SOUND_NAME;volume;pitch` format. ## Sound Events These are all the events you can attach sounds to. Removing an event's entries, or leaving it empty, makes it silent. <table><thead><tr><th width="270">Event</th><th>Played when</th></tr></thead><tbody><tr><td>request</td><td>A duel or party invitation arrives.</td></tr><tr><td>invitation_accepted</td><td>An invitation is accepted.</td></tr><tr><td>invitation_declined</td><td>An invitation is declined.</td></tr><tr><td>join_queue</td><td>The player enters a queue.</td></tr><tr><td>leave_queue</td><td>The player leaves a queue.</td></tr><tr><td>spectator_join</td><td>Someone starts spectating the match.</td></tr><tr><td>start</td><td>The match begins.</td></tr><tr><td>winning</td><td>The match ends and the player won.</td></tr><tr><td>defeat</td><td>The match ends and the player lost.</td></tr><tr><td>draw</td><td>The match ends in a draw.</td></tr></tbody></table> > **Info:** Sound names are the Bukkit sound names for your server version, such as `ENTITY_ARROW_HIT_PLAYER`. A name that does not exist on your version is skipped rather than throwing an error, so a silent sound is usually a misspelt or version-specific name. Source: https://www.phoenixplugins.com/docs/phoenix-duels/configurations/customize-sounds --- # 🛠️ GeyserMC (Bedrock) > **Info:** These options are in the bedrock section of config.yml. They have no editor option. ## Overview Bedrock players joining through Geyser get the main player menus as native Bedrock forms instead of chest menus. Forms need Floodgate or Geyser to be installed on the same server as the plugin. Without either, everyone gets the chest menus. Menus without a form stay chest menus. On those, a button with several click actions asks Bedrock players which one they want, since Bedrock has no shift-click or right-click on touch and controller. Every text prompt, such as the money wager, opens as a form text field. **Please note:** This guide will not cover the installation process of Geyser itself. Refer to the Geyser wiki for comprehensive installation instructions: [Geyser Wiki Setup](https://wiki.geysermc.org/geyser/setup/) ```yaml bedrock: forms: true input-modes: [] allow-opt-out: true resize-chest-menus: true icons: enabled: true fallback-url: "" head-url: "https://mc-heads.net/head/%texture%" ``` ## How the Forms Work | Menu | Bedrock form | | --- | --- | | Queue | A button for unranked and ranked. | | Player mode | A button per team size, solo to quad. | | Arena mode | A button per category and mode, showing the queued and playing players. | | Duel creation | One form with the mode, the map, the rounds, item betting, the money wager and external spectators. | | Duel mode and map selection | A button per category, mode or map, with Random first. | | Player settings | A toggle for duel requests and one for party requests, plus a Ping Range dropdown on Premium. | | Stats | The stats as text. | | Ongoing matches | A button per match, showing its players. | | Spectator teleport | A button per player in the match. | | Party | A button to create a party. | | Confirmation | A confirm and a cancel button. | Add-ons that bring player menus use the same settings: | Add-on | Menu | Bedrock form | | --- | --- | --- | | Elo Ranks | Ranks | Every rank as text. | | Lobby Items | Player interaction | A duel and a party invitation button. | | Player Kits | Your player kits | A button per kit, then a choice to select or edit it. | | Public Parties | Party | Create a party and join parties. | | Public Parties | Browser | A button per party, plus sorting and hide full parties. | | Public Parties | Banned players | A button per banned player, which asks before unbanning. | | Public FFA | Arena selector | A button per arena, showing its players. | | Public FFA | Bounties | The bounties as text. | | Public FFA | Confirmation | A confirm and a cancel button. | Public FFA reads its form text from the bedrock section of its own translations file. Buttons use the names set in the menu files, with colors kept and hex colors removed, since forms cannot show them. Button actions still run, and any extra button you added to one of these menus with an action shows up in its form. The text around them, such as the back button, comes from the bedrock section of the translations file. Kit previews, the kit editor, the player kit item editor, item betting, lost items, the leaderboard and the party management menus stay chest menus. If a form cannot be sent, the player gets the chest menu instead and the console says so. ## Forms Turns Bedrock forms on or off for the whole server. When off, Bedrock players get the chest menus like everyone else. ## Input Modes Limits forms to Bedrock players on certain devices, by their input mode: `TOUCH`, `CONTROLLER`, `KEYBOARD_MOUSE` or `VR`. Players on any other input get chest menus. Leave the list empty to give forms to every Bedrock player. ```yaml bedrock: input-modes: - TOUCH - CONTROLLER ``` ## Allow Opt Out Lets Bedrock players choose chest menus for themselves. The queue, stats, ongoing matches and party forms, and the ranks, player interaction, player kits and FFA arena forms of the add-ons, get a button to switch to chest menus, and /pduels forms switches between the two. The choice is remembered per player. When this is off, every Bedrock player gets forms and the command is refused. ## Resize Chest Menus Bedrock only draws chest menus of 3 or 6 rows cleanly. With this on, a menu of 1 or 2 rows is opened with 3 rows and a menu of 4 or 5 rows with 6, for Bedrock players who get chest menus. Java players always see the rows the menu is set to. Menus that use your own inventory, such as the kit editor and item betting, keep their size. ## Chat Links Bedrock players cannot click links in chat. The Premium feature notices of the Lite version, the new version notice and the changelog's update page link add a line with a short address to type into a browser, and the "updated" notice adds the command to run. Java players see the clickable message only. ## Icons Adds an icon to form buttons. * **enabled** - Turns icons on or off. * **fallback-url** - An image URL for materials the built-in icon table does not know. `%material%` is replaced by the material name in lower case. Leave it empty for no icon. * **head-url** - An image URL for player heads. `%texture%` is replaced by the head's texture id, or the owner's name when it has no texture. Leave it empty for no head icons. Vanilla items use the Bedrock texture of the same item, which every Bedrock client already has. Items with custom model data or an item model get no icon, since their texture only exists in a resource pack. Player heads always use the head URL. Source: https://www.phoenixplugins.com/docs/phoenix-duels/configurations/geysermc-bedrock --- # In-Game Menu Editor > **Info:** The editor changes the same menu files described in [Customize Menus](customize-menus.md). A menu saved in-game is live straight away, with no reload. ## Opening the Editor There are two ways in, both needing phoenixduels.admin: <figure><img src="../.gitbook/assets/menu-layouts/menu-layouts.png" alt="" width="563"><figcaption><p>Editor (Menu Layouts)</p></figcaption></figure> <figure><img src="../.gitbook/assets/menu-layouts/menu.png" alt="" width="563"><figcaption><p>Menu Layouts (Confirmation Menu)</p></figcaption></figure> * **Editor > Menu Layouts** lists every player menu by its key. Left-click one to edit it. * /pduels editLayout \<menu> opens one menu directly, by its [menu key](customize-menus.md#menu-keys). Add-on menus are listed once their add-on is installed. The kit items editor and the spectator hotbar are not part of it. The menu opens as it looks to players, with every button in place. The slots where the menu shows its own content, such as the modes, maps or players, appear as lime panes. > **Warning:** While you edit, your hotbar holds the editor tools. Your own hotbar items are saved to a backup file first, and the editor does not open if that backup fails. They come back when you close the menu. ## Editing a Button With no tool turned on, click any button to open its editor. Every field there changes that one button: | Field | Description | | --- | --- | | Look | Drop an item here to copy its material, custom model data, item model and head texture. | | Display Name | The name of the button. | | Lore | The lore of the button. | | Amount | How many are shown, 1 to 64. | | Glow | Makes the button glow. | | Hide Attributes | Hides attack damage and similar lines. | | Custom Model Data | The custom model data of the button. | | Click Actions | The [actions](../plugins/action-types.md) run when the button is clicked. | | Hide Tooltip | Hides the tooltip entirely. | | Tooltip Style | The tooltip style, such as `minecraft:blue`. | | Delete | Removes the button. | A field only appears when the button has that option, and Delete only appears on decoration. The plugin's own buttons, such as the page arrows, can be moved and restyled but not deleted. ## Drag and Drop Pick up any item from your inventory and drop it: * **On a button** to give the button that item's look. The name, lore and actions stay. * **On an empty slot** to add the item as new decoration, with its look, name and lore. This is the quickest way to put a custom item from a resource pack or a textured head into a menu. ## Hotbar Tools Right-click a tool while holding it, or click it in your inventory. The first three are modes: one is on at a time, it glows while on, and using it again turns it off. | Slot | Tool | Description | | --- | --- | --- | | 1 | Reordering | Click a button, then click where it should go. If that slot is taken, the two buttons swap places. | | 2 | Item Slots | Click an empty slot to add it to the menu's item slots, or click a lime slot to remove it. Also repeats decoration: click it to select it, then click empty slots to put it there too. | | 3 | New Button | Click an empty slot to place a new button there. Its editor opens straight away. | | 4 | Add a Row | Makes the menu one row taller, up to 6. | | 5 | Remove a Row | Makes the menu one row shorter, down to 1. | | 8 | Menu Title | Type the new title, in a dialog where the server supports one, otherwise in chat. | | 9 | Templates & Text | Opens the parts of the menu that have no slot of their own. | A slot group always keeps at least one slot, and a button locked to a single slot cannot be repeated. Removing a row does not delete what was on it. Anything left below the last row is hidden, you are told how many slots, and adding the row back shows it again. ## Templates & Text Templates are buttons drawn once per entry rather than placed on a slot, such as the fill item of a paginated list. Editing one restyles every copy of it. Text entries are the lines the menu adds by itself rather than a button you place. ## Saving Close the menu to save. The file is written, the menu is live for players at once, and your hotbar is given back. If you opened it from the Menu Layouts list, the list opens again. The menu is also saved when you leave the server, when you die, and when the server stops. Dying ends the session, and your own hotbar items drop with the rest of your inventory. If the server crashes mid-edit, your hotbar is given back the next time you join. While editing, the tools cannot be dropped, placed or moved, and you cannot swap hands. > **Info:** Two admins can open the same menu at the same time. The second is warned, and whoever closes last overwrites the other's changes. Source: https://www.phoenixplugins.com/docs/phoenix-duels/configurations/in-game-menu-editor --- # 🌍 Languages & Translations ## Translations Every line the plugin can print lives in one file: ``` PhoenixDuels/translations/translations.en.yml ``` Messages to players, command replies, the menus and the whole in-game editor are all in there. Edit it, run /pduels reload, and the new text is live. To stop a message from appearing at all, set it to `''` (empty quotes). > **Warning:** /pduels reload menus does **not** reload translations. Use the plain /pduels reload after editing a translation file. Every add-on brings its own file into the same folder, named after itself, so the Bed Fight messages are in `bedfight.translations.en.yml` and the Player Kits ones in `playerkits.translations.en.yml`. They work exactly like the main file. ## Language The language the plugin loads is set in config.yml, or from **Editor > Settings > Language**. ```yaml language: EN_US ``` The picker lists every language the plugin knows about: <table><thead><tr><th width="110">Code</th><th width="240">Language</th><th>File</th></tr></thead><tbody><tr><td><code>EN_US</code></td><td>English (United States)</td><td><code>translations.en.yml</code></td></tr><tr><td><code>AR_SA</code></td><td>Arabic (Saudi Arabia)</td><td><code>translations.ar.yml</code></td></tr><tr><td><code>PT_BR</code></td><td>Portuguese (Brazil)</td><td><code>translations.br.yml</code></td></tr><tr><td><code>PT_PT</code></td><td>Portuguese (Portugal)</td><td><code>translations.pt.yml</code></td></tr><tr><td><code>ES_ES</code></td><td>Spanish (Spain)</td><td><code>translations.es.yml</code></td></tr><tr><td><code>FR_FR</code></td><td>French (France)</td><td><code>translations.fr.yml</code></td></tr><tr><td><code>DE_DE</code></td><td>German (Germany)</td><td><code>translations.de.yml</code></td></tr><tr><td><code>IT_IT</code></td><td>Italian (Italy)</td><td><code>translations.it.yml</code></td></tr><tr><td><code>NL_NL</code></td><td>Dutch (Netherlands)</td><td><code>translations.nl.yml</code></td></tr><tr><td><code>SV_SE</code></td><td>Swedish (Sweden)</td><td><code>translations.sv.yml</code></td></tr><tr><td><code>PL_PL</code></td><td>Polish (Poland)</td><td><code>translations.pl.yml</code></td></tr><tr><td><code>CS_CZ</code></td><td>Czech (Czechia)</td><td><code>translations.cs.yml</code></td></tr><tr><td><code>RU_RU</code></td><td>Russian (Russia)</td><td><code>translations.ru.yml</code></td></tr><tr><td><code>TR_TR</code></td><td>Turkish (Turkey)</td><td><code>translations.tr.yml</code></td></tr><tr><td><code>EL_GR</code></td><td>Greek (Greece)</td><td><code>translations.el.yml</code></td></tr><tr><td><code>HI_IN</code></td><td>Hindi (India)</td><td><code>translations.hi.yml</code></td></tr><tr><td><code>ID_ID</code></td><td>Indonesian (Indonesia)</td><td><code>translations.id.yml</code></td></tr><tr><td><code>VI_VN</code></td><td>Vietnamese (Vietnam)</td><td><code>translations.vi.yml</code></td></tr><tr><td><code>JA_JP</code></td><td>Japanese (Japan)</td><td><code>translations.ja.yml</code></td></tr><tr><td><code>KO_KR</code></td><td>Korean (South Korea)</td><td><code>translations.ko.yml</code></td></tr><tr><td><code>ZH_CN</code></td><td>Chinese (Simplified)</td><td><code>translations.zh.yml</code></td></tr></tbody></table> The file name uses the short form rather than the code, which is worth knowing before you go looking for it — PT_BR writes `translations.br.yml`, not `translations.pt_br.yml`. > **Warning:** Only the languages included in the build you are running can be picked. The rest are dark grey in the editor and clicking skips straight past them. At the moment the plugin ships with English, so the way to run it in another language is to translate the file yourself. ## Translating the plugin Everything sits under the short language code at the top of the file, and the value is either a line or a list of lines. Translate the right-hand side and leave the keys and the placeholders alone. ```yaml en: unknown-argument: "&cUnknown argument!" no-permission: "&cYou don't have permission to do this! &8(&e%permission%&8)" ``` ```yaml en: error-processing: - "&cAn error occurred while processing this action (Check console):" - "&7%message%" ``` Anything wrapped in `%` is filled in by the plugin, so `%player%`, `%permission%` and `%message%` have to survive the translation to keep working. Colour codes can be moved around freely. > **Info:** English is always loaded first, and the chosen language is laid over the top of it. A key you have not translated yet falls back to its English line rather than printing blank, so a file can be translated a piece at a time. > **Info:** Keep a copy of your translated file before updating the plugin. New keys are added to it automatically — the console prints `Missing value for key "..."` and writes the English default straight into your file — but it is the file your work lives in. See [What does the "Missing translation" warning mean?](../plugins/questions-and-answers/README.md#what-does-the-missing-translation-warning-mean) ## The editor is translated too Everything under the `editor` keys is the text of the in-game editor — the name and description of every option. Translating those is optional, and skipping them leaves the editor in English while your players see your language. ## Rich Text (MiniMessage) Phoenix Duels understands [MiniMessage](https://docs.advntr.dev/minimessage/format.html) tags, like `<red>`, `<bold>` or `<gradient:#ff5555:#5555ff>`, on top of the classic `&` colour codes. This lets you use gradients, hover text and clickable links, none of which `&` codes can do. ### Format | Example | Result | | -------------------------------------------------------- | -------------------------------------- | | `<red>Hello` | Red text | | `<#ff8800>Hello` | Any hex colour | | `<gradient:#5e4fa2:#f79459>Phoenix Duels</gradient>` | Text fading from one colour to another | | `<bold><underlined>Warning` | Bold and underlined | | `<rainbow>Victory!</rainbow>` | Each letter a different colour | | `<hover:show_text:'Click me'>Hover</hover>` | Text with a tooltip | | `<click:open_url:'https://example.com'>Our site</click>` | Text that opens a link | A closing tag is optional. `<red>Hello` colours the rest of the line, while `<red>Hello</red> there` colours only the first word. ### Where it works | Place | Notes | | ------------------------- | ------------------------------------------------ | | Chat messages | Kill messages, command feedback, broadcasts | | Match scoreboard | The sidebar title and lines shown during a duel | | Lobby scoreboard | From the Lobby Items add-on | | Menu titles, names, lore | Anywhere the editor lets you write text | ### Where it doesn't work Titles, subtitles, the action bar, boss bars, nametags and the tab list still only understand `&` codes. Those are sent as raw legacy text, so a tag in one of them is shown to the player exactly as you typed it. ### Usage notes * Legacy `&` codes, including `&#RRGGBB` hex, keep working everywhere exactly as before. * In **chat messages**, use one style per line. A chat line is only sent as MiniMessage when it contains no legacy colour codes at all, so mixing `&c` and `<red>` in the same line falls back to legacy and prints the tag. * Everywhere else, the two can be mixed freely. A scoreboard line or an item name is read as MiniMessage as soon as it contains a tag, and any `&` codes in it are converted along with it. * A tag the server does not recognise is left in the text as written rather than being dropped, which is what keeps resource pack glyph tags working. > **Warning:** MiniMessage needs [Paper](https://papermc.io/) or a fork of it. On plain Spigot the tags are printed exactly as you typed them, so stay on `&` codes there. Source: https://www.phoenixplugins.com/docs/phoenix-duels/configurations/languages --- # 🎨 Rich Text (MiniMessage) ## Information Phoenix Duels understands [MiniMessage](https://docs.advntr.dev/minimessage/format.html) tags, like `<red>`, `<bold>` or `<gradient:#ff5555:#5555ff>`, on top of the classic `&` colour codes. This lets you use gradients, hover text and clickable links, none of which `&` codes can do. ## Format | Example | Result | | -------------------------------------------------------- | -------------------------------------- | | `<red>Hello` | Red text | | `<#ff8800>Hello` | Any hex colour | | `<gradient:#5e4fa2:#f79459>Phoenix Duels</gradient>` | Text fading from one colour to another | | `<bold><underlined>Warning` | Bold and underlined | | `<rainbow>Victory!</rainbow>` | Each letter a different colour | | `<hover:show_text:'Click me'>Hover</hover>` | Text with a tooltip | | `<click:open_url:'https://example.com'>Our site</click>` | Text that opens a link | A closing tag is optional. `<red>Hello` colours the rest of the line, while `<red>Hello</red> there` colours only the first word. ## Where it works | Place | Notes | | ------------------------- | ------------------------------------------------ | | Chat messages | Kill messages, command feedback, broadcasts | | Match scoreboard | The sidebar title and lines shown during a duel | | Lobby scoreboard | From the Lobby Items add-on | | Menu titles, names, lore | Anywhere the editor lets you write text | ## Where it doesn't work Titles, subtitles, the action bar, boss bars, nametags and the tab list still only understand `&` codes. Those are sent as raw legacy text, so a tag in one of them is shown to the player exactly as you typed it. ## Usage notes * Legacy `&` codes, including `&#RRGGBB` hex, keep working everywhere exactly as before. * In **chat messages**, use one style per line. A chat line is only sent as MiniMessage when it contains no legacy colour codes at all, so mixing `&c` and `<red>` in the same line falls back to legacy and prints the tag. * Everywhere else, the two can be mixed freely. A scoreboard line or an item name is read as MiniMessage as soon as it contains a tag, and any `&` codes in it are converted along with it. * A tag the server does not recognise is left in the text as written rather than being dropped, which is what keeps resource pack glyph tags working. > **Warning:** MiniMessage needs [Paper](https://papermc.io/) or a fork of it. On plain Spigot the tags are printed exactly as you typed them, so stay on `&` codes there. Source: https://www.phoenixplugins.com/docs/phoenix-duels/configurations/rich-text --- # 💎 Features <table data-full-width="true"><thead><tr><th>Matches & Modes</th><th>Arenas & Maps</th><th>Players & Setup</th></tr></thead><tbody><tr><td>Standalone for a Practice Server</td><td>Arena Regeneration (with FAWE)</td><td>Elo System</td></tr><tr><td>Duel: 1v1, 2v2, 3v3, 4v4, Party FFA</td><td>Internal regeneration, with no dependency</td><td>Custom elo ranking</td></tr><tr><td>Duel with premade & custom kits.</td><td>Grid Mode to create many arenas at once</td><td>Statistics</td></tr><tr><td>Multiple Gamemodes</td><td>Duplicate an Arena</td><td>Leaderboard</td></tr><tr><td>50+ Gamemode Rules</td><td>Arena Protection</td><td>Placeholders for leaderboard and stats.</td></tr><tr><td>Queue System</td><td>Battle Region and Universal Region</td><td>Party System</td></tr><tr><td>Quick Play option</td><td>Multi Spawn Location</td><td>Player Settings</td></tr><tr><td>Create custom matches</td><td>FFA Position</td><td>Lobby Items</td></tr><tr><td>Multiple rounds support</td><td>Customize the Arena</td><td>Kit Preview and in-game Kit Editor</td></tr><tr><td>Ranked and Unranked requirements</td><td>Edit the Arena in-game</td><td>Pre-configured premade kits</td></tr><tr><td>Custom cooldown to play a mode</td><td>Void world support</td><td>Custom Kits that you can create and play with.</td></tr><tr><td>Permission requirements</td><td>Lobby Spawnpoint</td><td>Customizable menus, with an in-game layout editor</td></tr><tr><td>Custom Scoreboard per mode</td><td>Map configuration file per map</td><td>Custom Actions</td></tr><tr><td>Winner/Loser/Start commands.</td><td></td><td>Rich Text (MiniMessage) support</td></tr><tr><td>Match Commands</td><td></td><td>Hex color support <code>&#ADF3FD</code></td></tr><tr><td>Team Chat</td><td></td><td>Whitelist/Blacklist Commands</td></tr><tr><td>Custom Nametags</td><td></td><td>Alternative Commands</td></tr><tr><td>Spectator Mode</td><td></td><td>Support PlaceholderAPI for commands.</td></tr><tr><td>Public match status broadcast</td><td></td><td>MySQL and SQlite Database</td></tr><tr><td>Toggle duel requests.</td><td></td><td>Bedrock Support</td></tr><tr><td>Kill Effects</td><td></td><td>Security System in case of crashes.</td></tr><tr><td>Custom Sounds</td><td></td><td>Easily editable files</td></tr><tr><td>Money & Item Betting</td><td></td><td>Lost Items recovery storage</td></tr><tr><td>Match History & Recaps</td><td></td><td>Discord match result webhooks</td></tr><tr><td>Match Replays (BetterReplay)</td><td></td><td>Developer API with 26 events</td></tr><tr><td></td><td></td><td>No hard dependency</td></tr></tbody></table> ## Add-ons <table data-full-width="true"><thead><tr><th>Add-on</th><th>What it adds</th></tr></thead><tbody><tr><td>Gamemodes</td><td>Spleef, Bed Fight, TnT Run, Boxing, The Bridge, Floor is Lava, and Pillar of Fortune.</td></tr><tr><td>Elo Ranks</td><td>Rank tiers driven by elo, with a ranks menu and placeholders.</td></tr><tr><td>Player Kits</td><td>Let the users build and save their own kits, sorted by category.</td></tr><tr><td>Lobby Items</td><td>Hotbar items for the lobby, with inventory stages.</td></tr><tr><td>Sign Queues</td><td>Join a queue by clicking a sign.</td></tr><tr><td>Rematch & Requeue</td><td>Offer a rematch or a requeue once the match ends.</td></tr><tr><td>Public FFA</td><td>Free-for-all arenas players walk into, with kits, kill streaks, bounties, King of the Hill events, and Mob Killing and Hunger Games game modes.</td></tr></tbody></table> ## Suggestions If you notice something missing from our plugin, please let us know. Additionally, we are always open to suggestions from our users to add more content and improve the plugin. Source: https://www.phoenixplugins.com/docs/phoenix-duels/features --- # 💰 Betting ## Betting When two players or two parties arrange a custom match, they can put something on the line. Betting comes in two independent flavours, money and items, and each can be switched off for the whole server. ```yaml betting: money-enabled: true items-enabled: true items-betting: max-items-per-player: 10 ``` Both options are also editable in the editor, under Settings > Universal Settings. ## Money Betting Money betting requires Vault together with an economy plugin. > **Warning:** Without Vault installed, money betting does nothing at all. Nothing is withdrawn and nothing is paid out, and the plugin does not warn you at startup, so the option can look like it is working when it is not. The stake is withdrawn from every participant when the match starts, and the full pot is paid to the winning side when it ends. A player who cannot afford the stake blocks the match from starting, and the message names them. ## Item Betting Item betting opens the `items_betting` menu, where each player drops in the items they want to wager. `items-betting.max-items-per-player` caps how many items a single player may stake. Once the match ends, the losing side's stakes go to the winners, and the winners get their own stakes back. ## Refunds Stakes are returned in full when a match does not produce a winner. That covers a draw, a match cancelled before it began, and a match that was forcibly ended. If a challenge cannot start after the bets are settled, for example because no arena is free or a player can no longer pay the wager, every stake and wager is returned and the challenge goes back into the queue, where the betting menu opens again once an arena is found. If it fails a second time in a row, the players are removed from the queue and told so. The same happens when the betting menu cannot open, for example because a player is on cooldown or in a disabled world. Unranked, Ranked and FFA queue matches follow the same rule: if a match cannot start, everyone in it keeps their place in the queue once, and a second failure in a row removes them with a message. If a player's inventory is full when their items are returned, or they are offline when a payout is made, the items go to their [Lost Items](lost-items.md) storage instead. They are never dropped on the ground and never destroyed. ## Finishing Time A match that ends with a betting payout uses the **Extended Finishing Seconds** value rather than the default one, so players have time to read the result before they are moved out of the arena. Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/betting --- # 🪝 Discord Match Log ## Discord Match Log Phoenix Duels can post the result of every finished match to a Discord channel through a webhook. This is a Premium feature. Results are queued and sent in the background, so a slow or unreachable Discord never holds up a match. ## Setup ### Create the webhook In Discord, open **Server Settings > Integrations > Webhooks**, create one for the channel you want the results in, and copy its URL. ### Paste it into discord.yml Open `discord.yml` in the PhoenixDuels folder, put the URL into `match-result.url`, and set `match-result.enabled` to true. ### Reload Run /pduels reload, then finish a match to confirm the embed arrives. You can also switch the feature on and off from the editor, under Settings > Plugin Settings > Discord Match Log. The URL itself is only editable in the file. ## discord.yml ```yaml match-result: enabled: false url: '' username: Phoenix Duels avatar-url: '' embed: title: Duel Results color: '#5865F2' show-participants: true ``` <table><thead><tr><th width="220">Option</th><th>Description</th></tr></thead><tbody><tr><td>enabled</td><td>Whether finished matches are posted at all.</td></tr><tr><td>url</td><td>The Discord webhook URL. Leave it empty to disable delivery.</td></tr><tr><td>username</td><td>The name the webhook posts under.</td></tr><tr><td>avatar-url</td><td>An image URL used as the webhook's avatar. Leave it empty to use the webhook's own avatar.</td></tr><tr><td>embed.title</td><td>The title line of the embed.</td></tr><tr><td>embed.color</td><td>The colour of the embed's side bar, as a hex value.</td></tr><tr><td>show-participants</td><td>Adds a Participants field listing every team in the match and the players on it. Turn it off to keep the embed to the winner alone.</td></tr></tbody></table> ## The embed Every result carries the mode, the map, the duel type, the winning team with its players, and how long the match lasted. With show-participants on, a final field lists all teams, one per line: ``` [A] (Foxi) [B] (kristopher) ``` Players are named as they were when the match started, so someone who logged out mid-duel still appears. ## Troubleshooting If results are not arriving, check the console after a match finishes. The most common causes are: * **The URL is empty or malformed.** A webhook URL must be the full `https://discord.com/api/webhooks/...` address, not just a link to the channel. * **The webhook was deleted in Discord.** Deleting a webhook does not disable the option here, so the plugin keeps posting to an address that no longer exists. * **Rate limiting.** Discord limits how quickly a single webhook can be posted to. The queue absorbs normal traffic, but sustained bursts can still be throttled by Discord. > **Info:** Match logging is separate from match history. Turning it off does not affect the statistics, the match history, or the recaps, which are always recorded. Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/discord-match-log --- # 🥇 Elo ## Elo System Elo is a system used to calculate the relative skill levels of players in competitive games, where ratings are adjusted based on match outcomes. Every player holds a **separate rating per mode**, so being strong at one mode says nothing about their rating in another. Only Ranked matches change a rating. Unranked and custom matches never do. ## elo.yml The elo settings live in their own file, `elo.yml`, in the PhoenixDuels folder. The options sit at the top level of that file, with nothing wrapping them. ```yaml k-factor: 32 min-rating: 0 max-rating: 3500 default-rating: 500 tolerance: 200 ``` They are also editable in the editor, under Settings > Elo Settings. * **k-factor (32)** - Determines how much a rating moves after each match. A higher K-factor means larger swings, so ratings settle faster but are noisier. * **min-rating (0)** - The lowest rating a player can fall to. * **max-rating (3500)** - The highest rating a player can climb to. * **default-rating (500)** - The rating a player starts on, in every mode, before they have played it. * **tolerance (200)** - The ranked matchmaking window. See below. ## Tolerance Tolerance is not a margin of error on a rating. It is how far apart two sides in the ranked queue may be before the plugin refuses to pair them. When someone queues for Ranked, the plugin looks at everyone else waiting for the same mode and player type, and only considers those whose **average rating** is within `tolerance` of theirs. With the default of 200, a player rated 500 can be matched against anyone between 300 and 700, and nobody outside that band. > **Warning:** On a small or quiet server this is the setting that stops ranked queues from popping. Two players can sit in the queue indefinitely if their ratings are more than `tolerance` apart. Raising it widens the net at the cost of less even matches. ## Global Elo `%phoenixduels_ranked_global_elo%` is a single number summarising a player across every mode, and it is the **average** of their per-mode ratings, not a sum and not a rating of its own. The average is taken across every mode that allows a ranked player type. Modes the player has never touched still count, at `default-rating`, which pulls the average toward the default. A player rated 900 in the only mode they play, on a server with four ranked modes, has a global elo of 600 rather than 900. ## Managing Ratings Ratings can be adjusted from the console or in game: /pduels setRating \<player> \<mode> \<amount>\ /pduels addRating \<player> \<mode> \<amount>\ /pduels removeRating \<player> \<mode> \<amount>\ /pduels resetRating \<player> \<mode> \<amount>\ /pduels reset \<player> - resets every mode at once. ## Ranked Requirements You can keep newer players out of Ranked until they have won a number of Unranked games. See [Main Configuration](../configurations/configuration-files/main-configuration.md). ## Ranks To turn ratings into visible tiers such as Bronze or Diamond, install the [Elo Ranks](../add-ons/elo-ranks/README.md) add-on. Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/elo --- # 💥 Kill Effects ## Kill Effects Kill Effects play a visual effect at the victim's location whenever a player gets a kill. Players pick their own effect from a menu, and it triggers automatically on every kill until they change it. ## Selecting an Effect Run `/duelkilleffects` to open the selection menu, or `/duelkilleffects select <id>` to pick one directly by its ID. Only effects the player has permission for are shown or selectable. <figure><img src="../.gitbook/assets/kill-effects/kill-effects-menu.png" alt="" width="563"><figcaption><p>Kill Effects</p></figcaption></figure> ## Permissions Each kill effect has its own permission, so you can gate specific effects behind ranks or as store rewards. The node is built from the effect's ID: ``` phoenixplugins.killeffect.<id> ``` For example, Bell Toll of Doom is phoenixplugins.killeffect.bell-toll-of-doom. None is always available and needs no permission, so a player can always turn their effect off. ## Effect List <table data-full-width="true"><thead><tr><th width="270">ID</th><th>Name</th><th>Effect</th></tr></thead><tbody><tr><td>arcane-burst</td><td>Arcane Burst</td><td>A ring of runes charges up, then explodes into portal particles.</td></tr><tr><td>balloon-pop</td><td>Balloon Pop</td><td>A small colorful sphere pops outward with a snap.</td></tr><tr><td>bell-toll-of-doom</td><td>Bell Toll of Doom</td><td>A spectral bell tolls twice overhead as dark mist rolls outward.</td></tr><tr><td>blood-burst</td><td>Blood Burst</td><td>A burst of red dust particles erupts from your victim.</td></tr><tr><td>confetti-party</td><td>Confetti Party</td><td>A burst of colorful confetti.</td></tr><tr><td>curse-mark</td><td>Curse Mark</td><td>Witch particles circle the spot where your victim fell.</td></tr><tr><td>ender-vortex</td><td>Ender Vortex</td><td>A purple vortex of portal particles swirls upward with a teleport sound.</td></tr><tr><td>explosion</td><td>Explosion</td><td>A large explosion effect with zero damage or block impact.</td></tr><tr><td>firework-salute</td><td>Firework Salute</td><td>A real firework launches above the spot your victim fell.</td></tr><tr><td>frost-nova</td><td>Frost Nova</td><td>A ring of frost expands outward from where your victim fell.</td></tr><tr><td>frozen-spike-ring</td><td>Frozen Spike Ring</td><td>A ring of ice spikes drops from above and shatters on landing.</td></tr><tr><td>ghast-fireball</td><td>Ghast Fireball</td><td>A fireball charges from within your victim and rockets outward.</td></tr><tr><td>guardians-wrath</td><td>Guardian's Wrath</td><td>Prismarine spikes erupt from the ground around your victim.</td></tr><tr><td>guillotine</td><td>Guillotine</td><td>An axe is thrown at your victim and sticks into the ground.</td></tr><tr><td>headshot-flash</td><td>Headshot Flash</td><td>A sniper tracer streaks in and cracks at head height.</td></tr><tr><td>iron-cage-drop</td><td>Iron Cage Drop</td><td>Iron bars crash down into a cage, hold a beat, then spring apart.</td></tr><tr><td>judgment-anvil</td><td>Judgment Anvil</td><td>A tumbling anvil crashes down from above, shattering the ground.</td></tr><tr><td>lightning-strike</td><td>Lightning Strike</td><td>A bolt of lightning strikes down on the spot your victim fell.</td></tr><tr><td>meteor</td><td>Meteor</td><td>A flaming meteor crashes down onto your victim's remains.</td></tr><tr><td>money-rain</td><td>Money Rain</td><td>Treasure explodes outward in a shower of coins.</td></tr><tr><td>phoenix-rebirth</td><td>Phoenix Rebirth</td><td>Flames rise in a spiral, like a phoenix taking flight.</td></tr><tr><td>pinata-burst</td><td>Pinata Burst</td><td>A colorful pinata swings up and bursts into a shower of candy.</td></tr><tr><td>soul-reaper</td><td>Soul Reaper</td><td>Blue soul particles spiral upward with an eerie sound.</td></tr><tr><td>tornado</td><td>Tornado</td><td>A swirling tornado of cloud particles spins up from the death spot.</td></tr><tr><td>totem-surge</td><td>Totem Surge</td><td>A totem flares to life and fails anyway.</td></tr><tr><td>vault-breach</td><td>Vault Breach</td><td>A vault bursts open, blasting gems outward in every direction.</td></tr><tr><td>void-pull</td><td>Void Pull</td><td>A void erupts from your victim and expands outward, then fades.</td></tr><tr><td>none</td><td>None</td><td>No kill effect will play. This is the default.</td></tr></tbody></table> > **Info:** Every effect is visual only. None of them deal damage, set fires, or change blocks, so they are safe to hand out on any server. Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/kill-effects --- # 🖌️ Kit Editor ## Kit Editor With the Kit Editor, players can modify the layout of existing kits or create their own custom kits. On new installs /kiteditor opens the kit list straight away, with Player Kits on its bottom bar when the add-on is installed. Servers that kept the older two-button menu still get it; hiding one of its two buttons makes the command skip it and open the other one directly. <figure><img src="../.gitbook/assets/Untitledvideo-MadewithClipchamp-2025-03-03T163513.147-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Kit Editor</p></figcaption></figure> ## Pre Kit Layouts On pre-kit layouts, users can access all their available pre-kit layouts. These layouts represent the kits used in different game modes. <figure><img src="../.gitbook/assets/Untitledvideo-MadewithClipchamp-2025-03-03T165156.235-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Pre Kit Layouts</p></figcaption></figure> ### Rearrange During the Countdown Players can also set up a layout during a match. While the pre-fight countdown runs, they move the kit's items around in their own inventory. When the countdown ends, the new arrangement is saved as their layout for that kit, the same as saving it in Pre Kit Layouts, and the next match with that kit uses it. This happens at the start of every round. The layout is only saved when the inventory holds exactly the items the kit gave, extra items included, with nothing dropped, used up or added. Armor has to stay in the armor slots, as in the Pre Kit Layouts menu. Players get a chat message when a layout was saved and nothing when it is unchanged. The feature only works for kits with **Custom Kit Layouts** enabled. Admins can turn it off for the whole server with **Save Countdown Kit Layout** in `/pd editor` → Settings → Match, or `match.save-countdown-kit-layout` in `config.yml`. ### Extra Items (Extended Kits) When an admin turns on [Extended Kit](../main-features/create-a-kit.md#extended-kit) for a kit, its layout screen gets an **Extra Items** button. It saves the current layout and opens the Player Kits editor with the kit's own items locked in place, so players can add items from the allowed categories around them, with the usual enchanter, stack size, durability and trim tools. The kit's own items cannot be removed there, only moved in the layout screen. Extra items are saved with the layout and given in every mode that uses the kit. They can be swapped with kit items in the layout screen like any other item, and **Reset Layout** removes them together with the arrangement. Rearranging them during the countdown is saved as well. A player can add as many as the kit allows; items from a category the admin later blocks are left out of the match. Needs the [Player Kits](../add-ons/player-kits/) add-on and Custom Kit Layouts on the kit. ## Player Kits (Add-On) From player kits, users can create their own custom kits using a selection of items pre-configured by admins. The Player Kits button sits on the bottom bar of the kit list. <figure><img src="../.gitbook/assets/Untitledvideo-MadewithClipchamp-2025-03-03T170129.196-ezgif.com-video-to-gif-converter.gif" alt=""><figcaption><p>Player Kits</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/kit-editor --- # 🏠 Lobby ## Set Spawnpoint Setting up the spawn point in the Duels is simple. Just stand on the block you want to use as the spawn point and run the command **/pduels setLobby**. Once you do this, that position will become your spawn point. <figure><img src="../.gitbook/assets/image (70).png" alt=""><figcaption><p>Spawn Point</p></figcaption></figure> The spawn point location is saved in the **cache** file after you set it successfully. ## Disable Teleportation If you don't want your users to be teleported to the lobby when they join the server, make sure to set the following option in the plugin's configuration to **false**. ```yaml lobby: teleport-on-join: true ``` Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/lobby --- # 🎒 Lost Items ## Lost Items Lost Items is a per-player storage that catches anything the plugin owed a player but could not physically hand over. Nothing is ever deleted: it is held in the database until the player claims it with /duellostitems. ## What ends up in there Items are moved to the Lost Items storage in three situations: * **A returned bet.** When a match with item betting is cancelled, every stake is handed back. If a player's inventory is full at that moment, the stake goes to Lost Items instead of dropping on the floor. * **A full inventory.** Any time the plugin gives a player items outside a match and there is no room for them. * **A payout the player was not around for.** When a match ends and the winner has already disconnected, the winnings are stored rather than lost. ## Claiming them Three seconds after joining the server, a player with anything waiting receives a message telling them so. Running /duellostitems opens the storage, and clicking an item moves it into their inventory. The command is enabled with `commands.lostitems.enabled` and can be renamed with `commands.lostitems.alternative`. When `commands.require-permission` is on, using it requires phoenixduels.commands.duellostitems. > **Info:** If a player reports that the plugin "ate" their items after a crash or a cancelled duel, Lost Items is the first place to look. Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/lost-items --- # 🥳 Party ## Create Party To create a party and play with your friends, simply execute the /party create command. This will create a party with you as the leader, allowing you to invite other users to join. <figure><img src="../../.gitbook/assets/party/create-party.png" alt="" width="563"><figcaption><p>Party</p></figcaption></figure> ## Manage your Party Now, the party management menu will come up. From that menu you can: Invite other users, split the party, disband the party, challenge another party, or play private party ffa. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp-2025-03-03T034612.626-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Party Management</p></figcaption></figure> Disbanding now asks for confirmation first, since it kicks every member and can't be undone. ## Party Commands | Command | Description | | --------------------------- | ----------------------------------------------------------------- | | `/party create` | Creates a party with you as the leader. | | `/party invite <user>` | Invites a player to your party. | | `/party accept <user>` | Accepts an invitation. | | `/party decline <user>` | Declines an invitation. | | `/party leave` | Leaves the party you are in. | | `/party kick <user>` | Removes a member. Leader only. | | `/party kickoffline` | Removes every member who is currently offline. Leader only. | | `/party transfer <user>` | Makes an online member the new leader. Leader only. | | `/party disband` | Disbands the party. Leader only. | | `/party chat <message>` | Sends a message to the party only. | | `/party challenge` | Challenges another party. Leader only. | | `/party fight` | Opens the team fight picker, splitting the party into two teams. | | `/party multifight` | Splits the party into up to four teams. (Premium) | | `/party ffa` | Starts a private free-for-all with your party. | | `/party help` | Lists the commands available to you right now. | `/party play` is an alias of `/party fight` and needs Premium. `/party help` only lists what you can actually use, so it shows a shorter list when you are not in a party. ## Team Fight vs Multi Team There are two ways to split your own party into fighting teams: * **Team Fight** (`/party fight`) - splits the party into two teams. * **Multi Team** (`/party multifight`) - splits the party into up to four teams instead of just two, for free-for-all-style team battles within your own party. Both are covered in full on [team-fights.md](team-fights.md "mention"). ## Party Chat `/party chat <message>` sends a message that only party members see. The format is set once for the server in the party settings, and understands `%player%` and `%message%`. ## Invitation Expiration Invitations do not sit around forever; how long a player has to accept one before it lapses is set in the party settings. ## Restricting Party Creation Party creation is open to everyone by default. Turning on the permission requirement in the party settings limits it to players with phoenixduels.party.create, which is the usual way to make parties a donor feature. ## Limit members to a Party To set a party limit, you can change the default value in the plugin’s settings or modify it directly in the configuration file. ```yaml party: default-slots: 5 ``` <figure><img src="../../.gitbook/assets/Screenshot 2024-12-04 224235.png" alt=""><figcaption><p>Editor > Settings</p></figcaption></figure> ## Increase Party Size To increase the party size for an individual player, you can assign them a specific permission. You can create multiple options in the configuration for the maximum number of players allowed. ```yaml party: default-slots: 5 permission-slots: '0': amount: 10 permission: phoenixduels.partymembers.10 '1': amount: 15 permission: phoenixduels.partymembers.15 ``` Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/party --- # ⚔️ Team Fights ## The Two Fight Types A party can fight itself in two ways, both started from the party menu: * **Team Fight** (`/party fight`) - exactly two teams, blue against red, up to 12 players each. * **Multi Team Fight** (`/party multifight`) - up to four teams, red, blue, green and yellow, up to 6 players each. <figure><img src="../../.gitbook/assets/party/team-fight.png" alt="" width="563"><figcaption><p>Party > Info</p></figcaption></figure> <figure><img src="../../.gitbook/assets/party/multi-team-fight.png" alt="" width="563"><figcaption><p>Party > Info</p></figcaption></figure> > **Warning:** `/party multifight` requires PhoenixDuels Premium. It also takes an optional team count, `/party multifight <2-4>`. Both open a picker where the party is already split for you. Nobody is committed to a team until the match is started, so the picker is where you sort out who plays with whom. ## Picking Teams Each team is a coloured pane with the team's name and how full it is. Click a pane to join that team yourself. Team Fight puts the two teams on either side of one row; Multi Team Fight gives each team its own row, with the pane on the left. <figure><img src="../../.gitbook/assets/party/team-pane.png" alt="" width="563"><figcaption><p>Party > Team Fight</p></figcaption></figure> <figure><img src="../../.gitbook/assets/party/multi-team-pane.png" alt="" width="563"><figcaption><p>Party > Multi Team Fight</p></figcaption></figure> The leader moves other people around instead of only themselves: click a member's head to select them, then click the pane of the team they should end up in. Each head also shows that player's elo, whether they are the leader, and whether they are online. ## Team Swapping Team Swapping is a lock for the whole party. While it is unlocked, any member can move themselves between teams. Locking it leaves only the leader able to move anyone, which is what you want once the teams are settled and you do not want someone re-shuffling as the match starts. <figure><img src="../../.gitbook/assets/party/team-swapping.png" alt="" width="563"><figcaption><p>Party > Team Fight</p></figcaption></figure> ## Spectators Party members placed in Spectators watch the match instead of playing, which is how you handle an odd number of players or someone who just wants to sit one out. Left-click the eye to join or leave the spectators, and right-click it to see who is currently in there. Sitting out is always a personal choice, so this is never blocked by the team swapping lock; the leader can still move a selected member in or out from the same item. <figure><img src="../../.gitbook/assets/party/spectators.png" alt="" width="563"><figcaption><p>Party > Team Fight</p></figcaption></figure> ## Starting the Match Start Match continues to the usual mode and arena picker, and the match begins with the teams exactly as they are in the picker. At least two teams need members; if everyone has ended up on one team, the match will not start. <figure><img src="../../.gitbook/assets/party/start-match.png" alt="" width="563"><figcaption><p>Party > Team Fight</p></figcaption></figure> <figure><img src="../../.gitbook/assets/party/start-match-multi.png" alt="" width="563"><figcaption><p>Party > Multi Team Fight</p></figcaption></figure> ## Fighting Another Party Challenge Party is the other direction: instead of splitting your own party, you pick another party on the server and the two fight each other. <figure><img src="../../.gitbook/assets/party/challenge-party.png" alt="" width="563"><figcaption><p>Party > Info</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/party/team-fights --- # 📐 Player Settings ## Player Settings Player Settings are a set of rules that allow users to customize their dueling experience. Players open the menu with /duelsettings, or from the settings item in their lobby hotbar. ## Duel Requests With Duel Requests players can enable or disable duel invitations from other users. By default, this option is disabled. <figure><img src="../.gitbook/assets/Screenshot 2025-03-03 171601.png" alt="" width="563"><figcaption><p>Player Settings</p></figcaption></figure> The same toggle is available as a command, /toggleduelrequest, and readable as a placeholder, `%phoenixduels_rejecting_duel_requests%`. ## Party Requests With Party Requests players can enable or disable party invitations from other users, exactly as above but for parties. It is off by default, meaning invitations come through normally. Its command is /togglepartyrequest, and its placeholder is `%phoenixduels_rejecting_party_requests%`. ## Ping Range (Premium) With Ping Range players choose the highest ping they accept from an opponent. Each click moves to the next step: Unrestricted, 50 ms, 100 ms, 150 ms, 200 ms, and back to Unrestricted. The item lists every step and highlights the one in use. In Unranked, Ranked and the Any Mode queue, two sides are only matched when every player's ping is within the limit of each player on the other side. A player who finds no opponent in range simply stays in the queue. Duel invitations and challenges ignore the ping range. The choice is saved with the player's other settings. The same setting is available as a command, /pingrange, which moves to the next step, or /pingrange \<ms/unrestricted> to pick one directly. The steps can be changed in the [main configuration](../configurations/configuration-files/main-configuration.md#matchmaking-premium). ## Customising the menu All three options are ordinary menu items and live in `menus/settings.yml`, so their slot, material, name and lore can all be changed. In the Ping Range lore, the `%choices%` line is replaced by the list of steps, drawn with the `ping-range-choice` and `ping-range-choice-selected` formats. Adding your own items to that menu works like any other [menu](../configurations/customize-menus.md). Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/player-settings --- # ⚙️ Settings In the settings, you can navigate and configure the plugin options. The settings are split into five categories: * **Match Settings** - everything that applies while a duel is running. [Click Here](match/README.md) * **Universal Settings** - [betting](../betting.md), party defaults and the ranked requirements. * **Elo Settings** - the K-factor, rating bounds and the ranked matchmaking tolerance. See [Elo](../elo.md). * **Plugin Settings** - commands, worlds, language, leaderboard refresh, performance, [Discord match logging](../discord-match-log.md) and match replays. * **Feature Toggling** - switches individual plugin behaviours on and off. [Click Here](#feature-toggling) <figure><img src="../../.gitbook/assets/editor/settings/settings_main_menu.gif" alt="" width="554"><figcaption><p>Editor > Settings</p></figcaption></figure> ## Feature Toggling The last settings category is a short list of behaviours the plugin performs by default and that some servers would rather it did not. Every entry is a **disable** switch, shown as Is Disabled in its tooltip: left-click flips it, and leaving it at No keeps the behaviour. The same values live in [Feature Toggles](../../configurations/configuration-files/README.md#feature-toggles) as `feature_toggles.yml`, so editing either one is the same change. <figure><img src="../../.gitbook/assets/feature-toggling/feature-toggling.png" alt="" width="563"><figcaption><p>Editor > Settings</p></figcaption></figure> ### Player Freeze Players are held in place during the pre-fight countdown so neither side can reposition before the fight starts. Disable it to let them move while the countdown runs. <figure><img src="../../.gitbook/assets/feature-toggling/player-freeze.png" alt="" width="563"><figcaption><p>Editor > Settings > Toggling</p></figcaption></figure> ### Leather Armor Coloring Leather armor handed out by a kit is dyed to match the team colour so teams stay easy to tell apart. Disable it to keep the armor exactly as the kit defines it. <figure><img src="../../.gitbook/assets/feature-toggling/leather-armor-coloring.png" alt="" width="563"><figcaption><p>Editor > Settings > Toggling</p></figcaption></figure> ### Vanilla Stat Tracking Kills and deaths in a duel count toward the player's vanilla Minecraft statistics as well as the plugin's own. Disable it to keep duels out of the vanilla statistics screen, and out of anything reading them such as an advancement or a scoreboard objective. <figure><img src="../../.gitbook/assets/feature-toggling/vanilla-stat-tracking.png" alt="" width="563"><figcaption><p>Editor > Settings > Toggling</p></figcaption></figure> ### Invitations in Match Duel invitations still reach a player who is already fighting. Disable it so a pop-up never lands mid-fight. <figure><img src="../../.gitbook/assets/feature-toggling/invitations-in-match.png" alt="" width="563"><figcaption><p>Editor > Settings > Toggling</p></figcaption></figure> ### Arena Border Knockback Players who reach the edge of the battle region are pushed back in, which keeps a fight inside the arena without needing walls. Disable it to remove that push, and only do so if the arena is physically enclosed, otherwise players can walk out of the fight. <figure><img src="../../.gitbook/assets/feature-toggling/arena-border-knockback.png" alt="" width="563"><figcaption><p>Editor > Settings > Toggling</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/settings --- # 🔀 Feature Toggling ## Feature Toggling The last settings category is a short list of behaviours the plugin performs by default and that some servers would rather it did not. Every entry is a **disable** switch, shown as Is Disabled in its tooltip: left-click flips it, and leaving it at No keeps the behaviour. The same values live in [feature-toggles.md](../../configurations/configuration-files/feature-toggles.md "mention") as `feature_toggles.yml`, so editing either one is the same change. <figure><img src="../../.gitbook/assets/feature-toggling/feature-toggling.png" alt="" width="563"><figcaption><p>Editor > Settings</p></figcaption></figure> ## Player Freeze Players are held in place during the pre-fight countdown so neither side can reposition before the fight starts. Disable it to let them move while the countdown runs. <figure><img src="../../.gitbook/assets/feature-toggling/player-freeze.png" alt="" width="563"><figcaption><p>Editor > Settings > Toggling</p></figcaption></figure> ## Leather Armor Coloring Leather armor handed out by a kit is dyed to match the team colour so teams stay easy to tell apart. Disable it to keep the armor exactly as the kit defines it. <figure><img src="../../.gitbook/assets/feature-toggling/leather-armor-coloring.png" alt="" width="563"><figcaption><p>Editor > Settings > Toggling</p></figcaption></figure> ## Vanilla Stat Tracking Kills and deaths in a duel count toward the player's vanilla Minecraft statistics as well as the plugin's own. Disable it to keep duels out of the vanilla statistics screen, and out of anything reading them such as an advancement or a scoreboard objective. <figure><img src="../../.gitbook/assets/feature-toggling/vanilla-stat-tracking.png" alt="" width="563"><figcaption><p>Editor > Settings > Toggling</p></figcaption></figure> ## Invitations in Match Duel invitations still reach a player who is already fighting. Disable it so a pop-up never lands mid-fight. <figure><img src="../../.gitbook/assets/feature-toggling/invitations-in-match.png" alt="" width="563"><figcaption><p>Editor > Settings > Toggling</p></figcaption></figure> ## Arena Border Knockback Players who reach the edge of the battle region are pushed back in, which keeps a fight inside the arena without needing walls. Disable it to remove that push, and only do so if the arena is physically enclosed, otherwise players can walk out of the fight. <figure><img src="../../.gitbook/assets/feature-toggling/arena-border-knockback.png" alt="" width="563"><figcaption><p>Editor > Settings > Toggling</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/settings/feature-toggling --- # ⚔️ Match Settings All match-related settings can be found in this category, where you can navigate and configure them. <figure><img src="../../../.gitbook/assets/editor/settings/match/match_settings_main.png" alt="" width="563"><figcaption><p>Editor > Settings</p></figcaption></figure> ## Default Finishing Seconds With the Default Finishing Seconds setting, you can define for how long players will need to wait before leaving the arena. <figure><img src="../../../.gitbook/assets/editor/settings/match/default_finishing_seconds.png" alt="" width="563"><figcaption><p>Editor > Settings > Match Settings</p></figcaption></figure> ## Extended Finishing Seconds With the Extended Finishing Seconds setting, you can define a longer wait time before players leave the arena, used instead of the default in specific situations (such as when a match ends with a betting payout to display). <figure><img src="../../../.gitbook/assets/editor/settings/match/extended-finishing-seconds.png" alt="" width="563"><figcaption><p>Match (Extended Finishing Seconds)</p></figcaption></figure> ## Maximum Allowed Rounds With the Maximum Allowed Rounds setting, you can define the maximum number of rounds a match can have. This is useful to prevent players from setting a match with an infinite number of rounds, which can cause arenas to be occupied for a long time. <figure><img src="../../../.gitbook/assets/editor/settings/match/maximum_allowed_rounds.png" alt="" width="563"><figcaption><p>Editor > Settings > Match Settings</p></figcaption></figure> ## Rounds System With the Rounds System setting, you define how the rounds a player picks are interpreted: * **First To** - the number is how many round wins are needed to clinch the match (the original behavior). * **Best Of** - the number is the total rounds played, and whoever wins the majority of them wins the match. <figure><img src="../../../.gitbook/assets/editor/settings/match/rounds-system.png" alt="" width="563"><figcaption><p>Match (Rounds System)</p></figcaption></figure> ## Launch Fireworks for Winner With the launch fireworks for winner setting, you can enable or disable the fireworks that are launched for the winner at the end of a match. By default, this setting is enabled. <figure><img src="../../../.gitbook/assets/editor/settings/match/launch_fireworks_for_winner.png" alt="" width="563"><figcaption><p>Editor > Settings > Match Settings</p></figcaption></figure> ## Edit Match Commands With the edit match commands setting, you can configure the commands that can be executed or not being executed during a match. * **Match Commands Feature** - [Click Here](#match-commands) <figure><img src="../../../.gitbook/assets/editor/settings/match/match_commands.png" alt="" width="563"><figcaption><p>Editor > Settings > Match Settings</p></figcaption></figure> ## Restore Last Inventory With the restore last inventory setting, you can enable or disable the option for players to restore their inventory after a match. By default, this setting is enabled, allowing players to easily get back their items after a match. This option works with the Player Inventory as the game modes Loadout Type. <figure><img src="../../../.gitbook/assets/editor/settings/match/match_settings_restore_inventory.png" alt="" width="563"><figcaption><p>Editor > Settings > Match Settings</p></figcaption></figure> ## Require Empty Inventory With the require empty inventory setting, you can enable or disable the requirement for players to have an empty inventory before joining a match. By default, this setting is disabled, allowing players to join matches with items in their inventory. <figure><img src="../../../.gitbook/assets/editor/settings/match/require_empty_inv.png" alt="" width="563"><figcaption><p>Editor > Settings > Match Settings</p></figcaption></figure> ## Floor Kill With the floor kill setting, you can enable or disable instant elimination for players who fall onto an arena's floor (below the battle region). By default, this setting is enabled. Disable it if you'd rather handle falls yourself with a gamemode rule, such as **Touch Void Die**. <figure><img src="../../../.gitbook/assets/editor/settings/match/floor-kill.png" alt="" width="563"><figcaption><p>Match (Floor Kill)</p></figcaption></figure> ## Spectator Engine With the Spectator Engine setting, you choose which system is used to spectate a match: * **Default** (recommended) - the regular Minecraft spectator gamemode. * **Legacy** - the player is turned into a "ghost" and kept in survival mode instead. <figure><img src="../../../.gitbook/assets/settings/spectator-engine.png" alt="" width="563"><figcaption><p>Editor > Settings > Match</p></figcaption></figure> ## Per Arena Tab List With this setting, a player's tab list, while in a match or spectating one, only shows that arena's players and spectators instead of every player on the server. <figure><img src="../../../.gitbook/assets/editor/settings/match/per-arena-tab-list.png" alt="" width="563"><figcaption><p>Match (Per Arena Tab List)</p></figcaption></figure> ## Spectator Tab List Prefix With this setting, you can define a prefix shown before a spectator's name in the tab list, so players and spectators are easy to tell apart at a glance. <figure><img src="../../../.gitbook/assets/editor/settings/match/spectator-tab-list-prefix.png" alt="" width="563"><figcaption><p>Match (Spectator Tab List Prefix)</p></figcaption></figure> ## Prevent Same IP in Ranked When enabled, ranked matchmaking will never pair players sharing the same IP address into the same match. <figure><img src="../../../.gitbook/assets/editor/settings/match/prevent-same-ip-in-ranked.png" alt="" width="563"><figcaption><p>Match (Prevent Same IP In Ranked)</p></figcaption></figure> ## Sneak to Ready When enabled, the pre-fight countdown ends immediately once every player in the match sneaks, instead of always waiting it out. <figure><img src="../../../.gitbook/assets/editor/settings/match/sneak-to-ready.png" alt="" width="563"><figcaption><p>Match (Sneak To Ready)</p></figcaption></figure> ## Save Countdown Kit Layout (Premium) When enabled, a player who rearranges a premade kit in their inventory during the pre-fight countdown keeps that arrangement as their layout for the kit, the same as saving it in Pre Kit Layouts. It is saved when the countdown ends, at every round, and only if the kit's items are all still there with nothing dropped, used up or added, and the armor is still worn. By default, this setting is enabled. It only applies to kits with **Custom Kit Layouts** enabled. See [Kit Editor](../../kit-editor.md#rearrange-during-the-countdown). ## Match Found Notice (Premium) When enabled, players matched by the Unranked, Ranked or FFA queue see a **MATCH FOUND!** title and hear a sound, and are teleported to the arena after **Match Found Delay** (2 seconds by default). By default, this setting is disabled. Duel invites and party fights are not affected. The sound, its volume and pitch are set in `config.yml` under `match.queue-match-found.sound` as `NAME;volume;pitch`, and the title texts under `queue.match-found` in the translation file. If a player goes offline, joins another match or queues again during the delay, the match is cancelled and the other players get a message so they can queue again. If the match itself cannot start once the delay is over, for example because the arena was disabled in the meantime, every matched player is put back in the queue they came from. If the next match found for them fails to start as well, they are taken out of the queue and told to join again. ## Prevent Party Queueing When enabled, parties are not allowed to queue up for Unranked or Ranked modes. <figure><img src="../../../.gitbook/assets/editor/settings/match/prevent-party-queueing.png" alt="" width="563"><figcaption><p>Match (Prevent Party Queueing)</p></figcaption></figure> ## Vanished Players Players you cannot see, because a staff plugin has vanished them, are left out of the suggestions for /duel and /party, so a vanished admin does not show up as a duel target. This is automatic and has no option; it follows whatever your vanish plugin tells the server. A player who is still vanished when a round starts is brought back out of vanish first, since a match with an invisible participant in it is not playable. ## Match Commands ### Match Commands Type With the Match Commands Type, you can decide whether the commands will be whitelisted or blacklisted. <figure><img src="../../../.gitbook/assets/editor/settings/match/match_commands_mode.png" alt="" width="563"><figcaption><p>Editor > Settings > Match Commands </p></figcaption></figure> ### Whitelisted / Blacklisted Commands With this option you can either add commands to the whitelist or blacklist, depending on the Match Commands Type you have selected. <figure><img src="../../../.gitbook/assets/editor/settings/match/whitelist_commands.png" alt="" width="563"><figcaption><p>Editor > Settings > Match Commands </p></figcaption></figure> ### Note By default, the plugin blocks all commands for non-OP players. If players are able to execute certain commands during a match, it is because that plugin did not properly register that command. In that case, make sure to add it to the blacklist manually. ## Custom Nametags The Custom Nametags setting displays a nametag above the player’s name and in the tab list. The player's name also takes their team colour, above the head and in the tab list. Party FFA has no teams, so names keep their normal colour there. Custom nametags are not shown on Folia. <figure><img src="../../../.gitbook/assets/editor/settings/match/custom_nametags.png" alt="" width="563"><figcaption><p>Editor > Settings > Custom Nametags </p></figcaption></figure> ### Custom Nametags Status This option allows you to define whether the nametags will be enabled or not in the matches. By default, this option is enabled. <figure><img src="../../../.gitbook/assets/editor/settings/match/nametags_status.png" alt="" width="563"><figcaption><p>Editor > Settings > Custom Nametags </p></figcaption></figure> ### Custom Nametags Format This option allows you to customize the nametags format. The default format for the custom nameplates is `%color%[%team%]` which are internal placeholders. If you want to use the custom nametags on an external plugin that supports PlaceholderAPI, you can use `%phoenixduels_nametag_color%[%phoenixduels_nametag_letter%]` instead. <figure><img src="../../../.gitbook/assets/editor/settings/match/nametags_format.png" alt="" width="563"><figcaption><p>Editor > Settings > Custom Nametags </p></figcaption></figure> ## Reconnecting When a player disconnects during a round, their spot is held for a while instead of counting as leaving. The round pauses for everyone: nobody takes damage, the round timer stops and players are frozen in place, while an action bar counts down for the others. If the player logs back in before the window ends, they are put back where they were with the same health, hunger, effects, kit, round and score, and the round continues. If the window runs out, nobody else in the match is online, or the match ends, it counts as leaving like before. There is no window for a player who took damage from another player shortly before disconnecting, for a player who already used up their reconnects in the match, or in modes where players fight with their own inventory and drop it on death. While a player is away, they are returned to the lobby with their own inventory, so a crash or restart during the window does not cost them their items. ### Reconnect Window Turns the reconnect window on or off. ### Reconnect Window Length How many seconds the round waits for a disconnected player before it counts as leaving. ### Combat Log Protection A player who took damage from another player within this many seconds before disconnecting gets no window, so quitting a lost fight still counts as leaving. ### Reconnects Per Match How many times one player can use the reconnect window in a single match. ## Server Restarts When the server stops or the plugin is disabled, running matches are cancelled: no Elo or stats change, money and item bets are returned and players get their inventory back, with a message telling them why. A match whose winner was already decided finishes as usual. ## Team Chat Team Chat allows all players who are part of the game to communicate with each other in chat. Additionally, spy messages are sent to the console, and users with the `phoenixduels.admin.spy` permission can also see all Team Chat messages. <figure><img src="../../../.gitbook/assets/editor/settings/match/team_chat_ingame.png" alt="" width="563"><figcaption><p>Editor > Settings > Team Chat </p></figcaption></figure> ### Team Chat Status This option allows you to define whether the team chat will be enabled or not in the matches. By default, this option is enabled. <figure><img src="../../../.gitbook/assets/editor/settings/match/team_chat_status.png" alt="" width="563"><figcaption><p>Editor > Settings > Team Chat </p></figcaption></figure> ### Team Chat Format This option allows you to customize the team chat format. The default format for the team chat is `&8[&a&lArena&8] &e%player%&8: &f%message%` which are internal placeholders. <figure><img src="../../../.gitbook/assets/editor/settings/match/team_chat_format.png" alt="" width="563"><figcaption><p>Editor > Settings > Team Chat </p></figcaption></figure> ### Match Chat Scope This option defines who receives chat messages sent during a match: * **Team** - only your teammates receive it. * **Arena** - everyone in the match, including opponents and spectators, receives it. <figure><img src="../../../.gitbook/assets/editor/settings/match/team-chat-scope.png" alt="" width="563"><figcaption><p>Match Chat (Match Chat Scope)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/settings/match --- # 🏷️ Custom Nametags ## Custom Nametags The Custom Nametags setting displays a nametag above the player’s name and in the tab list. The player's name also takes their team colour, above the head and in the tab list. Party FFA has no teams, so names keep their normal colour there. Custom nametags are not shown on Folia. <figure><img src="../../../.gitbook/assets/editor/settings/match/custom_nametags.png" alt="" width="563"><figcaption><p>Editor > Settings > Custom Nametags </p></figcaption></figure> ## Custom Nametags Status This option allows you to define whether the nametags will be enabled or not in the matches. By default, this option is enabled. <figure><img src="../../../.gitbook/assets/editor/settings/match/nametags_status.png" alt="" width="563"><figcaption><p>Editor > Settings > Custom Nametags </p></figcaption></figure> ## Custom Nametags Format This option allows you to customize the nametags format. The default format for the custom nameplates is `%color%[%team%]` which are internal placeholders. If you want to use the custom nametags on an external plugin that supports PlaceholderAPI, you can use `%phoenixduels_nametag_color%[%phoenixduels_nametag_letter%]` instead. <figure><img src="../../../.gitbook/assets/editor/settings/match/nametags_format.png" alt="" width="563"><figcaption><p>Editor > Settings > Custom Nametags </p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/settings/match/custom-nametags --- # 🤖 Match Commands ## Match Commands Type With the Match Commands Type, you can decide whether the commands will be whitelisted or blacklisted. <figure><img src="../../../.gitbook/assets/editor/settings/match/match_commands_mode.png" alt="" width="563"><figcaption><p>Editor > Settings > Match Commands </p></figcaption></figure> ## Whitelisted / Blacklisted Commands With this option you can either add commands to the whitelist or blacklist, depending on the Match Commands Type you have selected. <figure><img src="../../../.gitbook/assets/editor/settings/match/whitelist_commands.png" alt="" width="563"><figcaption><p>Editor > Settings > Match Commands </p></figcaption></figure> ## Note By default, the plugin blocks all commands for non-OP players. If players are able to execute certain commands during a match, it is because that plugin did not properly register that command. In that case, make sure to add it to the blacklist manually. Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/settings/match/match-commands --- # 💬 Team Chat ## Team Chat Team Chat allows all players who are part of the game to communicate with each other in chat. Additionally, spy messages are sent to the console, and users with the `phoenixduels.admin.spy` permission can also see all Team Chat messages. <figure><img src="../../../.gitbook/assets/editor/settings/match/team_chat_ingame.png" alt="" width="563"><figcaption><p>Editor > Settings > Team Chat </p></figcaption></figure> ## Team Chat Status This option allows you to define whether the team chat will be enabled or not in the matches. By default, this option is enabled. <figure><img src="../../../.gitbook/assets/editor/settings/match/team_chat_status.png" alt="" width="563"><figcaption><p>Editor > Settings > Team Chat </p></figcaption></figure> ## Team Chat Format This option allows you to customize the team chat format. The default format for the team chat is `&8[&a&lArena&8] &e%player%&8: &f%message%` which are internal placeholders. <figure><img src="../../../.gitbook/assets/editor/settings/match/team_chat_format.png" alt="" width="563"><figcaption><p>Editor > Settings > Team Chat </p></figcaption></figure> ## Match Chat Scope This option defines who receives chat messages sent during a match: * **Team** - only your teammates receive it. * **Arena** - everyone in the match, including opponents and spectators, receives it. <!-- TODO: add screenshot --> Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/settings/match/team-chat --- # ⚙️ Settings ## Settings In the settings, you can navigate and configure the plugin options. The settings have five categories: * **Match Settings** - [Click Here](match/README.md) <figure><img src="../../.gitbook/assets/editor/settings/settings_main_menu.gif" alt="" width="554"><figcaption><p>Editor > Settings</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/settings --- # 👁️ Spectator Mode ## Spectator Mode Anyone can watch a match in progress without taking part in it. Spectators are invisible to the players, cannot interfere with the fight, and are moved out with everyone else when the match ends. ## Joining a Match There are three ways in: * /spectate \<player> - jump straight to whoever that player is fighting. * /duelmatches - open a menu listing every match currently running, and click one to watch it. * The `spectator_players` menu, opened from the spectator hotbar, to jump between the players of the match you are already watching. Spectators arrive at the arena's **Spectator Position** if one was defined when the map was set up. If none was set, they spawn on top of the player they are watching. ## Spectator Hotbar While spectating, players are given a small hotbar defined in `spectator_hotbar.yml`. Out of the box it contains a single **Leave** item, and you can add as many more as you like. See [Spectator Hotbar](../configurations/configuration-files/README.md#spectator-hotbar) for the file format. ## Who can spectate **External Spectator** - Custom matches carry their own switch for whether outsiders may watch at all. It is toggled in the match creation menu, and when it is off, only the participants can see the fight. > **Info:** A player who disconnects during a match cannot come back to it as a spectator. This is deliberate: it stops a player from leaving a fight and immediately returning to watch their own opponents. ## Permissions phoenixduels.region.bypass lets a player walk into the region of any ongoing match without joining it as a spectator, which is the usual way staff get eyes on a fight. When `commands.require-permission` is on, /spectate requires phoenixduels.commands.duels. ## Related Settings The [Match Settings](settings/match/README.md) page covers the **Spectator Engine**, the **Spectator Tab List Prefix**, and the **Per Arena Tab List** option, all of which change how spectators behave and how they appear to others. Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/spectator --- # 📖 Statistics ## Your Stats You can check your stats by clicking the item frame in your hotbar or using the `/stats` command. This will show all your statistics for unranked, ranked, and challenge modes. <figure><img src="../.gitbook/assets/Screenshot 2025-03-03 170624.png" alt="" width="563"><figcaption><p>Your Stats</p></figcaption></figure> ## Leaderboard The leaderboard lets you view the top players in unranked or ranked modes for a specific time period. You can filter by kills, deaths, wins, losses, and Elo. For a more customized leaderboard, use the PlaceholderAPI placeholders provided by the plugin. Leaderboards are cached rather than queried on every lookup. How often they refresh is set by `leaderboard-fetch-interval` in the [main configuration](../configurations/configuration-files/main-configuration.md), which is the setting to lower if a hologram feels out of date, and to raise if the queries are heavy. <figure><img src="../.gitbook/assets/Untitledvideo-MadewithClipchamp-2025-03-03T171507.885-ezgif.com-video-to-gif-converter.gif" alt=""><figcaption><p>Leaderboard Menu</p></figcaption></figure> ## Match History Every finished match is always recorded to a player's match history, no matter what other settings are configured. Kills, deaths, wins, losses and draws are counted from it on both versions. Browsing it is a Premium feature: use `/duelhistory` to browse your own history, or `/duelhistory <user>` to browse someone else's. From the history list, each match entry is interactive: * **Left-Click** - watches that match's video replay, if one was recorded. * **Right-Click** - opens the **Recap**: a read-only snapshot of that player's inventory, armor, health, and potion effects at the exact moment the match ended. For a player who quit or used /leave mid-match, it is taken at the moment they left. <figure><img src="../.gitbook/assets/match-history/match-history-entry.png" alt="" width="563"><figcaption><p>Match History (crystal - map_9701)</p></figcaption></figure> ## Match Replays Separately from match history stats, Phoenix Duels can record a video-style replay of a match that anyone can watch afterwards from the history list. This is a Premium feature and needs the free **BetterReplay** plugin installed. Without it, recording stays off while match history and recaps keep working normally. ### Settings **Match Recording** turns recording on and off for the whole server. **Retention** is how many days a recording is kept, seven by default. A daily sweep deletes anything older and clears the replay from the match history entry it belonged to, so the entry stays in the history with only its recap left. **Maximum Match Length** caps how long a single recording can run, thirty minutes by default. A match that goes past it keeps playing normally; only the recording stops. All three live in `replay.yml`: ```yaml enabled: true retention-days: 7 max-match-length-minutes: 30 ``` ### Watching a Replay Replays play back in the real arena, at the coordinates the match was recorded in, because BetterReplay has no separate world to stage them in. Two things follow from that. The arena instance is reserved for the whole time somebody is watching, exactly as a live match reserves it, so nobody gets dropped into a duel on top of the viewer. If the arena is already busy when a player tries to watch, playback is refused rather than queued. A viewer therefore takes an arena out of circulation. On a map with a single instance this is noticeable at peak hours, so it is worth pairing replays with a map that has several arenas. Watching is gated behind phoenixduels.replay.watch. Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/statistics --- # 🛡️ Armor Trims ## Armor Trims Armor Trims let a player decorate the armor they fight in without changing anything about how it performs. A trim is purely cosmetic, it is remembered per player, and it is reapplied automatically every time that player is handed the matching piece of armor in a match. > **Warning:** Armor Trims are a Premium feature. ## The Trims Menu /dueltrims opens a grid with one row per armor slot and one column per armor material, so a player chooses a trim for, say, Netherite Boots independently of their Iron Boots. Each tile previews the trim currently applied to that exact piece. <figure><img src="../.gitbook/assets/trims/trims-menu.png" alt="" width="563"><figcaption><p>Armor Trims</p></figcaption></figure> Picking a tile asks for a pattern and then a material; the two together make the trim. Right-clicking a tile that already has one clears it, after a confirmation. <figure><img src="../.gitbook/assets/trims/select-pattern.png" alt="" width="563"><figcaption><p>Armor Trims > Select a Trim Pattern</p></figcaption></figure> <figure><img src="../.gitbook/assets/trims/select-material.png" alt="" width="563"><figcaption><p>Armor Trims > Select a Trim Material</p></figcaption></figure> <figure><img src="../.gitbook/assets/trims/trim-applied.png" alt="" width="563"><figcaption><p>Armor Trims</p></figcaption></figure> Because trims are stored per slot and per material, a player only ever sees their own choice on the pieces they actually get handed. A mode whose kit gives out Diamond Chestplates ignores whatever they picked for Leather. ## Kit Layouts Players who arrange their own premade kit layouts can also apply a trim from the armor slots of the layout editor, so the trim travels with that layout rather than being a global choice. This entry point is gated separately from the menu. ## Permissions Trims are locked down at three levels: getting into the menu at all, and then each individual pattern and material. A pattern or material the player has no permission for still appears in the picker, shown as locked and naming the permission it needs, so players can see what is available to unlock. | Permission | Description | | ----------------------------------------- | ---------------------------------------------------- | | phoenixduels.trims.use | Allows opening the trims menu. | | phoenixduels.kitlayouts.trims | Allows applying trims from a premade kit layout. | | phoenixplugins.trim.pattern.\<pattern> | Allows using the trim pattern matching `<pattern>`. | | phoenixplugins.trim.material.\<material> | Allows using the trim material matching `<material>`. | The pattern and material nodes use the vanilla registry key, so the Sentry pattern is `phoenixplugins.trim.pattern.sentry` and the Redstone material is `phoenixplugins.trim.material.redstone`. These two are shared with the other Phoenix plugins rather than being specific to Duels, so a player granted them once has them everywhere. > **Info:** Trims are also available inside the Player Kits add-on's kit editor, using the same permission nodes. Source: https://www.phoenixplugins.com/docs/phoenix-duels/features/trims --- # 🔌 First Installation ## Installation <a href="#installation" id="installation"></a> 1. Download the jar from our website 2. Install PhoenixDuels-?.jar into your "Plugins" folder. 3. Start your server 4. Configure the plugin by yml file or by in-game editor `/phoenixduels editor` 5. Restart the plugin **/pduels reload** ## Add-on Installation 1. Select the add-ons you wish to install. 2. The add-ons will be included in the same jar. 3. Drag and drop the jar in the plugins folder 4. The PhoenixDuels jar will generate the add-ons in the `PhoenixDuels\addons` folder 5. [Optional] If you wish to download the add-ons separately, you can put them manually to that folder. <figure><img src=".gitbook/assets/extra/installation.png" alt=""><figcaption><p>Download PhoenixDuels Popup</p></figcaption></figure> > **Info:** We strongly advise using the latest STABLE build of the plugin, as it includes the most recent bug fixes. ## Version Support The plugin supports Spigot, any Spigot forks, Paper, and any Paper forks. It should also work on any custom modded servers. > **Warning:** Folia is supported, but the support is still **experimental**. Test it on a staging server before putting it in front of your players, and report anything you run into. <table><thead><tr><th>Minecraft Version</th><th data-type="checkbox"></th></tr></thead><tbody><tr><td>26.x</td><td>true</td></tr><tr><td>1.21.x</td><td>true</td></tr><tr><td>1.20.4 - 1.20.6</td><td>true</td></tr><tr><td>1.20.3 and older</td><td>false</td></tr></tbody></table> > **Info:** Older versions were supported up to an earlier release of the plugin. If you are still on 1.20.3 or below, keep using that release. Source: https://www.phoenixplugins.com/docs/phoenix-duels/first-installation --- # 🏹 Create a Kit ## What a Kit Is A kit is a saved inventory: armour, hotbar, contents and offhand, stored once and given to both players when a match starts. Kits live on the server, not inside a mode, so one kit can be used by as many modes as you like. Each one is saved to its own file under plugins/PhoenixDuels/kits/. A mode only uses a kit if its loadout is set to **Premade Kit**; the other loadout types hand players their own inventory instead. See [create-a-mode](create-a-mode/ "mention"). <figure><img src="../.gitbook/assets/kits/kits.png" alt="" width="563"><figcaption><p>Editor</p></figcaption></figure> ## Creating a Kit The kits screen lists every kit on the server. Click **Add Kit** to create one, and it opens straight into the kit's own screen. <figure><img src="../.gitbook/assets/kits/add-kit.png" alt="" width="563"><figcaption><p>Editor > Kits</p></figcaption></figure> <figure><img src="../.gitbook/assets/kits/kit-entry.png" alt="" width="563"><figcaption><p>Editor > Kits</p></figcaption></figure> Turning **Reordering** on switches the list into sort mode: click one kit, then another, and the two swap places. The order set here is the order kits appear in anywhere players pick one. <figure><img src="../.gitbook/assets/kits/reordering.png" alt="" width="563"><figcaption><p>Editor > Kits</p></figcaption></figure> > **Warning:** The Lite edition is limited to 5 kits. Kits beyond that are not loaded on startup. ## Identifier The unique id of the kit, and what a mode stores when it links to it. It cannot contain spaces and cannot match another kit. Changing it later is safe from the editor, but any mode already linked to the old id has to be pointed at the new one. <figure><img src="../.gitbook/assets/kits/identifier.png" alt="" width="563"><figcaption><p>Editor > Kits > Kit</p></figcaption></figure> ## Display The name and icon players see wherever the kit is shown. This is display only; the identifier is what everything else refers to. <figure><img src="../.gitbook/assets/kits/display.png" alt="" width="563"><figcaption><p>Editor > Kits > Kit</p></figcaption></figure> ## Kit Items This is the kit itself. Left-click opens the items editor, and the lore shows how many items are currently stored. Shift + right-click skips the editor and copies your own inventory straight onto the kit, replacing whatever was there. <figure><img src="../.gitbook/assets/kits/kit-items.png" alt="" width="563"><figcaption><p>Editor > Kits > Kit</p></figcaption></figure> ### Kit Items Editor The editor mirrors a player inventory rather than a plain chest: * The **top row** holds the equipment. The four slots on the left are boots, leggings, chestplate and helmet, in that order, and the slot on the right is the offhand, labelled Extra Slot. * The **middle three rows** are the inventory contents. * The **bottom row** is the hotbar, in the order the player will see it. Empty slots are shown as coloured panes so the shape stays readable. Drag and drop an item onto any slot to set it, and drag it back out to clear it. <figure><img src="../.gitbook/assets/kits/kit-items-editor.png" alt="" width="563"><figcaption><p>Kit Items Editor</p></figcaption></figure> **Import from Inventory** fills the whole kit from what you are currently carrying, which is the fastest way to build one: gear yourself up in creative, then import. <figure><img src="../.gitbook/assets/kits/import-from-inventory.png" alt="" width="563"><figcaption><p>Kit Items Editor</p></figcaption></figure> **Clear All Items** empties the kit. There is no undo, so re-import or rebuild it afterwards. <figure><img src="../.gitbook/assets/kits/clear-all-items.png" alt="" width="563"><figcaption><p>Kit Items Editor</p></figcaption></figure> ## Custom Kit Layouts When this is on, players may reorder this kit for themselves through the [kit-editor.md](../features/kit-editor.md "mention"), keeping the same items but arranging them the way they play. Turn it off for a kit whose exact arrangement matters, such as one built around a specific hotbar slot. <figure><img src="../.gitbook/assets/kits/custom-kit-layouts.png" alt="" width="563"><figcaption><p>Editor > Kits > Kit</p></figcaption></figure> > **Warning:** Custom Kit Layouts requires PhoenixDuels Premium. Creating and editing kits itself is available on every edition. ## Extended Kit Lets players add their own extra items on top of this kit from its layout screen, picked from the [Player Kits](../add-ons/player-kits/) categories. The kit's own items always stay in the kit. The button only appears when the Player Kits add-on is installed, and the kit needs Custom Kit Layouts on. * **Enabled** turns it on for this kit. It is off on every kit by default. * **Allowed Categories** lists every category; click one to allow or block it. With none picked, every category is allowed, including ones added later. The last allowed category cannot be blocked. * **Max Extra Items** caps how many extra items a player can add, from 1 to 41. The default is 9. Changing the categories or the cap later applies at the next match: extra items over the cap or from a blocked category are left out. > **Warning:** Extended Kit requires PhoenixDuels Premium and the Player Kits add-on. ## Permission Requirement Holds a permission node for this kit, together with a toggle for whether it is required. Left-click switches the toggle, right-click sets the node. <figure><img src="../.gitbook/assets/kits/permission-requirement.png" alt="" width="563"><figcaption><p>Editor > Kits > Kit</p></figcaption></figure> ## Using the Kit in a Mode Open the mode you want, set its **Loadout** to Premade Kit with a left-click, then right-click the same item to pick which kit it uses. The loadout shows the linked kit's id next to the type, or No kit linked if you have not chosen one yet. A mode left in that state has nothing to hand out at the start of a match, so always finish the link. <figure><img src="../.gitbook/assets/kits/loadout-type.png" alt="" width="563"><figcaption><p>Editor > Modes > Mode</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/main-features/create-a-kit --- # 🗺️ Create a Map ## Create Map A map can contain several arenas where players can fight according to a game mode. It makes it much easier to duplicate arenas and have multiple ones with the same map. To create a map, simply click on the stained glass and create your map! <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 185827.png" alt="" width="554"><figcaption><p>Editor > Edit Maps</p></figcaption></figure> ## Reordering You can use the reordering option to sort the maps in your desired order for the maps menu. This will change the position of the maps both in the editor, and when the user is selecting a map. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-21 180529.png" alt=""><figcaption><p>Editor > Edit Maps</p></figcaption></figure> ## Customize the Arena ### Identifier With this option, you can set an identifier for the arena. Note that the arena identifier is unique and used internally by the plugin, and its different from the display name. For example, if your arena's name is Candy Land the identifier should be set to candy\_land. > **Danger:** If your server is in production, we don't recommend changing this value. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 194525.png" alt="" width="563"><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> ### Display Name With this option, you can adjust the display name of the arena. The display name is typically shown in the scoreboard. For the display name, you can use the default Minecraft color codes. For hex colors, use the \&#D6D045 format. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp96-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> ### Display Icon With display icon, you can set a specific material as your maps icon. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 200555.png" alt="" width="563"><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> ### Allowed Modes With **Allowed Modes**, you can select which game modes users are permitted to play on that specific arena. This feature lets you control the types of gameplay available in each arena, ensuring the right modes are enabled for the intended experience. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp97-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> In the example above, only players queuing for Classic mode will have access to that arena. ### Teleport to Lobby When enabled, this option teleports users to the designated lobby location set for the Duels plugin. otherwise, they return to their previous location. \ Quick Tip: The lobby can be set with /pduels setLobby <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 201657.png" alt="" width="563"><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> ## Edit the Arena ### Template: This option allows you to adjust settings for the universal region, battle region, FFA position, and spectator position. Additionally, you can now configure multiple team positions and assign colors to each team. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 202755.png" alt=""><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> ### Redefine Region This option lets you redefine the universal and battle regions, and the FFA, spectator locations. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 204531.png" alt="" width="563"><figcaption></figcaption></figure> ### Add Team Spawn Positions This option lets you set up to 4 spawn locations for players, ideal for 4v4 matches, ensuring each player spawns at a different location <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 204100.png" alt="" width="563"><figcaption><p>Editor > Maps > Arena > Template</p></figcaption></figure> ### Change Team Color This option allows you to customize the color assigned to each team. By default Team 1 is Red and Team 2 is Blue. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 204317.png" alt="" width="563"><figcaption><p>Editor > Maps > Arena > Template</p></figcaption></figure> ## Duplicate an Arena This option allows you to duplicate your current arena and place it elsewhere, making it easier to create new arenas quickly with similar settings to the original. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 204833.png" alt="" width="563"><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> > **Danger:** The following action will paste the schematic of the original arena over whatever is already there. Make sure you are standing in empty space where you actually want the new arena. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 205046.png" alt="" width="563"><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> ### Undoing a Duplication If the copy lands somewhere it should not have, such as on top of your spawn, it can be taken back. The message confirming the duplication is clickable and runs /pduels undoarena, which you can also type yourself. Undoing removes the new arena instance from the map and restores whatever was standing at that spot before the paste, because the plugin snapshots the destination first. > **Warning:** The undo is available for **five minutes**, and only to the player who performed the duplication. After that the copy is an ordinary arena instance and has to be deleted from the arena list by hand, leaving the pasted blocks behind. ## Auto Generation Auto Generation handles the case where every arena of a map is already in use. Rather than making players wait, the plugin pastes a new permanent instance into a world you nominate and hands the match to it. It is separate from the grid wizard and available to any map, Free Mode or Grid Mode. Instances created this way are permanent: they stay registered after the match ends and are reused like any other arena, so a busy map grows once and then settles. > **Warning:** Auto Generation requires PhoenixDuels Premium, since it would otherwise let other editions exceed their arena limit. ### Opening the Settings The settings live on the map itself, not on an individual arena. <figure><img src="../../.gitbook/assets/auto-generation/auto-generation.png" alt="" width="563"><figcaption><p>Editor > Maps > Map</p></figcaption></figure> ### The Options **Auto Generation Status** turns the feature on for this map. <figure><img src="../../.gitbook/assets/auto-generation/auto-generation-status.png" alt="" width="563"><figcaption><p>Editor > Maps > Map > Auto Generation</p></figcaption></figure> **Generation World** picks which world the new instances are pasted into, chosen from a list of the worlds on your server. Pointing this at a dedicated flat or void world keeps generated arenas out of the way of your builds. <figure><img src="../../.gitbook/assets/auto-generation/generation-world.png" alt="" width="563"><figcaption><p>Editor > Maps > Map > Auto Generation</p></figcaption></figure> **Minimum Spacing** is the smallest gap allowed between a new instance and anything already placed in the generation world, defaulting to 250 blocks. <figure><img src="../../.gitbook/assets/auto-generation/minimum-spacing.png" alt="" width="563"><figcaption><p>Editor > Maps > Map > Auto Generation</p></figcaption></figure> ### Prerequisite Auto Generation needs a captured copy of the arena to paste. Maps on the internal regeneration engine get this once their regeneration state is built, and maps on the WorldEdit engine need WorldEdit installed with a generated schematic. Without one, nothing is generated and players queue as normal. Source: https://www.phoenixplugins.com/docs/phoenix-duels/main-features/create-a-map --- # ☘️ Arena Regeneration > **Warning:** **Requirements**: Only if you use the **WorldEdit** regeneration engine, this requires [FastAsyncWorldEdit](https://www.spigotmc.org/resources/fastasyncworldedit.13932/) to be installed. The **Internal** engine needs no external dependency. ## Arena Regeneration If you enable **Arena Regeneration**, the arena will return to its initial state after each match. Any changes players made, such as placing or breaking blocks, explosions, and more, will be undone. For the regeneration to function correctly, it's essential to properly define both the **Universal Region** and the **Battle Region**. Failing to do so may cause the regeneration to not work as expected. <figure><img src="../../.gitbook/assets/Screenshot 2024-09-27 003754.png" alt=""><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> <figure><img src="../../.gitbook/assets/regeneration/regeneration-status.png" alt="" width="563"><figcaption><p>Editor > Maps > Map > Regeneration</p></figcaption></figure> Each map lets you pick the **Regeneration Engine** used to restore it: * **Internal** - a built-in regeneration system that gradually restores blocks, with no external dependency, for better performance on smaller arenas. * **WorldEdit** - schematic-based regeneration. This has a higher performance impact on large arenas, so if you use this engine, use **FAWE (Fast Async WorldEdit)** instead of standard WorldEdit — it's significantly more lightweight and optimized, reducing the chance of lag during arena regeneration. <figure><img src="../../.gitbook/assets/regeneration/regeneration-engine.png" alt="" width="563"><figcaption><p>Editor > Maps > Map > Regeneration</p></figcaption></figure> ## Internal Engine The internal engine is the default and needs nothing installed. Rather than pasting the whole arena back every time, it tracks the blocks that actually changed during the match and restores only those, spread over several ticks so a large arena does not land in a single frame. An untouched arena costs almost nothing to regenerate, and the cost scales with how much players broke rather than with how big the map is. It builds its picture of the arena when the map is captured, and that capture is tied to the exact size of the universal region. Resize the region afterwards and regeneration refuses to run until the state is recaptured from the regeneration screen, rather than restoring the arena to the wrong shape. How fast it works through the restore is tunable, in blocks per cycle and chunks per cycle. The defaults of 4096 and 16 suit most servers; lowering them spreads a large restore over more ticks at the cost of taking longer. ```yaml regeneration: internal: blocks-per-cycle: 4096 max-chunks-per-cycle: 16 ``` ## Post Round Regeneration Regenerates the arena after every round instead of only at the end of the whole match. Leave it on for modes where blocks matter round to round, such as Bed Fight or The Bridge. Turning it off means damage accumulates across the rounds of a single match and is only cleaned up once, when the match ends. <figure><img src="../../.gitbook/assets/regeneration/post-round-regeneration.png" alt="" width="563"><figcaption><p>Editor > Maps > Map > Regeneration</p></figcaption></figure> ## Pre Match Regeneration Also regenerates the arena at the start of a match, during the first round's countdown. This is a safety net rather than a normal part of the cycle: if a previous regeneration was interrupted, by a crash or a restart mid-match, the arena would otherwise be handed to the next pair of players in a broken state. It costs an extra regeneration pass per match, so it is off by default. <figure><img src="../../.gitbook/assets/regeneration/pre-match-regeneration.png" alt="" width="563"><figcaption><p>Editor > Maps > Map > Regeneration</p></figcaption></figure> ## Schematic Maps on the WorldEdit engine keep a schematic file of the arena. The regeneration screen can generate a fresh one, which is what you use after editing the build so the new version is what gets restored. <figure><img src="../../.gitbook/assets/regeneration/schematic-regeneration.png" alt="" width="563"><figcaption><p>Editor > Maps > Map > Regeneration</p></figcaption></figure> ## Auto Generation A map with regeneration set up can also paste itself an extra arena when every existing instance is busy. That is covered on its own page: [Auto Generation](README.md#auto-generation). ## Quick Tip If the regeneration feature is causing performance issues on your server, be sure to check the following post for solutions:\ \ [Why does regeneration cause lag on my server?](../../plugins/questions-and-answers/README.md#why-regeneration-causes-lag-to-my-server) Source: https://www.phoenixplugins.com/docs/phoenix-duels/main-features/create-a-map/arena-regeneration --- # ♻️ Auto Generation ## What Auto Generation Does Auto Generation handles the case where every arena of a map is already in use. Rather than making players wait, the plugin pastes a new permanent instance into a world you nominate and hands the match to it. It is separate from the grid wizard and available to any map, Free Mode or Grid Mode. Instances created this way are permanent: they stay registered after the match ends and are reused like any other arena, so a busy map grows once and then settles. > **Warning:** Auto Generation requires PhoenixDuels Premium, since it would otherwise let other editions exceed their arena limit. ## Opening the Settings The settings live on the map itself, not on an individual arena. <figure><img src="../../.gitbook/assets/auto-generation/auto-generation.png" alt="" width="563"><figcaption><p>Editor > Maps > Map</p></figcaption></figure> ## The Options **Auto Generation Status** turns the feature on for this map. <figure><img src="../../.gitbook/assets/auto-generation/auto-generation-status.png" alt="" width="563"><figcaption><p>Editor > Maps > Map > Auto Generation</p></figcaption></figure> **Generation World** picks which world the new instances are pasted into, chosen from a list of the worlds on your server. Pointing this at a dedicated flat or void world keeps generated arenas out of the way of your builds. <figure><img src="../../.gitbook/assets/auto-generation/generation-world.png" alt="" width="563"><figcaption><p>Editor > Maps > Map > Auto Generation</p></figcaption></figure> **Minimum Spacing** is the smallest gap allowed between a new instance and anything already placed in the generation world, defaulting to 250 blocks. <figure><img src="../../.gitbook/assets/auto-generation/minimum-spacing.png" alt="" width="563"><figcaption><p>Editor > Maps > Map > Auto Generation</p></figcaption></figure> ## Prerequisite Auto Generation needs a captured copy of the arena to paste. Maps on the internal regeneration engine get this once their regeneration state is built, and maps on the WorldEdit engine need WorldEdit installed with a generated schematic. Without one, nothing is generated and players queue as normal. Source: https://www.phoenixplugins.com/docs/phoenix-duels/main-features/create-a-map/auto-generation --- # 🔨 Create an arena ## Set up an Arena The first step is to set up the arena, defining the region the plugin will recognize as the designated location for dueling. <figure><img src="../../.gitbook/assets/Screenshot 2024-09-26 013808.png" alt=""><figcaption><p>Creating Template Menu</p></figcaption></figure> ### Map Type Before defining any locations, a new map asks you to pick its type: * **Free Mode** - the default. You manually define every arena instance's locations yourself, as described in the steps below. * **Grid Mode** (Premium) - the plugin automatically pastes copies of your arena in a grid, based on a column/row count and the spacing between them, instead of you placing each instance by hand. See [grid-mode.md](grid-mode.md "mention"). <figure><img src="../../.gitbook/assets/create-a-map/free-mode.png" alt="" width="563"><figcaption><p>Edit Maps (Free Mode)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/create-a-map/grid-mode.png" alt="" width="563"><figcaption><p>Edit Maps (Grid Mode)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/create-a-map/what-is-this.png" alt="" width="563"><figcaption><p>Edit Maps (What is this?)</p></figcaption></figure> ### Step 1: As shown in the screenshot below, the Universal Region refers to the entire arena build that you'll need to define. This helps protect your arena and makes cloning it quicker and easier. <figure><img src="../../.gitbook/assets/Screenshot 2024-09-26 015450.png" alt="" width="491"><figcaption><p>Creating Template Menu</p></figcaption></figure> The process to set it up is similar to creating a region using WorldGuard for a build, ensuring smooth setup and management of your arena. <div><figure><img src="../../.gitbook/assets/Screenshot 2024-09-26 023142 (1).png" alt=""><figcaption><p>Left-Click to define the first position</p></figcaption></figure> <figure><img src="../../.gitbook/assets/Screenshot 2024-09-26 023406.png" alt=""><figcaption><p>Right-Click to define the second position</p></figcaption></figure></div> As shown above, I selected a cubic region that spans from one side of the arena to the other. This is how you define the Universal Region, which includes the entire arena build. ### Step 2: As shown in the screenshot below, the Battle Region is the designated area where players will duel. <figure><img src="../../.gitbook/assets/Screenshot 2024-09-26 024707.png" alt="" width="491"><figcaption><p>Creating Template Menu</p></figcaption></figure> Defining this region is done in the same way as for the Universal Region, by selecting a cubic area that covers the intended battle zone within the region.<br> <div><figure><img src="../../.gitbook/assets/Screenshot 2024-09-26 030040.png" alt="" width="563"><figcaption><p>Left-Click to define the first position</p></figcaption></figure> <figure><img src="../../.gitbook/assets/Screenshot 2024-09-26 030148 (1) (1).png" alt="" width="563"><figcaption><p>Right-Click to define the second position</p></figcaption></figure></div> As shown above, I selected a cubic region that spans from one side of the arena to the other. This is how you define the Battle Region, which includes the part of the arena that the players duel. ### Step 3: Next, we will set up the First and Second Team Positions. These are the specific locations where players will spawn when the duel begins, ensuring both teams are placed correctly for the start of the match. <figure><img src="../../.gitbook/assets/Screenshot 2024-09-26 031106.png" alt="" width="522"><figcaption><p>Creating Template Menu</p></figcaption></figure> <figure><img src="../../.gitbook/assets/Screenshot 2024-09-26 031336.png" alt="" width="524"><figcaption><p>Sneak + Left-Click to set the position</p></figcaption></figure> As shown, all you need to do is stand on the block where you want the team position to be. The plugin will automatically copy your player's current position and set it as the team's spawn point. Repeat this same process to set the **Second** Team Position as well. You can add more than one position to a team. Every position you add becomes another spawn point for that team, which is what a 2v2, 3v3 or 4v4 arena needs so teammates do not all land on the same block. ### Step 4: (Optional) The same menu also offers a **Third** and **Fourth** Team Position, set exactly like the first two. These are only used by **Multi Team Fight**, where a party splits into up to four teams instead of two. If you never intend to run `/party multifight` on this map, you can skip them. > **Warning:** A mode with `PARTY_MULTI_TEAM_FIGHT` enabled cannot be played on a map that has no third and fourth team positions, because there is nowhere to put the extra teams. ### Step 5: (Optional) This step is optional, but you can set up the FFA position where users will spawn when playing FFA mode with their party. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 191512.png" alt="" width="563"><figcaption><p>Creating Template Menu</p></figcaption></figure> ### Step 6: (Optional) This step is optional, but you can set a specific position for spectators to spawn in the map. If no location is specified, spectators will spawn directly on top of the player they are watching. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 192304.png" alt="" width="563"><figcaption><p>Creating Template Menu</p></figcaption></figure> ### Step 7: Now that the required steps are done, you can create your arena template. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 192853.png" alt="" width="563"><figcaption><p>Creating Template Menu</p></figcaption></figure> Your arena is now ready to be customized! ## Quick Tip Still struggling to understand the difference between the universal arena and the battle arena? Be sure to check the following for clarification: [What is the difference between the Battle Region and the Universal Region?](../../plugins/questions-and-answers/README.md#what-is-the-difference-between-battle-region-and-the-universal-region) Source: https://www.phoenixplugins.com/docs/phoenix-duels/main-features/create-a-map/create-an-arena --- # 🎨 Customize the Arena ## Identifier With this option, you can set an identifier for the arena. Note that the arena identifier is unique and used internally by the plugin, and its different from the display name. For example, if your arena's name is Candy Land the identifier should be set to candy\_land. > **Danger:** If your server is in production, we don't recommend changing this value. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 194525.png" alt="" width="563"><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> ## Display Name With this option, you can adjust the display name of the arena. The display name is typically shown in the scoreboard. For the display name, you can use the default Minecraft color codes. For hex colors, use the \&#D6D045 format. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp96-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> ## Display Icon With display icon, you can set a specific material as your maps icon. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 200555.png" alt="" width="563"><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> ## Allowed Modes With **Allowed Modes**, you can select which game modes users are permitted to play on that specific arena. This feature lets you control the types of gameplay available in each arena, ensuring the right modes are enabled for the intended experience. <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp97-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> In the example above, only players queuing for Classic mode will have access to that arena. ## Teleport to Lobby When enabled, this option teleports users to the designated lobby location set for the Duels plugin. otherwise, they return to their previous location. \ Quick Tip: The lobby can be set with /pduels setLobby <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 201657.png" alt="" width="563"><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/main-features/create-a-map/customize-the-arena --- # 🌀 Duplicate an Arena ## Arena Duplication This option allows you to duplicate your current arena and place it elsewhere, making it easier to create new arenas quickly with similar settings to the original. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 204833.png" alt="" width="563"><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> > **Danger:** The following action will paste the schematic of the original arena over whatever is already there. Make sure you are standing in empty space where you actually want the new arena. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 205046.png" alt="" width="563"><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> ## Undoing a Duplication If the copy lands somewhere it should not have, such as on top of your spawn, it can be taken back. The message confirming the duplication is clickable and runs /pduels undoarena, which you can also type yourself. Undoing removes the new arena instance from the map and restores whatever was standing at that spot before the paste, because the plugin snapshots the destination first. > **Warning:** The undo is available for **five minutes**, and only to the player who performed the duplication. After that the copy is an ordinary arena instance and has to be deleted from the arena list by hand, leaving the pasted blocks behind. Source: https://www.phoenixplugins.com/docs/phoenix-duels/main-features/create-a-map/duplicate-an-arena --- # 🖌️ Edit the Arena ## Template: This option allows you to adjust settings for the universal region, battle region, FFA position, and spectator position. Additionally, you can now configure multiple team positions and assign colors to each team. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 202755.png" alt=""><figcaption><p>Editor > Maps > Arena</p></figcaption></figure> ## Redefine Region This option lets you redefine the universal and battle regions, and the FFA, spectator locations. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 204531.png" alt="" width="563"><figcaption></figcaption></figure> ## Add Team Spawn Positions This option lets you set up to 4 spawn locations for players, ideal for 4v4 matches, ensuring each player spawns at a different location <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 204100.png" alt="" width="563"><figcaption><p>Editor > Maps > Arena > Template</p></figcaption></figure> ## Change Team Color This option allows you to customize the color assigned to each team. By default Team 1 is Red and Team 2 is Blue. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 204317.png" alt="" width="563"><figcaption><p>Editor > Maps > Arena > Template</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/main-features/create-a-map/edit-the-arena --- # 🧱 Grid Mode ## What Grid Mode Does A Free Mode map needs every arena instance placed and defined by hand, which is the slow part of running a practice server at scale. A Grid Mode map takes the one arena you already built, captures it, and pastes it across a flat grid of copies, registering each one as a playable instance as it goes. You still build and define exactly one arena. Everything after that is generated. > **Warning:** Grid Mode requires PhoenixDuels Premium. On other editions the option is visible but locked. ## Step 1: Pick the Type A new map asks for its type before anything else. Choosing Grid Mode here changes the rest of the wizard; the choice is made once, when the map is created. <figure><img src="../../.gitbook/assets/grid-mode/what-is-this.png" alt="" width="563"><figcaption><p>Editor > Edit Maps > [1/3] Choosing mode</p></figcaption></figure> <figure><img src="../../.gitbook/assets/grid-mode/grid-mode.png" alt="" width="563"><figcaption><p>Editor > Edit Maps > [1/3] Choosing mode</p></figcaption></figure> ## Step 2: Build the Template This step is the same as a Free Mode map: define the universal region, the battle region, the team spawns, and optionally the FFA and spectator positions, then create the template. What you define here is what gets copied, so the universal region has to enclose the entire build. Anything outside it is not part of the arena and will not be pasted. ## Step 3: Lay Out the Grid The last wizard screen asks for three numbers. **Spacing Between Arenas** is the gap left between one copy and the next, in blocks. It is added to the universal region's own width, so the real distance between two arena origins is the region size plus this value. Leave enough room for anything that travels outside the build, such as arrows or ender pearls, or players in one arena will end up interfering with the next. <figure><img src="../../.gitbook/assets/grid-mode/spacing-between-arenas.png" alt="" width="563"><figcaption><p>Editor > Edit Maps > [3/3] Preparing grid</p></figcaption></figure> **Columns (X axis)** and **Rows (Z axis)** are how many copies to generate along each axis. The total number of arenas is columns multiplied by rows. Neither can be set below 2. <figure><img src="../../.gitbook/assets/grid-mode/columns-x-axis.png" alt="" width="563"><figcaption><p>Editor > Edit Maps > [3/3] Preparing grid</p></figcaption></figure> <figure><img src="../../.gitbook/assets/grid-mode/rows-z-axis.png" alt="" width="563"><figcaption><p>Editor > Edit Maps > [3/3] Preparing grid</p></figcaption></figure> The Generate button only becomes active once all three are set, and lists which of them are still missing until then. Grid generation is flat: every copy sits at the same Y as the original. <figure><img src="../../.gitbook/assets/grid-mode/generate-grid.png" alt="" width="563"><figcaption><p>Editor > Edit Maps > [3/3] Preparing grid</p></figcaption></figure> The arena you already built counts as the first cell, so generating a 5 by 5 grid from it produces 24 new instances rather than 25. ## Undoing a Generation Generation runs in the background and reports progress as it goes. When it finishes, it sends a clickable message that runs /pduels undogrid, which removes everything that run pasted. This is the moment to check the spacing: once you move on, the copies are ordinary arena instances and have to be deleted individually. Auto Generation, which pastes a fresh arena when every existing one is busy, is available to Grid Mode maps as well and is covered on its own page: [Auto Generation](README.md#auto-generation). Source: https://www.phoenixplugins.com/docs/phoenix-duels/main-features/create-a-map/grid-mode --- # 🎮 Create a Mode ## Arena Modes **Arena Modes** are a set of rules that allow you to customize and create unique game modes for duels. By configuring these rules, you can make each mode fit your specific gameplay preferences and create varied player experiences. <figure><img src="../../.gitbook/assets/Screenshot 2024-09-27 005726.png" alt=""><figcaption><p>Editor > Edit Modes</p></figcaption></figure> ## Reordering You can use the reordering option to sort the modes in your desired order for the modes menu. This will change the position of the modes both in the editor, and when the user is selecting a mode. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-21 181542.png" alt=""><figcaption><p>Editor > Edit Modes</p></figcaption></figure> ## Identifying a mode Like arenas, you can assign a unique **identifier**, **display name**, **description**, and **material** icon to the mode. This makes the game mode stand out and easily identifiable, adding a personalized touch and making it unique among others. <figure><img src="../../.gitbook/assets/Screenshot 2024-09-27 021824.png" alt=""><figcaption><p>Editor > Edit Modes > Mode</p></figcaption></figure> ## Loadout Type Every mode has a **Loadout Type**, which decides what players are holding when the fight begins. Two come with the plugin: * **Premade Kit** - everyone is given the same kit, chosen from the kits on your server. This is what almost every competitive mode uses, because both sides start identical. See [Create a Kit](../create-a-kit.md). * **Player Inventory** - players fight with whatever they were already carrying. Used for survival-style duels where players bring their own gear. > **Warning:** With Player Inventory, players are fighting with their real items, so a death means a real loss. The **Keep Inventory** rule and the **Restore Last Inventory** setting are both worth reviewing before you enable a mode like this. Add-ons can add more. [Player Kits](../../add-ons/player-kits/README.md) adds Player Kit, where each player uses a kit they built themselves, and Shared Player Kit, where everyone uses the host's. ## Mode Rules With **rules**, you can take customization to the next level, allowing you to create modes like **Soup PvP**, **Boxing**, or even unique challenges like **dying to Water**. The possibilities are endless, thanks to the 50+ rules available to help you fine-tune and personalize each mode to suit your mode's needs. <figure><img src="../../.gitbook/assets/Screenshot 2024-09-27 025906.png" alt=""><figcaption><p>Editor > Edit Modes > Mode > Rules</p></figcaption></figure> The rule picker is sorted alphabetically (A-Z), so a specific rule is quick to find as the list grows. <details> <summary>Gamemode Rules (55)</summary> Names below match the picker exactly, and are listed in the same A-Z order it uses. Rules marked (Premium) only appear on the Premium edition. * **1.8 PvP Mechanics** (Premium) - Restores 1.8-style combat by removing the attack cooldown, sweep attacks and shield blocking. Likely to trigger anti-cheat plugins. * **Arrow to Block** (Premium) - Any block hit by an arrow breaks instantly. * **Arrows disappear on ground** - Arrows despawn the moment they touch the ground instead of lying around to be picked back up. * **Bow Cooldown** (Premium) - Bow shots have a cooldown, shown on the shooter's action bar. * **Clean Drops on Regeneration** (Premium) - Removes any dropped items still on the ground when the arena regenerates. * **Damage Indicators** (Premium) - Pops the damage dealt up as a floating number next to the player who was hit. * **Disable break/place blocks** - All block placement and breaking is disabled. * **Disable crafting slots** - The 2x2 crafting grid is blocked. * **Disable elytra** - Elytras will not work. * **Disable Ender Pearl** - Ender pearls are blocked. * **Disable Item Drop** - Players cannot drop items out of their inventory. * **Disable totem of undying** - The Totem of Undying will not save a player. * **Drop Player Loot** (Premium) - Drops the player's inventory on the ground when they die. * **Dying by touching lava** - Instant death on touching lava. * **Dying by touching void** - Instant death on touching the void. * **Dying by touching water** - Instant death on touching water. * **Ender Pearl cooldown** - Ender pearls have a cooldown. * **Extra Damage** (Premium) - Raises the damage dealt to opponents by a percentage you set. * **Extra hearts** (Premium) - Custom maximum health and health scale. * **Feed on Kill** (Premium) - Killing an opponent restores a percentage of the killer's hunger. * **Fireball** (Premium) - Right-clicking the ground with a fire charge throws a fireball. * **Get Target Kills** (Premium) - The first team to reach a target kill count wins the round. * **Glowing** (Premium) - Every player glows, visible through walls, for the duration of the match. * **God Apple cooldown** - Enchanted golden apples have a cooldown. * **Golden Apple cooldown** - Golden apples have a cooldown. * **Golden Head** (Premium) - An instantly consumable head that gives a golden apple effect. * **Heal Indicators** (Premium) - Pops the health regained up as a floating number next to the player who healed. * **Heal on Kill** (Premium) - Killing an opponent heals the killer by a percentage you set. * **Health does not regenerate** - Health never regenerates naturally. * **Health Indicators** (Premium) - Shows a floating health tag above every teammate and enemy for the whole match. * **Hunger does not go down** - The hunger bar never depletes. * **Immune to losing health** - Players cannot lose health when damaged. * **Keep Inventory** - Players keep their items when they die. Only has an effect on modes using the Player Inventory loadout. * **Kit Reset on Kill** (Premium) - Killing an opponent resets the killer's kit back to its original state. Only applies to modes using a premade kit, and pairs with Heal on Kill to also restore health. * **Lifesteal** (Premium) - Heals the attacker for a portion of the damage dealt, whether the hit landed with melee or a projectile. * **No Durability Loss** (Premium) - Items take no durability damage for the whole match. * **No fall damage** - Fall damage is cancelled. * **No hit delay** - Hits have no delay, used for combo modes. * **Only arrow damage** - Players only take damage from arrows. * **Only Self-Placed Block Breaking** (Premium) - Players can only break blocks they placed themselves. * **Potion Effects** (Premium) - Custom potion effects applied to players for the match. * **Pressure plate instant win** - Stepping on a golden pressure plate wins the round instantly. * **Remove Empty Bottle** (Premium) - Empty bottles are taken out of the inventory as soon as a potion is drunk. * **Shrinking Border** (Premium) - After a delay, a border closes in on the arena in steps down to a final size, and players outside it take damage every second. It starts at the size of the battle region (or the Start Size you set when the arena has none) and only the match's players and spectators see it, so arenas sharing a world are unaffected. * **Soup restores health** - Consuming soup restores health. * **Timed Block** (Premium) - Placed blocks disappear after 10 seconds and return to the player's inventory. * **TNT Auto Ignite** (Premium) - TNT ignites the moment a player places it. * **Unlimited Blocks** (Premium) - Blocks placed by players are refunded immediately, so they never run out. * **Water slowly damage** (Premium) - The longer a player stays in water, the more damage they take. The remaining rules come from add-ons and only appear once that add-on is installed. * **Bed Fight** - Destroy the enemy bed, and win the game. (Add-On) * **Boxing** - Land a set number of punches; the first to reach the target wins. (Add-On) * **Floor is Lava** - The battle region floor slowly fills with lava, one layer at a time. (Add-On, Premium) * **Pillar of Fortune** - Every player periodically receives a random item or block. (Add-On, Premium) * **Spleef** - When players destroy snow blocks, snowballs go directly to their inventory. (Add-On) * **The Bridge** - Race across a void gap to score in the enemy portal. (Add-On) * **TNT Run** - TNT despawns under the player as they walk. (Add-On) <!-- * **SkyWars** - Periodically refills every chest in the arena with random loot. (Add-On, Premium) --> </details> ## Mode Commands With **mode commands**, you can set up various commands to trigger at different stages of the game. You can run commands when the game starts, when it ends, for the winner of the duel, and the loser of the duel. This feature is especially useful for granting winners extra rewards when they win a duel. <figure><img src="../../.gitbook/assets/Screenshot 2024-09-27 030247.png" alt="" width="563"><figcaption><p>Editor > Edit Modes > Mode > Commands</p></figcaption></figure> ## Mode Restriction If you want to make a specific mode exclusive to certain players, you can use the **Permission Requirement**. This feature ensures that only players with the designated permission can select and play that mode, making it accessible to a specific group of people. This is useful for creating VIP or special game modes. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-21 181728.png" alt="" width="563"><figcaption><p>Editor > Edit Modes > Mode</p></figcaption></figure> ## Player Types With player types, you can further restrict certain modes to be played only by specific team sizes, such as 1v1, 2v2, 3v3, 4v4, or FFA. This is highly recommended if you have maps that can only accommodate a certain number of players. <figure><img src="../../.gitbook/assets/Screenshot 2025-11-27 004238.png" alt="" width="563"><figcaption><p>Editor > Edit Modes > Mode</p></figcaption></figure> <figure><img src="../../.gitbook/assets/Screenshot 2025-11-27 004325.png" alt="" width="563"><figcaption><p>Editor > Edit Modes > Mode > Player Types</p></figcaption></figure> **FFA Queue** (Premium), in the unranked row, lets players join a free-for-all queue for this mode with `/queue ffa`. It is off on every existing mode. The mode needs maps with FFA spawn points, and every rule on it has to support FFA. Its player limits and countdown are under Match Settings. ## Broadcast Results Enable this option to send a public broadcast message announcing the results of a match, typically indicating the winner of the game. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-21 181911.png" alt=""><figcaption><p>Editor > Edit Modes > Mode</p></figcaption></figure> ## Delete Mode With this option, you can remove the mode. Note that this action cannot be undone. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-21 182208.png" alt=""><figcaption><p>Editor > Edit Modes > Mode</p></figcaption></figure> ## Enabled With this option, you can disable the mode. The mode will still be visible to the editor, but users wont be able to play. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-21 182510.png" alt=""><figcaption><p>Editor > Edit Modes > Mode</p></figcaption></figure> ## Match Settings With match settings, you can customize various aspects of the match. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-21 183453.png" alt=""><figcaption><p>Editor > Edit Modes > Mode > Match Settings</p></figcaption></figure> ### Default Rounds To Win. This option allows you to set the amount of default rounds players will have when they duel or queue for this specific gamemode. <figure><img src="../../.gitbook/assets/Screenshot 2025-11-27 003519 (1).png" alt="" width="563"><figcaption><p>Editor > Edit Modes > Mode > Match Settings</p></figcaption></figure> ### Pre Fight Delay Sections This option allows you to set a timer, requiring users to wait for a specified duration before the match begins. Items cannot be dropped or picked up during this countdown, on every round. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-21 184446 (1).png" alt="" width="478"><figcaption><p>Editor > Edit Modes > Mode > Match Settings</p></figcaption></figure> ### Duration Seconds This option lets you set a custom duration for how long the match will last. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-21 185159.png" alt="" width="563"><figcaption><p>Editor > Edit Modes > Mode > Match Settings</p></figcaption></figure> ### Cooldown Seconds This option allows you to set a cooldown period that users must wait before rejoining the mode. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-21 185718.png" alt="" width="422"><figcaption><p>Editor > Edit Modes > Mode > Match Settings</p></figcaption></figure> ### FFA Queue Min Players (Premium) How many players the FFA queue needs before the fill countdown starts. The default is 3; the lowest is 2. ### FFA Queue Max Players (Premium) When the FFA queue reaches this many players, the match starts at once without waiting for the countdown. The default is 8 and the cap is 18. Players above the maximum stay queued for the next match. ### FFA Queue Countdown (Premium) How many seconds the FFA queue keeps filling once the minimum is reached. The default is 15. At 0 the match starts as soon as the minimum is reached. ## Scoreboard Each mode comes with its own customizable scoreboard. If you prefer not to use this feature, simply disable it. You can also manually change the scoreboard by browsing that specific gamemodes yml file. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-21 185947.png" alt="" width="539"><figcaption><p>Editor > Edit Modes > Mode > Scoreboard</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/main-features/create-a-mode --- # 🏹 Create a Kit ## Inventory Kit To create premade kits for the game modes, simply set up the inventory kit type to Premade Kit. Then, shift + right-click, and the plugin will copy your inventory and create it as a kit for the chosen mode.\ If you wish to edit it, rightt-click. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 185928.png" alt="" width="563"><figcaption></figcaption></figure> ## Edit kit With the **Inventory Kit** you can create a kit that player's will play with. Premade kits can be used in cases that players's wont be playing with their custom made ones. <figure><img src="../../.gitbook/assets/Screenshot 2024-09-27 031508.png" alt=""><figcaption><p>Editor > Modes > Mode</p></figcaption></figure> ## Custom Kit Layout When this option is enabled, player will be able to create their own layout for that specific kit. By default this option is enabled. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-17 221115.png" alt="" width="563"><figcaption><p>Editor > Modes > Mode</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/main-features/create-a-mode/create-a-kit --- # ⚽ Match Settings ## Match Settings With match settings, you can customize various aspects of the match. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-21 183453.png" alt=""><figcaption><p>Editor > Edit Modes > Mode > Match Settings</p></figcaption></figure> ## Default Rounds To Win. This option allows you to set the amount of default rounds players will have when they duel or queue for this specific gamemode. <figure><img src="../../.gitbook/assets/Screenshot 2025-11-27 003519 (1).png" alt="" width="563"><figcaption><p>Editor > Edit Modes > Mode > Match Settings</p></figcaption></figure> ## Pre Fight Delay Sections This option allows you to set a timer, requiring users to wait for a specified duration before the match begins. Items cannot be dropped or picked up during this countdown, on every round. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-21 184446 (1).png" alt="" width="478"><figcaption><p>Editor > Edit Modes > Mode > Match Settings</p></figcaption></figure> ## Duration Seconds This option lets you set a custom duration for how long the match will last. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-21 185159.png" alt="" width="563"><figcaption><p>Editor > Edit Modes > Mode > Match Settings</p></figcaption></figure> ## Cooldown Seconds This option allows you to set a cooldown period that users must wait before rejoining the mode. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-21 185718.png" alt="" width="422"><figcaption><p>Editor > Edit Modes > Mode > Match Settings</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/main-features/create-a-mode/match-settings --- # 📋 Scoreboard ## Scoreboard Each mode comes with its own customizable scoreboard. If you prefer not to use this feature, simply disable it. You can also manually change the scoreboard by browsing that specific gamemodes yml file. <figure><img src="../../.gitbook/assets/Screenshot 2025-01-21 185947.png" alt="" width="539"><figcaption><p>Editor > Edit Modes > Mode > Scoreboard</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/main-features/create-a-mode/scoreboard --- # 🌎 Integrate with Worlds (Legacy) If you’re not planning to run PhoenixDuels as a standalone gamemode and instead want to use it on worlds, follow the tutorial below. ### Step 1: Make sure you have created a dedicated world specifically for PhoenixDuels and its arenas. ### Step 2: To avoid inventory issues, we recommend installing [Multiverse Inventories](https://modrinth.com/plugin/multiverse-inventories), allowing separate inventories for each world. ### Step 3: To prevent conflicts with other plugins, we recommend installing [Per World Plugins](https://www.spigotmc.org/resources/perworldplugins.96161/) and only keeping the essential plugins needed for the duels world. ### Step 4: This step is optional, but you can enable it if needed. PhoenixDuels has a built-in system to restrict the plugin to a specific world. Use this option if you don’t need to disable other plugins in the duels world with Per World Plugins. ```yaml worlds: should-use: ENABLED_WORLDS enabled: - practice_world disabled: [] ``` Source: https://www.phoenixplugins.com/docs/phoenix-duels/main-features/integrate-with-worlds-legacy --- # 🕐 Start a Match ## Queue You can queue for Unranked or Ranked matches, either solo or with your party. After selecting the game type, you can choose the player mode: 1v1, 2v2, 3v3, or 4v4 and then a specific mode. <figure><img src="../.gitbook/assets/Untitledvideo-MadewithClipchamp-2025-03-03T040400.589-ezgif.com-video-to-gif-converter (1).gif" alt="" width="563"><figcaption><p>Queue for 1v1 in Classic Mode</p></figcaption></figure> ### Match Found Notice (Premium) When the queue finds a match, every player in it can get a **MATCH FOUND!** title with a sound, then a short wait before being teleported to the arena. It is off by default; turn it on with **Match Found Notice** in `/pd editor` → Settings → Match. It only applies to queue matches, never to duel invites or party fights. If a player goes offline, joins another match or queues again during the wait, the match is cancelled. The other players get a chat message and can join the queue again. ### FFA Queue (Premium) /queue ffa \[mode|random], or **Play FFA Queue** in `/queue`, puts you in a free-for-all queue for one mode. Without a mode it opens the mode list. When the queue reaches the mode's minimum players, a fill countdown starts and more players can still join. When it ends, or the maximum is reached, everyone queued fights in one match and the last player standing wins. If players leave and the queue drops below the minimum, the countdown stops until enough players are back. Leave the queue with `/leave` like any other queue. FFA queue matches are unranked: no elo changes, and wins, losses and kills count towards the unranked statistics. The queue is solo only; a party with more than one member can't join it, and when party queueing is turned off, party members can't join at all. Only modes with **FFA Queue** turned on in their [Player Types](create-a-mode/README.md#player-types) show up, and only maps with FFA spawn points are used. ## Duel Invite You can use `/duel <username>` to directly challenge a specific user. After running the command, you will be able to: * Select the Gamemode you want to play. * Select the specific Map you want to play. * Specify the amount of rounds you want to play. * Specify if you want to have money betting. * Specify if you want to have item betting. * Specify whether the match accepts **External Spectators**. <figure><img src="../.gitbook/assets/Screenshot 2025-11-27 133351.png" alt="" width="563"><figcaption><p>/duel menu</p></figcaption></figure> When an invitation is sent to the opponent, they will need to accept it in order for the game to start. If the opponent has already invited you with the same mode and rounds, and neither invitation has a bet, sending yours back accepts theirs and the duel starts straight away. <figure><img src="../.gitbook/assets/image (11).png" alt="" width="524"><figcaption><p>Duel Invitation</p></figcaption></figure> Instead of clicking the invitation, the opponent can also answer it with /duel accept \<player> or /duel decline \<player>. This is worth telling Bedrock players about, since they cannot always click chat messages. ### Disabled Worlds Players in a world the server has filtered out can't send or accept duels, challenge parties or queue. On Premium, turning on **Allow Challenges From Disabled Worlds** in `/pd editor` → Settings → Plugin → Worlds lifts that: the players are taken to the arena when the match starts and brought back to where they were when it ends. ### External Spectators The **External Spectator** option decides whether anyone outside the match may watch it. Turn it off for a private grudge match and only the participants can see the fight; anyone trying to `/spectate` into it is refused. See [Spectator Mode](../features/spectator.md). ### Skipping the menu If you already know what you want, you can pass it straight to the command and the invitation is sent immediately: /duel \<player> \[mode] \[rounds] So `/duel Notch crystal 3` challenges Notch on the Crystal mode with a rounds value of 3, without opening anything. What that 3 means depends on the server's `match.rounds-format` setting: with the default **First To** it is three round wins, and with **Best Of** it is three rounds played. ## Party Party FFA With your party, you can also easily create a match and play a private FFA in a specific mode. <figure><img src="../.gitbook/assets/Untitledvideo-MadewithClipchamp-2025-03-03T042527.536-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Start a Private FFA</p></figcaption></figure> ## Challenge Party With this option, you can select another party and fight them directly. <figure><img src="../.gitbook/assets/Untitledvideo-MadewithClipchamp-2025-03-03T043429.694-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Start a Challenge</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels/main-features/start-a-match --- # 🗄️ Migration ## Information A merge was done to simplify the plugin and allow people to have access to features on each plugin. With that said, our plugin will not be an all in one plugin for duels because that is impossible, everyone have different needs and want things on their own. So our job will be to provide you with enough customization so you can implement your own implementations alongside other plugins. The merge has its own changes, some features ended up being added via addons which you will receive for free (the ones that match your product). ## Phoenix Duels (Old) For Phoenix Duels users, the /duels menu will not longer exist. If you want 2v2+ fights, they need to be done via the party system. Now we understand that removing this legacy duels menu might be a problem for several servers that already got used to. With that said we have a [legacy addon](https://www.myphoenixstore.com/en/items/legacy-teams-addon/download) that brings back this functionality but under the hood it works based on the party system. This addon will not be maintained and is marked as legacy, only bugs will be fixed for a short period before the release. ## Phoenix Practice For Phoenix Practice users, not many things really changed, the new Phoenix Duels was built on top of Phoenix Practice code, however a lot of things still ended up changing, one of the things are the menus. There are some menus that now got more simple and direct to the point. In any case if you don't think they match what you're looking for, you're more than welcome to create your own menus using a third-party plugin such as DeluxeMenus. *** ## Plugin Migration A MANUAL migration is required because several components changed, internally and config wise. If you don't want to migrate anything, just do a backup of your PhoenixDuels folder and do a clean install. It is expected that you will have to re-configure several components of the plugin in order to make it fully work like before, mainly menus. However rest assured that your maps and modes should be fully migrated correctly. We didn't changed too much, only a few refactorment which should be migrated with no problem. Some warnings before we start anything, a few things that changed: ``` For Phoenix Practice: - permissions now start with "phoenixduels." - placeholders now start with "phoenixduels_" - Default scoreboard title/scoreboard is now at templates.yml - Elo Rating is now at elo.yml ``` ### Back Up Before starting with the manual migration, make sure that you have already done a back up of your PhoenixDuels/PhoenixPractice folder. ### (Optional) - Phoenix Practice If you're migrating from Phoenix Practice, you will have to copy manually your content to the folder `PhoenixDuels`. ### Migration File Create a file under PhoenixDuels folder called `.start-migration` ### Restart the Server ### New Phoenix Duels After the plugin loads, all of your content will be moved to `PhoenixDuelsOld` and your new PhoenixDuels will be almost empty for now. In this moment you will see an addons folder too. ### For Phoenix Duels users: * You will have access to TntRun Addon (on your dashboard, in case you want) * You will have access to Spleef Addon (on your dashboard, in case you want) * You will have access to LegacyTeams Addon (on your dashboard, although we don't recommend going with it for now and give a try the plugin) ### For Phoenix Practice users: * You will have access to Bed Fight Addon (on your dashboard, in case you want) * You will have access to Boxing Addon (on your dashboard, in case you want) * You will have access to LobbyItems Addon (on your dashboard, in case you want) * You will have access to PlayerKits Addon (on your dashboard, in case you want) * You will have access to Spleef Addon (on your dashboard, in case you want) ### Completion Create a file under PhoenixDuels folder called `.complete` ### Restart the Server After that most things should start getting migrated. But as mentioned a few things will need to be configured manually. (Menus for instance, will need to be fully migrated manually) ## Note You will still have access to the old legacy versions for a while, we understand you might not want to migrate it for now and you might want to stay on these versions. However this versions will not receive any more updates/new features and only a few bug fixes in order to smooth your gameplay. Both PhoenixDuels (Legacy) and PhoenixPractice will no longer be supported starting January 1st, 2026. You can continue using them, but support and updates will no longer be provided. Source: https://www.phoenixplugins.com/docs/phoenix-duels/migration --- # 🤖 Action Types In our system's configuration files, you can utilize various action types to perform different actions. These actions enable you to interact with players, broadcast messages, play sounds, set gamemodes, and much more. ## Action Types | Action List | Description | | ------------------- | -------------------------------------------- | | \[MESSAGE] | Display a custom message to the player | | \[TITLE] | Display a custom title message to the player | | \[ACTION\_BAR] | This is a custom action bar | | \[CLOSE\_INVENTORY] | Close the player's current inventory | | \[COMMAND] | Execute a command (console or player) | | \[GAMEMODE] | Set the player's gamemode | | \[POTION\_EFFECT] | Apply a potion effect to the player | | \[SOUND] | Play a sound for the player | | \[MENU] | Open a custom menu | | \[BROADCAST] | Send a message to every player on the server | | \[BROADCAST\_WORLD] | Send a message to every player in one world | | \[DELAY] | A way to delay some actions | Explore each action type to learn more about its syntax and usage. Examples are provided to illustrate how to use these actions effectively in your system or application. ### Send Chat Message This action sends a custom message to the player. * **Syntax:** `[MESSAGE] <message>` * **Example:** `[MESSAGE] &aThis is a custom message` ### Send Title Message This action displays a custom title message to the player. * **Syntax:** `[TITLE] <title>; <subtitle>; <fadein>; <stay>; <fadeout>` * **Example:** `[TITLE] &aCustom title;&7Custom Subtitle; 20; 40; 20` ### Send Action Bar Message This action displays a custom action bar message to the player. * **Syntax:** `[ACTION_BAR] <message>` * **Example:** `[ACTION_BAR] This is a custom action bar` ### Close Inventory This action closes the inventory the player has open. * **Syntax:** `[CLOSE_INVENTORY]` * **Example:** `[CLOSE_INVENTORY]` ### Execute Command This action executes a command either from the console or as a player. Run as a player, a command PhoenixDuels registers itself, such as /queue, always runs the PhoenixDuels one, even when another plugin uses the same name. * **Syntax:** `[COMMAND] <target>; <command>` * **Example:** `[COMMAND] console; mvtp %player% world` * **Example**: `[COMMAND] player; warp spawn` ### Change Gamemode This action sets the gamemode for the player. * **Syntax:** `[GAMEMODE] <gamemode>` * **Example:** `[GAMEMODE] adventure` ### Give Potion Effect This action gives the player a potion effect. * **Syntax:** `[POTION_EFFECT] <effect>; <duration>; <amplifier>` * **Example:** `[POTION_EFFECT] speed; 5; 2` ### **Play Sound** This action plays a sound for the player. * **Syntax:** `[SOUND] <sound>; <volume>; <pitch>` * **Example:** `[SOUND] entity_arrow_hit_player; 1; 1` ### Open Menu This action opens a custom graphical user interface (GUI) menu. * **Syntax:** `[MENU] <menu_name>` * **Example:** `[MENU] queue` The menu name is the menu's **key**, not its file name. See [Customize Menus](../configurations/customize-menus.md) for the full list of keys. ### Broadcast This action sends a message to every player on the server. PlaceholderAPI placeholders are applied before it is sent. * **Syntax:** `[BROADCAST] <message>` * **Example:** `[BROADCAST] &e%player% &7just won a duel!` ### Broadcast to a World This action sends a message to every player in one world, leaving the rest of the server alone. Useful when your duels run in a dedicated world. * **Syntax:** `[BROADCAST_WORLD] <world>; <message>` * **Example:** `[BROADCAST_WORLD] duels; &e%player% &7just won a duel!` ### Delay This action will make a short pause until it continues executing actions. * **Syntax:** `[DELAY] <seconds>` * **Example:** `[DELAY] 3` Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/action-types --- # 🤖 Commands ## Player Commands <a href="#command-list" id="command-list"></a> /queue - Opens the queue menu for the player.\ /queue \<unranked/ranked> \<solo/duo/trio/quad> \<mode> - Queue the player for a specific mode.\ /queue \<unranked/ranked> \<solo/duo/trio/quad> random - Queue the player for a random mode they have permission for.\ /queue unranked \<solo/duo/trio/quad> any - Join the unranked queue for every mode the player can play. Players are matched by team size alone, and a random mode with a free arena is picked once a match is found.\ /queue ffa \<mode/random> - Join the free-for-all queue of a mode; without a mode it opens the mode list. Premium.\ /leave - Leave the queue you are in, or the match you are playing or spectating.\ \ /duel \<player> - Invite a player to a duel, opening the match creation menu.\ /duel \<player> \[mode] \[rounds] - Send the invitation straight away with a chosen mode and round count, skipping the menu.\ /duel accept \<player> - Accept a duel invitation from a player.\ /duel decline \<player> - Decline a duel invitation from a player.\ \ /duelsettings - Opens the settings menu for the player.\ /toggleduelrequest - Toggle whether you receive duel invitations.\ /togglepartyrequest - Toggle whether you receive party invitations.\ /pingrange \[ms/unrestricted] - Set the highest opponent ping you accept in the queues, or move to the next step without an argument. Premium.\ /duellostitems - Opens the menu with the lost items of a player.\ /stats - Opens your statistics menu.\ \ /spectate \<player> - Spectate another player's current match.\ /duelmatches - Opens a menu listing every match currently in progress, so you can pick one to spectate.\ \ /kiteditor - Opens the menu to edit the kits.\ /kiteditor editlayout \<premade\_kit\_id> - Opens straight into the layout editor for a specific premade kit.\ /kiteditor playerkits - Opens the player kits menu. Requires the Player Kits add-on.\ /dueltrims - Opens the armor trims menu. Requires phoenixduels.trims.use.\ /duelhistory \[user] - Opens your match history, or another user's.\ /duelkilleffects - Opens the kill effects selection menu.\ /duelkilleffects select \<id> - Selects a kill effect directly by its ID.\ /pduels forms - Switch between Bedrock forms and chest menus. Bedrock players only, see [GeyserMC (Bedrock)](../configurations/geysermc-bedrock.md). > **Info:** /duel accept and /duel decline do the same thing as clicking the invitation message. They are worth telling your players about if you have Bedrock users, who cannot always click chat messages reliably. ## Party Commands /party - Opens the party menu.\ /party create - Create a party.\ /party invite \<user> - Invite a user to your party.\ /party accept \<user> - Accepts a party invitation from a user.\ /party decline \<user> - Declines a party invitation from a user.\ /party leave - Leave the party you are in.\ /party kick \<user> - Remove a member from your party.\ /party kickoffline - Remove every offline member from your party.\ /party transfer \<user> - Make another online member the party leader.\ /party disband - Disband your party.\ /party chat \<message> - Send a message to your party only.\ /party challenge - Challenge another party.\ /party fight - Opens the party fight menu, splitting the party into two teams.\ /party play - An alias of /party fight.\ /party multifight - Splits the party into up to four teams instead of two.\ /party ffa - Player FFA with your party.\ /party help - Lists the party commands available to you. ## Admin Commands /pduels editor - Open the in-game editor for the plugin. Its main screen also has buttons for our Discord, a list of every Phoenix plugin with a link to its store page (Our Plugins), the web dashboard and the changelog.\ /pduels editLayout \<menu> - Edit the layout of a player menu in-game. See [In-Game Menu Editor](../configurations/in-game-menu-editor.md).\ /pduels addons (Premium) - List every official add-on, the installed ones first, plus any third-party add-ons that are loaded. Click an official one to open its page on our website.\ /pduels changelog - Open the list of released builds and their changes.\ /pduels link (Lite) - Link this server to your Phoenix Plugins account for one more map. See [Licensing](licensing.md#linking-a-lite-server).\ /pduels reload - Reload the Phoenix Duels configuration files.\ /pduels doctor \[file] - Shows the health of the plugin. With file it also saves the report for a support ticket. Requires phoenixduels.admin. See [Doctor and Dashboard](https://www.phoenixplugins.com/docs/phoenix-plugins/doctor-and-dashboard).\ /pduels dashboard \[link] - Shows whether this server is connected to the web dashboard. With link it gives you a link and a code to connect the server. Requires phoenixduels.admin. See [Doctor and Dashboard](https://www.phoenixplugins.com/docs/phoenix-plugins/doctor-and-dashboard).\ /pduels reload menus - Reload only the menu files, which is much quicker on a live server.\ /pduels tpArena \<id> - Teleport to an arena with a specific ID.\ /pduels setLobby - Set a specific spawn-point for the plugin.\ /pduels lobbyitems \<default/party/queue> - Hand yourself the hotbar of a lobby stage. Requires the Lobby Items add-on. /pduels addRating \<player> \<mode> \<amount> - Add an elo amount to a player for a specific mode.\ /pduels removeRating \<player> \<mode> \<amount> - Remove an elo amount of a player for a specific mode.\ /pduels resetRating \<player> \<mode> \<amount> - Reset the elo of a player for a specific mode.\ /pduels setRating \<player> \<mode> \<amount> - Set a specific elo to a player for a specific mode.\ /pduels set elo \<player> \<mode> \<amount> - Another way to set the elo of a player for a specific mode.\ /pduels set kills \<player> \<amount> - Set a player's total kill count.\ /pduels reset \<player> - Reset every mode rating of a player back to the default. /pduels createMap \<id> - Create a map with a specific ID.\ /pduels deleteMap \<id> - Delete a map with a specific ID.\ /pduels createMode \<id> - Create a mode with a specific ID.\ /pduels deleteMode \<id> - Delete a mode with a specific ID.\ /pduels undoarena - Undo the arena you just created or duplicated.\ /pduels undogrid - Undo the arenas the last grid generation pasted. > **Info:** /pduels undoarena and /pduels undogrid work for **five minutes** after the action, and only for the player who performed it. After that the arenas are ordinary arena instances and have to be deleted one by one. > **Warning:** Kills are not stored as a counter. They are summed from the match history, so /pduels set kills writes a single corrective record rather than overwriting a value. ## Add-on Commands /ranks - Opens the ranks menu. Requires the Elo Ranks add-on.\ /duelrematch - Re-challenge your last 1v1 opponent. Requires the Rematch & Requeue add-on.\ /duelrequeue - Toggle auto-requeue. Requires the Rematch & Requeue add-on.\ /netqueue - Opens the network queue menu, with unranked, ranked and leave sub-commands. Requires the Cross-Server Queue add-on.\ /ffa - Lists the Public FFA commands. Requires the Public FFA add-on, which also adds /ffaarenas, /ffaspectate, /ffakilleffects and /ffatrims. See [Public FFA commands](../add-ons/public-ffa/README.md#commands). ## Alternative Commands Every command below can be renamed or switched off entirely. This is how you resolve a clash with another plugin: if something else already owns /party, point Phoenix at /match instead. ```yaml commands: require-permission: false party: enabled: true alternative: match ``` <table data-full-width="true"><thead><tr><th width="290">Configuration key</th><th width="240">Default command</th><th>Notes</th></tr></thead><tbody><tr><td><code>commands.duel</code></td><td>/duel</td><td></td></tr><tr><td><code>commands.queue</code></td><td>/queue</td><td></td></tr><tr><td><code>commands.leave</code></td><td>/leave</td><td>Only <code>alternative</code> applies; this one cannot be disabled.</td></tr><tr><td><code>commands.duelsettings</code></td><td>/duelsettings</td><td></td></tr><tr><td><code>commands.lostitems</code></td><td>/duellostitems</td><td></td></tr><tr><td><code>commands.toggleduelrequest</code></td><td>/toggleduelrequest</td><td></td></tr><tr><td><code>commands.togglepartyrequest</code></td><td>/togglepartyrequest</td><td></td></tr><tr><td><code>commands.stats</code></td><td>/stats</td><td></td></tr><tr><td><code>commands.spectate</code></td><td>/spectate</td><td></td></tr><tr><td><code>commands.duelmatches</code></td><td>/duelmatches</td><td></td></tr><tr><td><code>commands.party</code></td><td>/party</td><td></td></tr><tr><td><code>commands.kiteditor</code></td><td>/kiteditor</td><td>Premium</td></tr><tr><td><code>commands.killeffects</code></td><td>/duelkilleffects</td><td>Premium</td></tr><tr><td><code>commands.matchhistory</code></td><td>/duelhistory</td><td>Premium</td></tr><tr><td><code>commands.trims</code></td><td>/dueltrims</td><td>Premium</td></tr><tr><td><code>commands.pingrange</code></td><td>/pingrange</td><td>Premium</td></tr></tbody></table> Renaming a command does not change its permission. /match is still gated behind phoenixduels.commands.party. Switching a command on or off, in the file or in the editor, takes effect on /pduels reload. No restart is needed. > **Info:** /leave is a name many plugins want. If something else on your server already registers it, give Phoenix a different one with `commands.leave.alternative` rather than fighting over it. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/commands --- # 🗄️ Database Schema ## Database Schema Phoenix Duels creates its tables automatically on first start, on both SQLite and MySQL. You never need to create them yourself, and you should not edit them by hand while the server is running. Every table name honours the `database.table-prefix` option. With an empty prefix the tables are named exactly as below; with a prefix of `duels`, `_duels_player_table` becomes `duels_duels_player_table`. ## Core Tables **Player** `_duels_player_table` - one row per player. | Column | Description | | --------------------- | ---------------------------------------------------------------------- | | id | Auto-incrementing primary key. | | uniqueId | The player's UUID. Unique. | | playerName | The player's last known name. | | cachedInventory | The inventory saved before their current match, used to restore it. | | cachedPotionEffects | The potion effects saved alongside that inventory. | | rejectingDuelsRequest | Whether the player has duel requests turned off. | | lastTimePlayed | JSON map of mode id to timestamp, used for the per-mode cooldown. | | otherStats | JSON map holding the kill, death, win and loss streaks per match type. | | metadata | JSON map used by add-ons to store their own values against a player. | **Ranking** `_ranking_score_table` - one row per player per mode. | Column | Description | | ----------- | ------------------------------------- | | id | Auto-incrementing primary key. | | uniqueId | The player's UUID. | | playerName | The player's last known name. | | arenaModeId | The mode this rating belongs to. | | score | The player's elo rating in that mode. | **History** `_history_records_table` - one row per player per finished match. | Column | Description | | ---------------- | -------------------------------------------------------------------- | | id | Auto-incrementing primary key. | | uniqueId | The player's UUID. | | playerName | The player's name at the time of the match. | | arenaId | The map the match was played on. | | modeId | The mode that was played. | | matchType | `ranked`, `unranked` or `challenge`. | | kills | Kills this player got in the match. | | deaths | Deaths this player took in the match. | | status | `1` for a win, `-1` for a loss, `0` for a draw. | | createdAt | Unix timestamp of when the match ended. | | replayName | The recorded replay, if one exists. Cleared when the replay expires. | | arenaInstanceKey | Which arena instance the match ran in, used to play the replay back. | **Recaps** `_match_recaps_table` - the snapshot behind the Recap option in match history. | Column | Description | | ---------------------- | ---------------------------------------------- | | id | Auto-incrementing primary key. | | historyRecordId | The history row this recap belongs to. | | uniqueId | The player's UUID. | | cachedInventory | Their inventory at the moment the match ended. | | cachedArmor | Their armor at that moment. | | cachedOffhand | Their off-hand item at that moment. | | cachedPotionEffects | Their active potion effects at that moment. | | health / maxHealth | Their health and maximum health. | | foodLevel / saturation | Their hunger and saturation. | | createdAt | Unix timestamp of when the recap was taken. | **Other** `_kit_layouts_table` - a player's custom layout for a premade kit. | Column | Description | | ----------- | --------------------------------------- | | id | Auto-incrementing primary key. | | uniqueId | The player's UUID. | | arenaModeId | The mode whose kit this layout is for. | | slots | The arrangement of the kit's items. | | trims | The armor trims applied to that layout. | `_virtual_storage_table` - the [Lost Items](../features/lost-items.md) storage. | Column | Description | | --------------- | -------------------------------- | | id | Auto-incrementing primary key. | | uniqueId | The player's UUID. Unique. | | serializedItems | The items waiting to be claimed. | ## Add-on Tables These are only created when the matching add-on is installed. <table><thead><tr><th width="330">Table</th><th>Created by</th></tr></thead><tbody><tr><td><code>_player_kits_table</code></td><td>Player Kits. Holds <code>uniqueId</code>, <code>code</code> (the kit slot) and <code>items</code>.</td></tr><tr><td><code>_eloranks_players_table</code></td><td>Elo Ranks. Holds <code>uniqueId</code>, <code>currentRank</code> and <code>unlockedRanks</code>.</td></tr><tr><td><code>_rematchrequeue_players_table</code></td><td>Rematch & Requeue. Holds <code>uniqueId</code> and <code>autoRequeueEnabled</code>.</td></tr></tbody></table> ## Querying stats yourself > **Warning:** Kills, deaths, wins, losses and draws are **not** stored as counters anywhere. They are summed live from `_history_records_table` every time they are needed. So a player's total ranked kills is a query, not a column lookup: ```sql SELECT SUM(kills) FROM _history_records_table WHERE uniqueId = ? AND matchType = 'ranked'; ``` This is also why /pduels set kills works the way it does. Since there is no counter to overwrite, it inserts a single corrective record with a `modeId` of `manual-adjustment` that makes the sum land on the value you asked for. If you find those rows in the table, that is where they came from. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/database-schema --- # 🪪 Licensing > **Info:** License keys, sessions, startup messages, failures and the grace period work the same for every Phoenix plugin and are covered on the general [Licensing](https://www.phoenixplugins.com/docs/phoenix-plugins/licensing) page. Only the Premium version is licensed. ## When Validation Fails The jar stays enabled, but the plugin never finishes loading: no arenas, modes or queues are registered, every PhoenixDuels command is blocked, and any player who runs one is told why. Fix the cause and restart. The causes and their console messages are listed under [When Validation Fails](https://www.phoenixplugins.com/docs/phoenix-plugins/licensing#when-validation-fails). On a network, every duel server behind the proxy counts as its own [session](https://www.phoenixplugins.com/docs/phoenix-plugins/licensing#sessions). ## Paid Add-ons On startup and on every reload, each paid add-on in the `addons` folder is checked against the add-ons your license owns. One you do not own is not loaded, and the console says why: ``` [!] The Boxing add-on didn't load because it seems that you don't own it. ``` If our servers cannot confirm it, the add-on is skipped until the next restart or reload. Free and third-party add-ons are not checked. /pduels addons shows which official add-ons are installed. ## Linking a Lite Server Link a Lite server to your Phoenix Plugins account and it can hold 6 maps instead of 5. Run /pduels link with `phoenixduels.admin`. You get a link to click and a code to enter on the website; the code is valid for 15 minutes. Once you confirm it, the console and online admins are told the bonus is active. /pduels link on a linked server says so. The link is remembered across restarts and website outages. Unlink a server on the website under **Settings > Linked Lite Servers**. After unlinking, no new map can be made past 5, but maps made while linked stay and keep loading. When the Lite limit stops you on a server that is not linked, the limit message also points to /pduels link. ## Server Statistics Lite sends the server version, software, the domains players join through and the online player count to our servers on startup, every 5 minutes and on shutdown, so the server shows on the **My Servers** page of the website. `send-server-statistics` in config.yml turns it off. Linking works without it. ## Version Notices Players holding `phoenixduels.admin` are told on join when a newer build is out, on Lite too, and the first time they join after an update they can click to see what changed. /pduels changelog, or the Changelog button in the editor, lists every released build with its changes. `notify-if-new-version` in config.yml turns the notices off. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/licensing --- # 🔒 Permissions ## General Permissions **General Permissions** | Permission | Description | | -------------------------- | ---------------------------------------------------------- | | phoenixduels.admin | Grants access to everything regarding the plugin, including `/pduels doctor` and `/pduels dashboard`. | | phoenixduels.region.bypass | Allows entering the region of any ongoing match. | | phoenixduels.admin.spy | Receives the team chat messages of every ongoing match. | ## Command Permissions By default every command is open to all players. Set `commands.require-permission` to **true** in the main configuration to make the commands below require a permission. **Command Permissions** | Permission | Description | | ----------------------------------------- | ---------------------------------------------------- | | phoenixduels.commands.duels | Allows using the duel settings and spectate commands. | | phoenixduels.commands.queue | Allows using the queue command. | | phoenixduels.commands.party | Allows using the party command. | | phoenixduels.commands.stats | Allows using the stats command. | | phoenixduels.commands.kiteditor | Allows using the kit editor command. | | phoenixduels.commands.duellostitems | Allows using the lost items command. | | phoenixduels.commands.trims | Allows using the trims command. | | phoenixduels.commands.duelhistory.others | Allows viewing the match history of another player. | ## Feature Permissions **Feature Permissions** | Permission | Description | | ----------------------------------- | ---------------------------------------------------------- | | phoenixduels.trims.use | Allows opening the trims menu. | | phoenixduels.kitlayouts.trims | Allows applying trims to a premade kit layout. | | phoenixduels.replay.watch | Allows watching a replay from the match history. | | phoenixduels.party.create | Allows creating a party, when `party.require-permission-to-create` is enabled. | | phoenixplugins.killeffect.\<effect> | Allows selecting the kill effect matching `<effect>`. | | phoenixplugins.trim.pattern.\<pattern> | Allows using the trim pattern matching `<pattern>`. Applies to the trims menu, premade kit layouts and player kits. | | phoenixplugins.trim.material.\<material> | Allows using the trim material matching `<material>`. Applies to the trims menu, premade kit layouts and player kits. | ## Mode & Kit Permissions Each mode and each kit can be configured to require its own permission before a player is allowed to use it. Turn it on with `permission.required` and set the node with `permission.permission` in that mode or kit configuration file. **Mode & Kit Permissions** | Permission | Description | | ------------------------- | ------------------------------------------------------- | | phoenixduels.mode.\<id> | Allows queueing and duelling on the mode matching `<id>`. | | phoenixduels.kit.\<id> | Allows using the kit matching `<id>`. | ## Slot Permissions Slot permissions are configurable pairs of an amount and a permission node. A player receives the highest amount they have a permission for. **Slot Permissions** | Permission | Description | | ------------------------------------- | ------------------------------------------------------------ | | phoenixduels.partymembers.\<number> | Raises the party size limit. Defaults are `phoenixduels.partymembers.10` and `phoenixduels.partymembers.15`. | | phoenixduels.playerkits.\<number> | Raises the amount of player kit slots. Requires the Player Kits add-on. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/permissions --- # 🔎 Placeholders PhoenixDuels supports **PlaceholderAPI**, allowing you to use player data from our plugin in other plugins that also support PlaceholderAPI. Below is a list of the available **PlaceholderAPI placeholders** as well as our **internal placeholders** that you can use in holograms. ## PlaceholderAPI Placeholders The following is the list of the available placeholders that Phoenix Duels has, make sure to replace the \<mode> with the ID of your mode. **General** <table><thead><tr><th width="354">Placeholders</th><th>Description</th></tr></thead><tbody><tr><td>%phoenixduels_players_playing%</td><td>The amount of players playing.</td></tr><tr><td>%phoenixduels_players_playing_<strong><mode></strong>%</td><td>The amount of players playing on a specific mode.</td></tr><tr><td>%phoenixduels_players_queueing%</td><td>The amount of players queueing.</td></tr><tr><td>%phoenixduels_players_queueing_<strong><mode></strong>%</td><td>The amount of players queueing on a specific mode.</td></tr><tr><td>%phoenixduels_player_inqueue%</td><td>Whether the player is currently in queue.</td></tr><tr><td>%phoenixduels_player_queued_mode%</td><td>The mode the player is queueing for, or "Any Mode" in the any-mode queue.</td></tr><tr><td>%phoenixduels_player_queued_time%</td><td>How long the player has been in queue, as m:ss.</td></tr><tr><td>%phoenixduels_player_match_mode%</td><td>The mode of the match the player is playing.</td></tr><tr><td>%phoenixduels_player_inmatch%</td><td>Whether the player is currently in a match.</td></tr><tr><td>%phoenixduels_player_inspectating%</td><td>Whether the player is currently spectating a match.</td></tr><tr><td>%phoenixduels_player_inparty%</td><td>Whether the player is currently in a party.</td></tr><tr><td>%phoenixduels_total_wins%</td><td>The player's unranked, ranked and challenge wins added together.</td></tr></tbody></table> **Ranked/Unranked** The following \<arg> can take unranked, ranked, or challenge values. | Placeholders | Description | | ----------------------------------------------------------- | -------------------------------------------------- | | %phoenixduels\_\<arg>\_total\_kills% | The amount of player's kills. | | %phoenixduels\_\<arg>\_total\_deaths% | The amount of player's deaths. | | %phoenixduels\_\<arg>\_kd\_ratio% | The KD of the player. | | %phoenixduels\_\<arg>\_total\_wins% | The amount of player's wins. | | %phoenixduels\_\<arg>\_total\_losses% | The amount of player's losses. | | %phoenixduels\_\<arg>\_total\_draws% | The amount of player's draws. | | %phoenixduels\_\<arg>\_win\_streak% | The win streak of the player. | | %phoenixduels\_\<arg>\_lost\_streak% | The lose streak of the player. | | %phoenixduels\_\<arg>\_kill\_streak% | The kill streak of the player. | | %phoenixduels\_\<arg>\_death\_streak% | The death streak of the player. | | %phoenixduels\_\<arg>**\_**players\_queueing% | The amount of players queueing. | | %phoenixduels\_\<arg>**\_**players\_queueing\_\<mode>% | The amount of players queueing on a specific mode. | | %phoenixduels\_\<arg>\_players\_playing% | The amount of players playing. | | %phoenixduels\_\<arg>\_players\_playing\_\<mode>% | The amount of players playing on a specific mode. | **Elo** <table><thead><tr><th width="354">Placeholders</th><th>Description</th></tr></thead><tbody><tr><td>%phoenixduels_ranked_global_elo%</td><td>The elo of the user on all modes.</td></tr><tr><td>%phoenixduels_ranked_<strong><mode></strong>_elo%</td><td>TThe elo of the user on a specific mode.</td></tr></tbody></table> **Leaderboard** | Placeholders (Global) | | ---------------------------------------------------- | | `%phoenixduels_<type>_<metric>%` | | `%phoenixduels_<type>_<mode>_<metric>%` | | `%phoenixduels_<type>_<metric>_<rank>%` | | `%phoenixduels_<type>_<mode>_<metric>_<rank>%` | | `%phoenixduels_<type>_<metric>_<rank>_value%` | | `%phoenixduels_<type>_<mode>_<metric>_<rank>_value%` | | Placeholders (Specific Period) | | ------------------------------------------------------------- | | `%phoenixduels_<period>_<type>_<metric>%` | | `%phoenixduels_<period>_<type>_<mode>_<metric>%` | | `%phoenixduels_<period>_<type>_<metric>_<rank>%` | | `%phoenixduels_<period>_<type>_<mode>_<metric>_<rank>%` | | `%phoenixduels_<period>_<type>_<metric>_<rank>_value%` | | `%phoenixduels_<period>_<type>_<mode>_<metric>_<rank>_value%` | ### Period: `all`, `daily`, `weekly`, `monthly` ### Type: `unranked`, `ranked`, `challenge` ### Metric: `totalkills`, `totaldeaths`, `totalwins`, `totallosses`, `totaldraws`, `kdratio`, `elo` \ \* elo is only available in the `all` period. ### Example: * `%phoenixduels_ranked_crystal_totalkills_1_value%` - will return the name of the player that has the most kills in ranked for the crystal mode * For leaderboard of elo use `%phoenixduels_ranked_elo_1%` **Other** | Placeholders | Description | | -------------------------------------------- | ------------------------------------------- | | %phoenixduels\_nametag\_color% | The nametag's color | | %phoenixduels\_nametag\_letter% | The nametag's letter | | %phoenixduels\_nametag% | The nametag | | %phoenixduels\_rejecting\_duel\_requests% | If the player has duel requests disabled | | %phoenixduels\_rejecting\_party\_requests% | If the player has party requests disabled | **Party** | Placeholders | Description | | -------------------------------- | ------------------------------------------- | | %phoenixduels\_party\_leader% | The name of the player's party leader. | | %phoenixduels\_party\_size% | The amount of members in the player's party. | | %phoenixduels\_party\_limit% | The maximum amount of members allowed in the player's party. | **Live Match** | Placeholders | Description | | -------------------------------------------------------------- | ---------------------------------- | | %phoenixduels\_duel\_time\_left% | The time left of the duel. | | %phoenixduels\_match\_kills% | The player's kills this match. | | %phoenixduels\_match\_deaths% | The player's deaths this match. | | %phoenixduels\_match\_team\_kills% | The kills of the player's team. | | %phoenixduels\_match\_enemy\_kills% | The kills of every opposing team. | | %phoenixduels\_match\_team\_rounds% | The rounds won by the player's team.| | %phoenixduels\_match\_enemy\_rounds% | The rounds won by every opposing team.| | %phoenixduels\_match\_team<strong><n></strong>\_kills% | The kills of team \<n> by position.| | %phoenixduels\_match\_team<strong><n></strong>\_rounds% | The rounds won by team \<n> by position.| | %phoenixduels\_match\_team<strong><n></strong>\_color% | The color of team \<n> by position.| ## Internal Placeholders The following list of placeholders can be used inside our plugin when running commands, editing messages, and your scoreboard. | Placeholders | Description | | --------------------------------------- | ----------------------------------- | | %time\_left% | The time left of the duel. | | %opponents% | The list with the opponents. | | %opponent% | The name of your opponent. | | %opponent\_health% | The health of your opponent. | | %opponent\_ping% | The ping of the opponents. | | %mode% | The current mode of the duel. | | %map% | The current id of the map, | | %win\_rounds% | The player's won rounds, | | %lost\_rounds% | The player's lost rounds, | | %rounds\_to\_win% | The amount of rounds left to win. | | %cps% | The player's clicks per second. | | %ping% | The player's ping, | | %boxing\_team\_score% (Requires Boxing) | The boxing score of your team. | | %boxing\_enemy\_score% (Reuires Boxing) | The boxing score of the enemy team. | | %kills% | The player's kills this match. | | %deaths% | The player's deaths this match. | | %team\_kills% | The kills of your team. | | %enemy\_kills% | The kills of every opposing team. | | %team1\_kills%, %team2\_kills%, ... | The kills of a team by position. | | %team1\_rounds%, %team2\_rounds%, ... | The rounds won by a team by position. | | %team1\_color%, %team2\_color%, ... | The color of a team by position. | Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/placeholders --- # ⁉️ Questions & Answers ## Setup and arenas <details id="why-regeneration-causes-lag-to-my-server"> <summary>Why does regeneration cause lag on my server?</summary> Schematic regeneration relies on WorldEdit, and plain WorldEdit does not run its tasks asynchronously, so large pastes stall the server. Install [FAWE (Fast Async WorldEdit)](https://www.spigotmc.org/resources/fastasyncworldedit.13932/) instead, which handles the same work far more efficiently. </details> <details id="why-are-my-arenas-not-regenerating"> <summary>Why are my arenas not regenerating?</summary> Work through these in order. One of them is nearly always the cause. 1. **Regeneration is switched off for the map.** Open the map in the editor and check that Regeneration is enabled. It is off by default on a new map. 2. **No schematic was generated.** Schematic regeneration needs a saved copy of the arena to paste back. Generate it from the map's regeneration menu. 3. **WorldEdit or FAWE is missing.** If the map's **Regeneration Engine** is set to WorldEdit, one of them must be installed. Switch the engine to Internal if you would rather not install either. 4. **The universal region does not cover the whole build.** Anything outside it is not part of the arena and is never restored. This is the usual cause of "most of it comes back, but not all of it". 5. **Blocks were changed outside the region.** Players who build their way out of the arena leave blocks the plugin has no record of. By default the arena is restored when the match ends. To restore it between rounds as well, turn on **Post Round Regeneration**. If you suspect a previous regeneration silently failed, **Pre Match Regeneration** restores the arena again at the start of every match as a safety net. See [Arena Regeneration](../../main-features/create-a-map/arena-regeneration.md). </details> <details id="why-does-the-scoreboard-stays-the-same-even-when-i-edit-it"> <summary>Why does the scoreboard stay the same when I edit it?</summary> Every mode comes with its own scoreboard, and that one is shown instead of the main scoreboard. Disable the mode's scoreboard in the editor or in the mode's file in the `modes` folder, and the mode falls back to the plugin's main scoreboard. </details> <details id="how-can-i-use-a-void-world-for-my-arenas"> <summary>How can I use a void world for my arenas?</summary> Use a world generator plugin such as [VoidGen](https://www.spigotmc.org/resources/voidgen.25391/), which works with Multiverse. </details> <details id="what-is-the-difference-between-battle-region-and-the-universal-region"> <summary>What is the difference between the Battle Region and the Universal Region?</summary> The **Battle Region** is where the fight takes place. Players cannot leave it, and inside it they can build, break blocks and so on. The duel always happens inside the Battle Region. The **Universal Region** is the whole arena. It is what regeneration and duplication work on. </details> <details id="why-cant-players-place-or-break-blocks-in-my-arena"> <summary>Why can't players place or break blocks in my arena?</summary> Building is only allowed when the arena will regenerate, and only inside the Battle Region. If either is missing, the block is cancelled. Enable regeneration on the arena, and make sure the Battle Region covers the area players build in. If regeneration is already enabled, disable and enable it again so the schematic is rebuilt. Also check that no arena rule, WorldGuard flag or `spawn-protection` is blocking it. Spectators can never build. </details> <details id="how-do-i-turn-off-match-broadcasts"> <summary>How do I turn off match broadcasts?</summary> Match result broadcasts are a **per-mode** setting, so there is no single switch for the whole server. Open the mode in the editor and turn off **Broadcast Results**, or set `public-broadcast` to false in that mode's file under `modes/`. Repeat for every mode you want silent. See [Create a Mode](../../main-features/create-a-mode/README.md). </details> ## Matches and spectating <details id="why-cant-players-hit-each-other-right-after-a-round-starts"> <summary>Why can't players hit each other right after a round starts?</summary> This is almost always EssentialsX's own post-teleport protection, not PhoenixDuels. Players are teleported into the arena when a round starts, and the `teleport-invulnerability` setting in Essentials' `config.yml` grants a few seconds of invulnerability after any teleport, including ones made by other plugins. Essentials does not expose it through its API, so PhoenixDuels cannot bypass it. Lower or disable it in Essentials' `config.yml`: ```yaml teleport-invulnerability: 0 ``` The setting applies server-wide, so it also stops protecting players who teleport with `/home`, `/warp`, `/spawn` and so on. </details> <details id="why-do-matches-cancel-when-a-player-is-in-combat"> <summary>Why do matches cancel when a player is in combat?</summary> You have CombatLogX installed, and one of the participants was still combat-tagged from fighting out in the world. Phoenix Duels refuses to start a match while anyone taking part is tagged, and the cancellation message names the player responsible. Wait for their combat tag to expire and start again. Fighting inside a duel never tags anyone, so this only comes from PvP outside the arena. There is no setting to skip the check; the only way to drop the behaviour is to remove CombatLogX. </details> <details id="why-is-nobody-getting-matched-in-ranked"> <summary>Why is nobody getting matched in ranked?</summary> Ranked matchmaking will not pair two sides whose ratings are too far apart. How far is set by **tolerance** in `elo.yml`, and it defaults to 200. With that default a player rated 500 can only be matched against someone between 300 and 700. Two players can sit in the ranked queue indefinitely if the gap between them is wider, even when they are the only two waiting. On a small or quiet server, raise `tolerance`. Higher values fill queues faster at the cost of less even matches. It is also editable in the editor, under **Settings > Elo Settings**. ```yaml tolerance: 500 ``` Also check that: * An arena is actually free. If every arena of every map allowing that mode is busy, nobody is matched. * The mode allows the ranked player type being queued for, so a mode without `RANKED_DUO` never produces a ranked 2v2. * The players meet the unranked requirement, if it is on. Players who have not met it cannot enter the ranked queue at all. </details> <details id="how-do-i-allow-only-ranked-mode"> <summary>How do I allow only Ranked mode?</summary> Either disable the **Custom** and **Unranked** types in the plugin settings of the in-game editor, or set `allowed-types` in `config.yml` to Ranked only: <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 191707.png" alt=""><figcaption></figcaption></figure> ```yaml allowed-types: - RANKED ``` </details> <details id="where-did-my-items-go-after-a-cancelled-match"> <summary>Where did my items go after a cancelled match?</summary> They are almost certainly in **Lost Items**. Run `/duellostitems` to get them back. The plugin never drops or deletes items it owes a player. When it cannot hand them over, it stores them until the player claims them. That happens when: * A match with item betting is cancelled and the player's inventory is full when the stakes are returned. * Winnings are paid out while the player is offline. * A kit or reward cannot fit in the player's inventory. Players with something waiting are told so a few seconds after they join. See [Lost Items](../../features/lost-items.md). </details> <details id="does-money-betting-need-vault"> <summary>Does money betting need Vault?</summary> Yes. Money betting needs Vault together with an economy plugin. Without Vault the option still appears and can still be switched on, but it does nothing: no stake is taken and no payout is made. There is no startup warning about it, which is why it can look like it is working when it is not. Item betting does not need Vault. See [Betting](../../features/betting.md). </details> <details id="what-does-the-plugin-do-to-the-tab-list-during-a-duel"> <summary>What does the plugin do to the tab list during a duel?</summary> Before 4.0 it only adds a prefix and leaves the tab list global. From 4.0 the tab list can show only the players in the match plus their spectators, with prefixes you can customise. </details> <details id="can-i-turn-off-the-spawn-protection"> <summary>Can I turn off the spawn protection?</summary> No, there is no option to disable it. </details> <details id="which-spectator-engine-should-i-use"> <summary>Which spectator engine should I use?</summary> Use **Default** unless you have a specific reason not to. * **Default** puts the spectator into real Minecraft spectator gamemode and restores their previous gamemode when they leave. They can fly through blocks and cannot interact with anything. * **Legacy** keeps the spectator in survival and makes them an invisible, flying ghost instead. It exists for setups where changing a player's gamemode causes problems with another plugin. The setting is under **Settings > Match Settings > Spectator Engine**, or `match.spectator-engine` in `config.yml`. > **Info:** The Lite version always uses Legacy, whatever the setting says. </details> <details id="why-cant-a-player-spectate-a-match-they-disconnected-from"> <summary>Why can't a player spectate a match they disconnected from?</summary> This is deliberate and cannot be turned off. A player who leaves a match, by disconnecting or by quitting out of it, is barred from returning to that same match as a spectator. Without the rule a player could drop out of a fight they were losing and come straight back to watch their opponents, which is an obvious way to scout or to grief. The restriction only covers the match they left. They can spectate any other match normally. </details> ## Stats and placeholders <details id="how-do-i-make-a-top-10-leaderboard"> <summary>How do I make a top 10 leaderboard?</summary> Use the leaderboard placeholders with a hologram plugin, one line per position. A placeholder ending in a rank number returns the **name** of the player at that position. Adding `_value` returns their score instead. For the top 10 by elo: ``` %phoenixduels_ranked_elo_1% %phoenixduels_ranked_elo_2% %phoenixduels_ranked_elo_3% ``` ...through to `_10`. To show the rating next to the name, put both on the line: ``` &e#1 &f%phoenixduels_ranked_elo_1% &7- &a%phoenixduels_ranked_elo_1_value% ``` For other metrics, swap `elo` for `totalkills`, `totaldeaths`, `totalwins`, `totallosses`, `totaldraws` or `kdratio`. Add a mode id to scope it to one mode: ``` %phoenixduels_ranked_crystal_totalkills_1% ``` Add a period in front for a rolling board: ``` %phoenixduels_weekly_ranked_totalwins_1% ``` > **Info:** Elo is only available for the `all` period, because it is a current rating rather than something accumulated over a window. The full grammar is on the [Placeholders](../placeholders.md) page. Leaderboards are cached, and `leaderboard-fetch-interval` controls how often they refresh. </details> <details id="what-is-global-elo"> <summary>What is global elo?</summary> Global elo is the **average** of a player's ratings across every mode, not a separate rating and not a total. Each player holds an independent rating per mode, and `%phoenixduels_ranked_global_elo%` averages them into one number. Modes the player has never touched still count toward the average, at the default rating. On a server with four ranked modes, a player rated 900 in the one mode they play and untouched in the other three has a global elo of 600, not 900, because the three defaults of 500 are averaged in. Only modes that allow a ranked player type are counted. See [Elo](../../features/elo.md). </details> <details id="what-tables-does-the-plugin-create-in-my-database"> <summary>What tables does the plugin create in my database?</summary> Six core tables, plus one for each of three add-ons. They are created automatically on first start, on both SQLite and MySQL, and every name honours your `database.table-prefix`. * `_duels_player_table` - one row per player. * `_ranking_score_table` - one row per player per mode, holding their elo. * `_history_records_table` - one row per player per finished match. * `_match_recaps_table` - the end-of-match snapshot behind the Recap option. * `_kit_layouts_table` - custom kit layouts. * `_virtual_storage_table` - the Lost Items storage. > **Warning:** Kills, deaths, wins, losses and draws are not stored as counters. They are summed live from the match history table, so there is no column to read them from. </details> ## Kits, menus and messages <details id="how-can-i-remove-the-kit-items-from-being-displayed-in-the-menu"> <summary>How can I remove the kit items from the menus?</summary> Remove the `%kit%` placeholder from the `create_match`, `duel_player` and `select_arena_mode` menus (for custom, unranked and ranked). <figure><img src="../../.gitbook/assets/image (8).png" alt="" width="563"><figcaption></figcaption></figure> An item that uses the placeholder: ```yaml mode-item: display-name: '&aPlay %display_name%' lore: - '&7%description%' - '' - ' %kit%' - '' - '&e%arenas% &aavailable arena(s)!' - '' - '&6Left-Click: &eSelect mode.' - '&6Right-Click: &ePreview kit.' ``` </details> <details id="how-can-i-make-npcs-queue"> <summary>How can I make NPCs queue players?</summary> Face the NPC and select it with `/npc select`, then give it the play command. This one queues the player for an unranked 1v1 in the classic mode when they interact with the NPC: ``` /npc command add duels play unranked solo classic ``` </details> <details id="what-does-actiontype-not-implemented-mean"> <summary>What does "ActionType not implemented" mean?</summary> One of your actions uses a type that does not exist, so the plugin cannot run it. Check the action against the supported list on [Action Types](../action-types.md). </details> <details id="what-does-the-missing-translation-warning-mean"> <summary>What does the "Missing translation" warning mean?</summary> The plugin looked for a line in your active language file and did not find one, so it fell back to English. It is a warning rather than an error, and nothing breaks. It usually happens after an update that added new messages, since your existing translation file predates them. The warning names the missing key. Either add that key to your translation file under `translations/`, or, if you have not customised the file, delete it and restart so the plugin writes a fresh, complete one. See [Languages & Translations](../../configurations/languages.md). > **Warning:** Deleting the file discards any wording you changed. Take a copy first if you have edited it. </details> ## Compatibility <details id="does-phoenixduels-work-on-velocity-or-bungeecord"> <summary>Does PhoenixDuels work on Velocity or BungeeCord?</summary> Yes, but it is not a proxy plugin, and there is no Velocity or BungeeCord jar. PhoenixDuels is a Spigot/Paper plugin and runs on the **backend servers** behind your proxy, exactly as it would on a standalone server. Put it on your duels server, not on the proxy. Point every backend at the same MySQL database and they share player statistics, elo, match history, player kits and lost items. They do **not** share live state on their own: queues, parties and matches are per-server. The paid [Cross-Server Queue](../../add-ons/cross-server-queue/README.md) add-on makes the solo unranked and ranked queues network-wide, with a small proxy jar for Velocity or BungeeCord: players queue from any server, hubs included, and are sent to the Duels server with free arenas. Parties and party matches stay per-server. To let two separate installations share one database without colliding, give each a different `database.table-prefix`. </details> <details id="does-phoenixduels-have-an-ffa-mode"> <summary>Does PhoenixDuels have an FFA mode?</summary> Party FFA is included, so a party can fight free for all between its own members. Public arenas that anyone can walk into come with the [Public FFA](../../add-ons/public-ffa/README.md) add-on. </details> <details id="does-phoenixduels-support-party-plugins"> <summary>Does PhoenixDuels support party plugins?</summary> No, there is no hook for external party plugins such as Party and Friends. PhoenixDuels has its own [party system](../../features/party/README.md), including `/party fight`, which those plugins do not provide. </details> <details id="can-the-plugin-run-as-a-forge-or-fabric-mod"> <summary>Can the plugin run as a Forge or Fabric mod?</summary> No, there is no mod version. Hybrid servers such as Arclight or Mohist can load it, but we do not recommend them, and faults caused by the hybrid itself, such as its own teleport handling, are not plugin issues. </details> <details id="why-cant-a-player-rejoin-after-a-duel-on-a-hybrid-server"> <summary>Why can't a player rejoin after a duel on a hybrid server?</summary> On hybrid servers such as Arclight, Youer or Mohist, the player who died in a duel can get kicked with `multiplayer.disconnect.duplicate_login` every time they try to rejoin. The server still holds a ghost copy of that player, so it rejects the new login. The plugin respawns dead players itself when a world does not respawn them automatically, and some hybrids do not clean up the old player when that happens. Turn on immediate respawn in every arena world so the server respawns players on its own: ``` /gamerule doImmediateRespawn true ``` A server restart clears any ghost players that are already stuck. </details> <details id="why-isnt-the-newest-minecraft-version-supported-yet"> <summary>Why isn't the newest Minecraft version supported yet?</summary> A new release is added once it has settled, so there is a gap between launch and support. Our plugins are updated one at a time, and PhoenixDuels usually comes after PhoenixLobby and PhoenixCrates. There is no ETA, and updates are free for life. The current list is on [Version Support](../../first-installation.md#version-support). </details> ## Add-ons and purchases <details id="which-add-ons-work-on-the-lite-version"> <summary>Which add-ons work on the Lite version?</summary> None. Every add-on requires PhoenixDuels Premium as its base plugin. Some add-ons are free to download, such as Floor is Lava, Pillar of Fortune and Rematch & Requeue; free refers to their price, not to the edition they run on. An add-on placed in the `addons` folder of a Lite installation refuses to load and says so in the console on startup. The rest of the plugin keeps working normally. </details> <details id="why-do-add-ons-appear-in-my-addons-folder"> <summary>Why do add-ons appear in my addons folder?</summary> The jar you downloaded is the bundle, which carries the add-ons inside it and unpacks them on startup. Log in on the product page and download the core-only jar if you do not want them. </details> <details id="do-you-offer-refunds"> <summary>Do you offer refunds?</summary> No. A downloaded product is not refundable. See point 7 of the [Terms and Conditions](https://www.phoenixplugins.com/terms-and-conditions). </details> Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers --- # ❔ Can i turn off the spawn protection? ## Answer No, there is no option to disable it. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/can-i-turn-off-the-spawn-protection --- # ⁉️ Can the plugin run as a Forge or Fabric mod? ## Answer No. It is a Java plugin and there is no mod version of it. Hybrid servers such as Arclight or Mohist can load it, but we do not recommend them. Faults caused by the hybrid itself, such as its own teleport handling, are not plugin issues. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/can-the-plugin-run-as-a-forge-or-fabric-mod --- # ⁉️ Does money betting need Vault? ## Answer Yes. Money betting needs Vault together with an economy plugin. Without Vault the option still appears and can still be switched on, but it does nothing at all: no stake is taken and no payout is made. There is no startup warning about it, which is why it can look like it is working when it is not. Item betting does not need Vault and works on its own. See [Betting](../../features/betting.md). Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/does-money-betting-need-vault --- # ⁉️ Does PhoenixDuels have an FFA mode? ## Answer Party FFA is already included in PhoenixDuels, so a party can fight free for all between its own members. Public FFA, where anyone can walk into an open arena, is not part of PhoenixDuels and is not an add-on for it. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/does-phoenixduels-have-an-ffa-mode --- # ⁉️ Does PhoenixDuels support party plugins? ## Answer No, there is no hook for external party plugins such as Party and Friends. PhoenixDuels has its own party system, including /party fight, which those plugins do not provide. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/does-phoenixduels-support-party-plugins --- # ⁉️ Does PhoenixDuels work on Velocity or BungeeCord? ## Answer Yes, but it is not a proxy plugin. There is no Velocity or BungeeCord jar. PhoenixDuels is a Spigot/Paper plugin and runs on the **backend servers** behind your proxy, exactly as it would on a standalone server. Put it on your duels server, not on the proxy. ## Running it on more than one backend Point every server at the same MySQL database and they will share player statistics, elo, match history, player kits and lost items. They will **not** share live state. Queues, parties and matches are per-server, so two players on different backends cannot queue into the same match or party up. If you want one duels lobby, run one duels server and send players to it. If you need two separate installations to share one database without colliding, give each of them a different `database.table-prefix`. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/does-phoenixduels-work-on-velocity-or-bungeecord --- # ⁉️ Do you offer refunds? ## Answer No. Once the product has been downloaded it is not refundable. See point 7 of our [Terms and Conditions](https://www.phoenixplugins.com/terms-and-conditions). Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/do-you-offer-refunds --- # ❔ How can i make npcs queue? ## Answer 1. To make the queue via an npc, the process is pretty easy. First, you need to select your npc by doing **Select the NPC:** Face the NPC and run the following command to select it:\ /npc select 2. **Add the Duels Command:** Once you've selected the NPC, you can assign the duels play command. This example will allow the NPC to queue the player for an unranked 1v1 duel in classic mode:\ /npc command add duels play unranked solo classic This will automatically queue the player for an unranked 1v1 match with classic mode when they interact with the NPC. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/how-can-i-make-npcs-queue --- # ❔ How can i remove the kit items from being displayed in the menu? ## Answer Do you want to remove the whole kit from being displayed on the menu? Make sure to remove the `%kit%` placeholder from the menus: `create_match` , `duel_player`, `select_arena_mode` (for custom, unranked, and ranked). These are the menu names where you can find that specific placeholder. <figure><img src="../../.gitbook/assets/image (8).png" alt="" width="563"><figcaption></figcaption></figure> An example of an item that has the `%kit%` placeholder ```yaml mode-item: display-name: '&aPlay %display_name%' lore: - '&7%description%' - '' - ' %kit%' - '' - '&e%arenas% &aavailable arena(s)!' - '' - '&6Left-Click: &eSelect mode.' - '&6Right-Click: &ePreview kit.' ``` Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/how-can-i-remove-the-kit-items-from-being-displayed-in-the-menu --- # ❔ How can I use a void world for my arenas? ## Answer You can use a plugin such as [VoidGen](https://www.spigotmc.org/resources/voidgen.25391/) that works with Multiverse. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/how-can-i-use-a-void-world-for-my-arenas --- # ❔ How do i allow only Ranked mode? ## Answer There are two ways to enable only the **Ranked Mode** for your server: 1. **Via the in-game editor**: Navigate to the plugin's settings and disable both the **Custom** and **Unranked** modes. 2. **Via the config file**: Open the **main config.yml** file of the plugin and modify the **allowed-types** setting to only permit Ranked mode. <figure><img src="../../.gitbook/assets/Screenshot 2025-03-03 191707.png" alt=""><figcaption></figcaption></figure> Both methods will restrict players to only the Ranked mode on your server. ```yaml allowed-types: - RANKED ``` Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/how-do-i-allow-only-ranked-mode --- # ❔ How do i make a top 10 leaderboard? ## Answer Use the leaderboard placeholders with a hologram plugin, one line per position. A placeholder ending in a rank number returns the **name** of the player at that position. Adding `_value` returns their score instead. ## Top 10 by elo ``` %phoenixduels_ranked_elo_1% %phoenixduels_ranked_elo_2% %phoenixduels_ranked_elo_3% ``` ...through to `_10`. To show the rating next to the name, put both on the line: ``` &e#1 &f%phoenixduels_ranked_elo_1% &7- &a%phoenixduels_ranked_elo_1_value% ``` ## Other metrics Swap `elo` for `totalkills`, `totaldeaths`, `totalwins`, `totallosses`, `totaldraws` or `kdratio`. Add a mode id to scope it to one mode: ``` %phoenixduels_ranked_crystal_totalkills_1% ``` Add a period in front for a rolling board: ``` %phoenixduels_weekly_ranked_totalwins_1% ``` > **Info:** Elo is only available for the `all` period, because it is a current rating rather than something accumulated over a window. The full grammar is on the [Placeholders](../placeholders.md) page. Leaderboards are cached, and `leaderboard-fetch-interval` controls how often they refresh. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/how-do-i-make-a-top-10-leaderboard --- # ❔ How do i turn off match broadcasts? ## Answer Match result broadcasts are a **per-mode** setting, not a global one, so there is no single switch for the whole server. Open the mode in the editor and turn off **Broadcast Results**, or set `public-broadcast` to false in that mode's file under `modes/`. Repeat for every mode you want silent. See [Create a Mode](../../main-features/create-a-mode/README.md). Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/how-do-i-turn-off-match-broadcasts --- # 🤔 What does "ActionType not implemented" mean? ## Answer One of your actions uses a type that does not exist, so the plugin cannot run it. Check the action against the supported list on the [Action Types](../action-types.md) page. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/what-does-actiontype-not-implemented-mean --- # ❓ What does the "Missing translation" warning mean? ## Answer The plugin looked for a line in your active language file and did not find one, so it fell back to English. It is a warning rather than an error, and nothing breaks. It usually happens after an update that added new messages, since your existing translation file predates them. ## How to fix it The warning names the missing key. Either add that key to your translation file under `translations/`, or, if you have not customised the file, delete it and restart so the plugin writes a fresh, complete one. See [Languages & Translations](../../configurations/languages.md). > **Warning:** Deleting the file discards any wording you changed. Take a copy first if you have edited it. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/what-does-the-missing-translation-warning-mean --- # 🤔 What does the plugin do to the tab list during a duel? ## Answer Before 4.0 it only adds a prefix and leaves the tab list global. From 4.0 the tab list can show only the players in the match plus their spectators, with prefixes you can customise. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/what-does-the-plugin-do-to-the-tab-list-during-a-duel --- # 🤔 What is global elo? ## Answer Global elo is the **average** of a player's ratings across every mode, not a separate rating and not a total. Each player holds an independent rating per mode. `%phoenixduels_ranked_global_elo%` averages those together to give one number for the player overall. ## Why it looks lower than expected Modes the player has never touched still count toward the average, at the default rating. On a server with four ranked modes, a player rated 900 in the one mode they play and untouched in the other three has a global elo of 600, not 900, because the three defaults of 500 are averaged in. Only modes that allow a ranked player type are counted at all. See [Elo](../../features/elo.md). Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/what-is-global-elo --- # 🤔 What is the difference between Battle Region and the Universal Region? ## Answer ### Battle Region The **Battle Region** is the zone where the actual combat takes place. Players won't be able to leave this area, and within it, they'll be able to build, break blocks, and more. ### Universal Region The **Universal Region** refers to the overall arena. It's useful for regenerating or duplicating the arena, among other functions.\ \ The dueling will always be happening inside the **Battle Region**. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/what-is-the-difference-between-battle-region-and-the-universal-region --- # 🤔 What tables does the plugin create in my database? ## Answer Six core tables, plus one for each of three add-ons. They are created automatically on first start, on both SQLite and MySQL, and every name honours your `database.table-prefix`. * `_duels_player_table` - one row per player. * `_ranking_score_table` - one row per player per mode, holding their elo. * `_history_records_table` - one row per player per finished match. * `_match_recaps_table` - the end-of-match snapshot behind the Recap option. * `_kit_layouts_table` - custom kit layouts. * `_virtual_storage_table` - the Lost Items storage. > **Warning:** Kills, deaths, wins, losses and draws are not stored as counters. They are summed live from the match history table, so there is no column to read them from. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/what-tables-does-the-plugin-create-in-my-database --- # ❓ Where did my items go after a cancelled match? ## Answer They are almost certainly in **Lost Items**. Run /duellostitems to get them back. The plugin never drops or deletes items it owes a player. When it cannot hand them over, it stores them until the player claims them. That happens when: * A match with item betting is cancelled and the player's inventory is full when the stakes are returned. * Winnings are paid out while the player is offline. * A kit or reward cannot fit in the player's inventory. Players with something waiting are told so a few seconds after they join the server. See [Lost Items](../../features/lost-items.md). Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/where-did-my-items-go-after-a-cancelled-match --- # ⁉️ Which add-ons work on the Lite version? ## Answer None of them. Every add-on requires PhoenixDuels Premium as its base plugin. Some add-ons are free to download, such as Floor is Lava, Pillar of Fortune and Rematch & Requeue. Free refers to their price, not to which edition they run on. An add-on placed in the `addons` folder of a Lite installation refuses to load and says so in the console on startup. The rest of the plugin keeps working normally. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/which-add-ons-work-on-the-lite-version --- # 🤔 Which spectator engine should i use? ## Answer Use Default unless you have a specific reason not to. * **Default** puts the spectator into real Minecraft spectator gamemode and restores their previous gamemode when they leave. They can fly through blocks and cannot interact with anything. * **Legacy** keeps the spectator in survival and makes them an invisible, flying ghost instead. It exists for setups where changing a player's gamemode causes problems with another plugin. The setting is under Settings > Match Settings > Spectator Engine, or `match.spectator-engine` in `config.yml`. > **Info:** The Lite version always uses Legacy, whatever the setting says. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/which-spectator-engine-should-i-use --- # ❓ Why are my arenas not regenerating? ## Answer Work through these in order. One of them is nearly always the cause. 1. **Regeneration is switched off for the map.** Open the map in the editor and check that Regeneration is enabled. It is off by default on a new map. 2. **No schematic was generated.** Schematic regeneration needs a saved copy of the arena to paste back. Generate it from the map's regeneration menu. 3. **WorldEdit or FAWE is missing.** If the map's **Regeneration Engine** is set to WorldEdit, one of them must be installed. Switch the engine to Internal if you would rather not install either. 4. **The universal region does not cover the whole build.** Anything outside it is not part of the arena and is never restored. This is the usual cause of "most of it comes back, but not all of it". 5. **Blocks were changed outside the region.** Players who build their way out of the arena leave blocks the plugin has no record of. ## If it works but not often enough By default the arena is restored when the match ends. To restore it between rounds as well, turn on **Post Round Regeneration**. If you suspect a previous regeneration silently failed, **Pre Match Regeneration** restores the arena again at the start of every match as a safety net. See [Arena Regeneration](../../main-features/create-a-map/arena-regeneration.md). Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/why-are-my-arenas-not-regenerating --- # ❓ Why can't a player rejoin after a duel on a hybrid server? ## Answer On hybrid servers such as Arclight, Youer or Mohist, the player who died in a duel can get kicked with `multiplayer.disconnect.duplicate_login` every time they try to rejoin. The server still holds a ghost copy of that player, so it rejects the new login. The plugin respawns dead players itself when a world does not respawn them automatically, and some hybrids do not clean up the old player when that happens. Turn on immediate respawn in every arena world so the server respawns players on its own: ``` /gamerule doImmediateRespawn true ``` A server restart clears any ghost players that are already stuck. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/why-cant-a-player-rejoin-after-a-duel-on-a-hybrid-server --- # ❓ Why can't a player spectate a match they disconnected from? ## Answer This is deliberate and cannot be turned off. A player who leaves a match, whether by disconnecting or by quitting out of it, is barred from returning to that same match as a spectator. Without the rule a player could drop out of a fight they were losing and immediately come back to watch their opponents, which is an obvious way to scout or to grief. The restriction only covers the match they left. They can spectate any other match normally, and once that match ends the restriction is irrelevant. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/why-cant-a-player-spectate-a-match-they-disconnected-from --- # ❓ Why can't players hit each other right after a round starts? ## Answer This is almost always caused by EssentialsX's own post-teleport protection, not PhoenixDuels. When a round starts, players are teleported into the arena, and Essentials' `teleport-invulnerability` setting (in its `config.yml`) grants a few seconds of invulnerability after any teleport, including ones performed by other plugins. PhoenixDuels has no way to bypass this - Essentials doesn't expose it through its public API. To fix it, lower or disable it in Essentials' `config.yml`: ```yaml teleport-invulnerability: 0 ``` Note this setting applies server-wide, not just to duels - it also protects players who teleport via `/home`, `/warp`, `/spawn`, etc. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/why-cant-players-hit-each-other-right-after-a-round-starts --- # ❓ Why can't players place or break blocks in my arena? ## Answer Building is only allowed when the arena will regenerate, and only inside the Battle Region. If either is missing, the block is cancelled. Enable regeneration on the arena, and make sure the Battle Region actually covers the area players build in. If regeneration is already enabled, disable and enable it again so the schematic is rebuilt. Also check that no arena rule, WorldGuard flag, or spawn-protection is blocking it. Spectators can never build. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/why-cant-players-place-or-break-blocks-in-my-arena --- # ❓ Why do add-ons appear in my addons folder? ## Answer The jar you downloaded is the bundle, which carries the add-ons inside it and unpacks them on startup. Log in on the product page and download the core only jar if you do not want them. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/why-do-add-ons-appear-in-my-addons-folder --- # ❓ Why does the scoreboard stays the same even when i edit it? ## Answer By default, all game modes come with their scoreboard. You can disable this either manually by editing the mode's configuration file in the modes folder or directly from the in-game editor. Once a game mode's scoreboard is disabled, it will automatically use the plugin's main scoreboard. This provides flexibility in managing your scoreboards across different modes. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/why-does-the-scoreboard-stays-the-same-even-when-i-edit-it --- # ❓ Why do matches cancel when a player is in combat? ## Answer You have CombatLogX installed, and one of the participants was still combat-tagged from fighting out in the world. Phoenix Duels refuses to start a match while anyone taking part is tagged, and the cancellation message names the player responsible. Waiting for their combat tag to expire and starting again is all that is needed. Fighting inside a duel never tags anyone, so this only ever comes from PvP that happened outside the arena. If you do not want the behaviour at all, remove CombatLogX. There is no setting to keep the plugin and skip the check. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/why-do-matches-cancel-when-a-player-is-in-combat --- # ❓ Why is nobody getting matched in ranked? ## Answer Ranked matchmaking will not pair two sides whose ratings are too far apart. How far is set by **tolerance** in `elo.yml`, and it defaults to 200. With that default a player rated 500 can only be matched against someone between 300 and 700. Two players can sit in the ranked queue indefinitely if the gap between them is wider, even when they are the only two waiting. ## How to fix it On a small or quiet server, raise `tolerance`: ```yaml tolerance: 500 ``` Higher values fill queues faster at the cost of less even matches. It is also editable from the editor, under Settings > Elo Settings. ## Other things to check * An arena has to actually be free. If every arena of every map allowing that mode is busy, nobody is matched. * The mode has to allow the ranked player type being queued for, so a mode without `RANKED_DUO` never produces a ranked 2v2. * If the unranked requirement is on, players who have not met it cannot enter the ranked queue at all. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/why-is-nobody-getting-matched-in-ranked --- # ❓ Why isn't the newest Minecraft version supported yet? ## Answer A new Minecraft release is added once it has settled, so there is a gap between it launching and us supporting it. Our plugins are updated one at a time, and PhoenixDuels usually comes after PhoenixLobby and PhoenixCrates. We do not give an ETA for it. Updates are free for life, so the update reaches you at no extra cost. Check the [Version Support](../version-support.md) page for what is supported right now. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/why-isnt-the-newest-minecraft-version-supported-yet --- # ❓ Why Regeneration causes lag to my server ## Answer Our regeneration process relies on the WorldEdit plugin. However, if you're using the default WorldEdit, it can cause performance issues because it doesn't run tasks asynchronously on your server. To improve performance, we recommend installing FAWE (Fast Async WorldEdit), which is an optimized alternative that handles tasks more efficiently. Download FAWE: [Click Here](https://www.spigotmc.org/resources/fastasyncworldedit.13932/) Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/questions-and-answers/why-regeneration-causes-lag-to-my-server --- # 📒 Version Support ## Version Support <a href="#version-support" id="version-support"></a> The plugin supports Spigot, any Spigot forks, Paper, and any Paper forks. It should also work on any custom modded servers. > **Warning:** Folia is supported, but the support is still **experimental**. Test it on a staging server before putting it in front of your players, and report anything you run into. <table><thead><tr><th>Minecraft Version</th><th data-type="checkbox"></th></tr></thead><tbody><tr><td>26.x</td><td>true</td></tr><tr><td>1.21.x</td><td>true</td></tr><tr><td>1.20.4 - 1.20.6</td><td>true</td></tr><tr><td>1.20.3 and older</td><td>false</td></tr></tbody></table> > **Info:** Older versions were supported up to an earlier release of the plugin. If you are still on 1.20.3 or below, keep using that release. Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/version-support --- # 🏠 Homepage ## Introduction PhoenixDuels, is a revolutionary plugin that simplifies duels. Say goodbye to outdated and confusing plugins. With PhoenixDuels, you'll enjoy an easy-to-use in-game editor and a range of features that make your life easy and enhance your experience. Our plugin is mostly designed to work seamlessly on any type of server, whether it's a survival server, skyblock server, and more. Additionally, it's worth mentioning that all player menus have been carefully planned to support Bedrock versions. ## Documentation This docs page includes every feature provided by the plugin. Be sure to take an in-depth look, and if you have any questions or suggestions, feel free to contact our team. ## Premium Plan In the following table, you can see the additional perks available with the premium version of PhoenixDuels. ### Purchase Phoenix Duels from our [Website](https://www.phoenixplugins.com/product/phoenix-duels) | Free Version | Premium Extra Perks | | ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | | Gamemodes Limit 5 | Unlimited Gamemodes | | Maps Limit 5 (6 on a linked server) | Unlimited Maps | | Arenas per Map Limit 2 | Unlimited Arenas | | No Party FFA | Party FFA Included | | No Party Split | Party Split Included | | Party Limit of 4 | Unlimited Party Limit | | Limited Gamemode Rules | Golden Head, Extra Hearts, Remove Empty Bottoel, Water Slowly Damage, Timed Block, Only Self Placed Blocks Breaking. | | SQLite Database Support | MySQL Database Support | | No Pre-kit Layouts | Pre-kit Layouts included | | Community Based Support | Specialized Support | | Response Time ( NO ETA ) | Response Time ( 1-48 Hours ) | | Hot Fixes ( NO ETA ) | Bug Fixes ( 1-7 Days ) | | Doesn't Include a Discord Role | Discord Role | On Lite, every locked editor button, command and party option says it is a Premium feature and links to the product page. ### Bug Reports <a href="#bug-reports" id="bug-reports"></a> Before reporting an issue, make sure you have tested the latest available version of the plugin. <figure><img src=".gitbook/assets/Phoenix Duels 3.0 Thumbnail.png" alt="" width="563"><figcaption><p>Phoenix Duels</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-duels === # Phoenix Lobby documentation > Premium all-in-one lobby and hub plugin for single servers and BungeeCord or Velocity networks: server selector, join items, NPCs, scoreboards, queues, parkour and world protection in one plugin. Docs: https://www.phoenixplugins.com/docs/phoenix-lobby Supported Minecraft versions: 1.20.4 – 26.3 (Paper, Folia (experimental), Spigot, Velocity, BungeeCord) --- # 🌐 API ## API Build your own extensions for Phoenix Lobby with our public API. ## Maven Repository ```xml <repositories> <repository> <id>phoenixplugins</id> <url>https://repo.phoenixplugins.com/</url> </repository> </repositories> ``` ## Dependency ```xml <dependency> <groupId>com.phoenixplugins.phoenixlobby</groupId> <artifactId>api</artifactId> <version>1.0.0-SNAPSHOT</version> </dependency> ``` ## Getting started Add PhoenixLobby to your **plugin.yml** so your plugin loads after it. ```yaml depend: [PhoenixLobby] ``` Use `softdepend` instead if your plugin should still work when PhoenixLobby is not installed. In that case check `PhoenixLobbyAPI.isAvailable()` before calling anything. ## The API class `PhoenixLobbyAPI` answers questions about the lobby without going through placeholders. ```java if (!PhoenixLobbyAPI.isAvailable()) { return; } PhoenixLobbyAPI api = PhoenixLobbyAPI.get(); ``` | Method | Returns | | ------------------------------------------ | ---------------------------------------------------------- | | `getVersion()` | The version of PhoenixLobby that is running | | `getNpcTypes()` | Every NPC configured on this server | | `getNpcType(String identifier)` | One NPC by its identifier, as an `Optional` | | `isLobbyWorld(String worldName)` | Whether the plugin treats that world as a lobby | | `isInPvpMode(Player player)` | Whether the player is in [PvP mode](../modules/lobby-pvp.md) | | `getPlayingParkour(Player player)` | The parkour the player is running, as an `Optional` | | `getParkourHighScore(Player, String)` | That player's best score on a parkour | ```java PhoenixLobbyAPI.get().getPlayingParkour(player).ifPresent(parkour -> { player.sendMessage("You are running " + parkour + "."); }); ``` An `NpcType` gives you `isEnabled()`, `getIdentifier()`, `getDisplayName()` and `getEngineData()`, which in turn reports the [engine](../featues/npcs/npc-engines/) that NPC is drawn with. > **Warning:** `PhoenixLobbyAPI.get()` throws if the plugin has not finished loading. Call it from inside your own `onEnable` or later, never from a static initialiser, and guard it with `isAvailable()` when PhoenixLobby is only a soft dependency. ## Everything else Anything not documented here is internal and can change between versions. For values rather than behaviour, the [placeholders](../plugin-information/placeholders.md) are the stable route and cover far more of the plugin than the API does. ## Events Four events are fired, and all of them are ordinary Bukkit events, so a normal listener picks them up. They live in `com.phoenixplugins.phoenixlobby.api.events`. | Event | Fired when | | ------------------------- | ------------------------------------------------ | | `PlayerDoubleJumpEvent` | A player uses the [double jump](../modules/double-jump.md) | | `PlayerParkourStartEvent` | A player starts a [parkour](../modules/parkour/) run | | `PlayerParkourJumpEvent` | A player lands on the next parkour block | | `PlayerParkourEndEvent` | A parkour run ends | ### What each one carries | Event | Available on the event | Cancellable | | ------------------------- | ------------------------------------------------------------ | ----------- | | `PlayerDoubleJumpEvent` | `getPlayer()` | Yes | | `PlayerParkourStartEvent` | `getPlayer()`, `getParkourIdentifier()` | Yes | | `PlayerParkourJumpEvent` | `getPlayer()`, `getParkourIdentifier()`, `getScore()` | No | | `PlayerParkourEndEvent` | `getPlayer()`, `getParkourIdentifier()`, `getScore()`, `getElapsedSeconds()`, `isNewRecord()` | No | Cancelling `PlayerDoubleJumpEvent` stops the launch, and cancelling `PlayerParkourStartEvent` stops the run before it begins — which is how another plugin blocks either one in its own regions or during its own events. ```java @EventHandler public void onDoubleJump(PlayerDoubleJumpEvent event) { if (isInMyArena(event.getPlayer())) { event.setCancelled(true); } } ``` ```java public class ParkourListener implements Listener { @EventHandler public void onParkourEnd(PlayerParkourEndEvent event) { if (!event.isNewRecord()) { return; } Bukkit.broadcastMessage(event.getPlayer().getName() + " set a new record on " + event.getParkourIdentifier() + " with " + event.getScore() + " points."); } } ``` > **Info:** The parkour identifier is the one you gave the parkour in the editor, the same string the [parkour placeholders](../modules/parkour/README.md#placeholders) take. Setting your listener up, and the rest of what the plugin exposes, is covered above. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/api --- # 📡 Events ## Events Four events are fired, and all of them are ordinary Bukkit events, so a normal listener picks them up. They live in `com.phoenixplugins.phoenixlobby.api.events`. | Event | Fired when | | ------------------------- | ------------------------------------------------ | | `PlayerDoubleJumpEvent` | A player uses the [double jump](../modules/double-jump.md) | | `PlayerParkourStartEvent` | A player starts a [parkour](../modules/parkour/) run | | `PlayerParkourJumpEvent` | A player lands on the next parkour block | | `PlayerParkourEndEvent` | A parkour run ends | ## What each one carries | Event | Available on the event | Cancellable | | ------------------------- | ------------------------------------------------------------ | ----------- | | `PlayerDoubleJumpEvent` | `getPlayer()` | Yes | | `PlayerParkourStartEvent` | `getPlayer()`, `getParkourIdentifier()` | Yes | | `PlayerParkourJumpEvent` | `getPlayer()`, `getParkourIdentifier()`, `getScore()` | No | | `PlayerParkourEndEvent` | `getPlayer()`, `getParkourIdentifier()`, `getScore()`, `getElapsedSeconds()`, `isNewRecord()` | No | Cancelling `PlayerDoubleJumpEvent` stops the launch, and cancelling `PlayerParkourStartEvent` stops the run before it begins — which is how another plugin blocks either one in its own regions or during its own events. ```java @EventHandler public void onDoubleJump(PlayerDoubleJumpEvent event) { if (isInMyArena(event.getPlayer())) { event.setCancelled(true); } } ``` ```java public class ParkourListener implements Listener { @EventHandler public void onParkourEnd(PlayerParkourEndEvent event) { if (!event.isNewRecord()) { return; } Bukkit.broadcastMessage(event.getPlayer().getName() + " set a new record on " + event.getParkourIdentifier() + " with " + event.getScore() + " points."); } } ``` > **Info:** The parkour identifier is the one you gave the parkour in the editor, the same string the [parkour placeholders](../modules/parkour/placeholders.md) take. Setting your listener up, and the rest of what the plugin exposes, is on the [API page](README.md). Source: https://www.phoenixplugins.com/docs/phoenix-lobby/api/events --- # 🛠️ GeyserMC (Bedrock) > **Info:** These options are in the bedrock section of config.yml. They have no editor option. ## Overview Bedrock players joining through Geyser can use the lobby menus as native Bedrock forms instead of chest menus: a list of buttons for the selectors and a list of switches for the player settings. Forms need Floodgate or Geyser to be installed on the same server as the plugin. Without either, everyone gets the chest menus. **Please note:** This guide will not cover the installation process of Geyser itself. Refer to the Geyser wiki for comprehensive installation instructions: [Geyser Wiki Setup](https://wiki.geysermc.org/geyser/setup/) ```yaml bedrock: forms: true input-modes: [] allow-opt-out: true chest-switch-button: true resize-chest-menus: true chest-only-menus: [] form-titles: {} form-buttons: {} icons: enabled: true fallback-url: "" head-url: "https://mc-heads.net/head/%texture%" ``` ## How the Forms Work | Menu | Bedrock form | | --- | --- | | Server selector and custom menus | A button per item that has actions, in slot order. | | Lobby selector | A button per lobby with its player count, then the menu's other items. The lobby you are in and offline lobbies do nothing. | | Music | The menu's items, such as the stop button, then a button per disc. | | Player settings | A switch per setting, saved when the form is submitted. | Buttons use the display name of each item, unless Form Buttons below sets their text, with colors and placeholders kept and hex colors removed, since forms cannot show them. Items without actions, fillers and close buttons are left out. The text around them, such as the lobby player count, comes from the bedrock section of the translations file. The actions of an item and the open actions of a menu still run. Everything else about the chest menu layout does not apply to forms. If a form cannot be sent, the player gets the chest menu instead and the console says so. Admin menus such as the editor stay chest menus. A button with more than one click action asks the Bedrock player which one to run, and every text prompt opens as a form. ## Forms Turns Bedrock forms on or off for the whole server. When off, Bedrock players get the chest menus like everyone else. ## Input Modes Limits forms to Bedrock players on certain devices, by their input mode: `TOUCH`, `CONTROLLER`, `KEYBOARD_MOUSE` or `VR`. Players on any other input get chest menus. Leave the list empty to give forms to every Bedrock player. ```yaml bedrock: input-modes: - TOUCH - CONTROLLER ``` ## Allow Opt Out Lets Bedrock players choose chest menus for themselves. Every form gets a button, or a switch in the player settings, to change to chest menus, and `/plobby forms` switches between the two. The choice is remembered per player. When this is off, every Bedrock player gets forms and the command is refused. ## Chest Switch Button Shows the button at the bottom of each form that changes the player to chest menus. Turn it off to keep forms clean; the player settings switch and `/plobby forms` still work while Allow Opt Out is on. ## Resize Chest Menus Bedrock only draws chest menus of 3 or 6 rows cleanly. With this on, a menu of 1 or 2 rows is opened with 3 rows and a menu of 4 or 5 rows with 6, for Bedrock players who get chest menus. Java players always see the rows the menu is set to. ## Chest Only Menus Menus that always open as chest menus, by file name without `.yml`: `servers`, `lobbies`, `music`, `player-settings` or one of your own. Use it for a menu that shows information rather than buttons, since a form only shows the items that have actions. ```yaml bedrock: chest-only-menus: - profile ``` ## Form Titles and Buttons Bedrock-only text for a menu's form, by file name without `.yml`, for the server selector, the lobby selector and your own menus. Use it when the chest menu title is a resource pack image or the item names are styled for Java, since a form cannot show either. Placeholders work. Buttons are set by item name; items not listed keep their display name, and Java players see no change. ```yaml bedrock: form-titles: servers: "Server Selector" form-buttons: servers: skyblock: "Skyblock - %phoenixlobby_proxy_skyblock%" ``` ## Icons Adds an icon to form buttons. * **enabled** - Turns icons on or off. * **fallback-url** - An image URL for materials the built-in icon table does not know. `%material%` is replaced by the material name in lower case. Leave it empty for no icon. * **head-url** - An image URL for player heads. `%texture%` is replaced by the head's texture id, or the owner's name when it has no texture. Leave it empty for no head icons. Vanilla items use the Bedrock texture of the same item, which every Bedrock client already has. Custom items, meaning items from another plugin, items with custom model data and items with an item model, get no icon, since their texture only exists in a resource pack. Player heads always use the head URL. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/configurations/geysermc-bedrock --- # 🎁 Item Options ## Item Options The plugin builds items in several places — the [hotbar items](../featues/hotbar-items.md), the entries of every [menu](../featues/menus.md), the two states of the PvP mode item and the teleport bow. They share most of their options, so what is on this page works in all of them unless a section says otherwise. ```yaml material: DIAMOND_SWORD amount: 1 custom-model-data: 0 item-model: '' glow: false hide-attributes: false display-name: '&bExample' lore: - '&7An example item.' ``` ## Where each option works Three groups of items exist, and the last two columns are the ones to check before writing an option that does nothing. | Option | Hotbar & custom items | Music & player settings menus | | --------------------- | --------------------- | ----------------------------- | | `material` | Yes | Yes | | `amount` | Yes | Yes | | `custom-model-data` | Yes | Yes | | `item-model` | Yes | Yes | | `tooltip-style` | Yes | Yes | | `glow` | Yes | Yes | | `hide-attributes` | Yes | Yes | | `display-name`, `lore`| Yes | Yes | | `enchantments` | Hotbar items only | No | | `hide-enchantments` | Hotbar items only | No | | The [extras](#extras) below | No | Yes | "Custom items" here means the entries of `servers.yml`, `lobbies.yml` and any [menu you create](../featues/menus.md#custom-menus). ### The two built-in items The [PvP mode item](../featues/hotbar-items.md#pvp-mode) and the [teleport bow](../featues/hotbar-items.md#teleport-bow) are written by hand rather than as normal entries, so they differ slightly: * The PvP mode item's two states take `material`, `custom-model-data`, `item-model`, `tooltip-style`, `display-name`, `lore`, `enchantments` and `hide-enchantments`. They have no `glow` or `amount`. * The teleport bow takes everything the hotbar items do. Its `glow` option changes nothing, because the bow always carries Infinity to fire without ammo being consumed, and that gives it the shimmer regardless. ## Material The material is the Minecraft item name, such as `DIAMOND_SWORD` or `LIME_DYE`. A material your server version does not have leaves the slot empty, so check the name against the version you run. Player heads have two forms of their own, covered under [Player Heads](../featues/hotbar-items.md#player-heads). ## Amount How many of the item are in the stack. Anything below 1 is treated as 1. ## Resource Pack Options Two options point an item at a custom model, and which one you use depends on your server version. | Option | Description | | ------------------- | ------------------------------------------------------------- | | `custom-model-data` | The number your resource pack predicate matches on. Leave it at 0 for none. | | `item-model` | The model to draw, as a namespaced key such as `mypack:ruby_sword` | | `tooltip-style` | The tooltip frame to draw behind the name and lore, as a namespaced key such as `mypack:legendary` | ```yaml material: DIAMOND_SWORD custom-model-data: 1001 ``` ```yaml material: DIAMOND_SWORD item-model: 'mypack:ruby_sword' ``` ```yaml material: DIAMOND_SWORD tooltip-style: 'mypack:legendary' ``` A key without a namespace is read as a vanilla one, so write the namespace your pack uses. A style your pack does not define leaves the item with the normal tooltip. > **Info:** `item-model` and `tooltip-style` need Minecraft 1.21.2 or above. On an older server they are ignored and the item keeps its normal look, so a pack that has to cover both versions uses `custom-model-data`. ## Enchantments Each entry is an enchantment and a level, separated by a colon. A level left out counts as 1. ```yaml enchantments: - 'SHARPNESS:5' - 'UNBREAKING:3' - 'MENDING' ``` An enchantment name your server does not recognise is skipped and the rest of the list still applies, so a typo costs you one enchantment rather than all of them. ## Hide Enchantments Whether the enchantment lines are printed under the name. It is on by default, which is what keeps a decorated item looking clean in the hotbar. > **Warning:** This option hides more than the enchantments. With it on the item carries every hide flag, so attack damage, armour values, unbreakable and the rest are hidden too. Turning it off reveals the enchantment lines only — the attribute lines stay hidden either way. ## Glow Gives the item the enchanted shimmer without an enchantment on it. It is applied by adding a hidden Unbreaking I, so an item that already carries `enchantments` of its own keeps those and ignores `glow`. ## Hide Attributes Hides the attribute lines a weapon or a piece of armour prints, so a sword in a menu shows only the name and lore you wrote. On a hotbar item this changes nothing, because `hide-enchantments` already hides those lines. ## Display Name and Lore The name and the lines under it. Both accept the usual & colour codes, [MiniMessage](languages.md#rich-text-minimessage) tags and [PlaceholderAPI](../plugin-information/placeholders.md) placeholders. Set `display-name` to `''` to leave the item with no name at all. ```yaml display-name: '&aGame Menu &7(Right Click)' lore: - '&7Click here to open the quick compass.' - '' - '&d%phoenixlobby_proxy_survival% &7currently playing!' ``` A lore line that reads a placeholder only updates when the item is rebuilt. In a menu that means turning on `refresh` in its [settings](../featues/menus.md#settings); in the hotbar it means the player rejoining or changing world. ## Extras The [music](../featues/music.md) and [player settings](../featues/player-settings.md) menus are built on the newer menu system, so their items take a few more options. These are ignored everywhere else. | Option | Description | | --------------------------- | -------------------------------------------------------------- | | `rgb` | Dyes leather armour, written as `255, 80, 0` | | `trim-material`, `trim-pattern` | Puts an armour trim on a piece of armour, both needed | | `banner-meta` | Banner patterns, each written as `COLOUR;PATTERN` | | `potion-effects` | Effects on a potion, each written as `effect;duration;amplifier` | | `enchantment-glint-override`| Forces the shimmer on or off, whatever the enchantments say | | `hide-tooltip` | Hides the tooltip of the item completely | ```yaml material: LEATHER_CHESTPLATE rgb: '255, 80, 0' trim-material: REDSTONE trim-pattern: SENTRY ``` ```yaml material: WHITE_BANNER banner-meta: - 'RED;STRIPE_SMALL' - 'BLACK;BORDER' ``` ```yaml material: POTION potion-effects: - 'speed;600;1' ``` > **Info:** A value these options cannot read — a trim material that does not exist, a malformed banner pattern — is skipped without an error, and the item is built without it. > **Warning:** `hide-tooltip` and `enchantment-glint-override` are Minecraft 1.21.2 features and do nothing on an older server. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/configurations/item-options --- # 🌍 Languages & Translations ## Translations Every line the plugin can print lives in one file: ``` PhoenixLobby/translations/translations.en.yml ``` Messages to players, command replies, the words the [placeholders](../plugin-information/placeholders.md) fall back on and the whole in-game editor are all in there. Edit it, run `/plobby reload`, and the new text is live. To stop a message from appearing at all, set it to `''` (empty quotes). > **Info:** Older versions kept this in **messages.yml**. On the first start after upgrading, the plugin moves your text across on its own and renames the old file to **old_messages.yml**. See [Where did my messages.yml go?](../plugin-information/questions-and-answers/README.md#where-did-my-messages-file-go) ## Prefix Most messages start with the plugin prefix rather than spelling it out, so it can be changed in one place. ```yaml en: plugin-prefix: 'ౌa9&lPhoenixLobby &8»&7' ``` Anywhere `%prefix%` appears in a message it is replaced with that value, which means renaming the plugin across every message is a single edit. ## Language The language the plugin loads is set in **config.yml**, or from **Editor > Settings > Language**. ```yaml language: EN_US ``` <figure><img src="../.gitbook/assets/settings/language.png" alt="" width="563"><figcaption><p>Settings (Language)</p></figcaption></figure> The picker lists every language the plugin knows about: | Code | Language | Code | Language | | ------- | ----------------------- | ------- | ------------------------ | | `EN_US` | English (United States) | `AR_SA` | Arabic | | `PT_BR` | Portuguese (Brazil) | `PT_PT` | Portuguese (Portugal) | | `ES_ES` | Spanish | `FR_FR` | French | | `DE_DE` | German | `IT_IT` | Italian | | `NL_NL` | Dutch | `SV_SE` | Swedish | | `PL_PL` | Polish | `CS_CZ` | Czech | | `RU_RU` | Russian | `TR_TR` | Turkish | | `EL_GR` | Greek | `HI_IN` | Hindi | | `ID_ID` | Indonesian | `VI_VN` | Vietnamese | | `JA_JP` | Japanese | `KO_KR` | Korean | | `ZH_CN` | Chinese (Simplified) | | | > **Warning:** Only the languages included in the build you are running can be picked. The rest are greyed out in the editor. At the moment the plugin ships with English, so the way to run it in another language is to translate the file yourself. ## Translating the plugin The file is one flat list of keys, and the value is either a line or a list of lines. Translate the right-hand side and leave the keys and the placeholders alone. ```yaml en: spawn-not-set: '%prefix% Spawn has not been set.' spawn-teleportation: '%prefix% You have been teleported to spawn.' ``` Everything sits under the language code at the top of the file, and a value can be a single line or a list of them. ```yaml en: error-processing: - '&cAn error occurred while processing this action (Check console):' - '&7%message%' ``` Anything wrapped in `%` is filled in by the plugin, so `%prefix%`, `%player%` and `%identifier%` have to survive the translation to keep working. Colour codes can be moved around freely. > **Info:** English is always loaded first, and the chosen language is laid over the top of it. A key you have not translated yet falls back to its English line rather than printing blank, so a file can be translated a piece at a time. > **Info:** Keep a copy of your translated file before updating the plugin. New keys are added to it automatically, but it is the file your work lives in. > **Info:** The letters and words used for times, such as the maintenance countdown, are in the `time-format` section. See [Changing the time words](../modules/maintenance.md#changing-the-time-words). ## The editor is translated too Everything under the `menus.editor` keys is the text of the in-game editor — the name and description of every option. Translating those is optional, and skipping them leaves the editor in English while your players see your language. ## Rich Text (MiniMessage) Phoenix Lobby understands [MiniMessage](https://docs.advntr.dev/minimessage/format.html) tags, like `<red>`, `<bold>` or `<gradient:#ff5555:#5555ff>`, on top of the classic `&` colour codes. This lets you use gradients, hover text and clickable links, none of which `&` codes can do. ### Format | Example | Result | | -------------------------------------------------------- | -------------------------------------- | | `<red>Hello` | Red text | | `<#ff8800>Hello` | Any hex colour | | `<gradient:#5e4fa2:#f79459>Phoenix Lobby</gradient>` | Text fading from one colour to another | | `<bold><underlined>Warning` | Bold and underlined | | `<rainbow>Welcome back!</rainbow>` | Each letter a different colour | | `<hover:show_text:'Click me'>Hover</hover>` | Text with a tooltip | | `<click:open_url:'https://example.com'>Our site</click>` | Text that opens a link | A closing tag is optional. `<red>Hello` colours the rest of the line, while `<red>Hello</red> there` colours only the first word. ### Where it works | Place | Notes | | ---------------------------------------------------- | -------------------------------------------- | | [Holograms](../featues/holograms/) | Including `<font:...>` from a resource pack | | [Scoreboard](../modules/scoreboard.md) | Title and lines | | [MOTD](../modules/motd.md) | Message, and the player count on Paper | | [Tablist](../modules/tablist.md) | Header and footer | | [Join and quit messages](../modules/join-actions.md#join-and-quit-messages) | And the rest of the plugin's chat messages | | Menu titles, item names and lore | Anywhere the editor lets you write text | ### Where it doesn't work Nametag prefixes and suffixes are the exception. Minecraft draws those through the scoreboard team system, which only understands the old colour codes, so a tag there is reduced to the nearest legacy colour. ### Usage notes * Legacy `&` codes, including `&#RRGGBB` hex, keep working everywhere exactly as before. * In **chat messages**, use one style per line. A chat line is only sent as MiniMessage when it contains no legacy colour codes at all, so mixing `&c` and `<red>` in the same line falls back to legacy and prints the tag. * Everywhere else the two can be mixed freely. A scoreboard line or a hologram is read as MiniMessage as soon as it contains a tag, and any `&` codes in it are converted along with it. * A tag the server does not recognise is left in the text as written rather than being dropped, which is what keeps resource pack glyph tags working. > **Warning:** MiniMessage needs [Paper](https://papermc.io/) or a fork of it. On plain Spigot the tags are printed exactly as you typed them, so stay on `&` codes there. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/configurations/languages --- # 📁 Main Configuration ## Database The plugin also supports databases. The available options are mysql and sqlite. ```yaml database: type: sqlite address: localhost name: phoenixlobby_db port: 3306 username: phoenixuser password: phoenixpassword table-prefix: pl hikari: maximumPoolSize: 20 minimumIdle: 5 idleTimeout: 600000 maxLifetime: 1800000 connectionTimeout: 30000 fetch-timeout: 5000 performance: internal-pool-size: 5 ``` Set a different **table-prefix** on every server that shares the same database, so their tables do not mix. The **hikari** block is the connection pool, and it only matters on MySQL. The defaults suit a normal lobby; raise `maximumPoolSize` only if you are running a very large network off one database. On MySQL and MariaDB the plugin creates its tables in the utf8mb4 character set, so names, lore and messages can hold emoji and any symbol. Tables made in another character set by an older version are converted once at startup, with one console line per table. If a table cannot be converted, a console warning names it. **performance.internal-pool-size** is separate from that — it is the number of threads the plugin uses for its own background work, such as saving player data and looking addresses up. Leave it alone unless support asks you to change it. ## General Options | Option | Description | | ---------------------- | ------------------------------------------------------------------ | | `product-license` | Your license key, written by the plugin, see [Licensing](../plugin-information/licensing.md) | | `notify-if-new-version` | Tells your admins when a new version is out | | `language` | The language the plugin speaks, see [Languages](languages.md) | | `debug` | Prints extra information in the console | | `bypass-required` | Requires `/plobby bypass` before an admin can build in the lobby | | `proxy.register-lobby` | Registers this server as a lobby on the proxy | | `npcs.render-radius` | The distance past which NPCs and their effects stop being drawn | | `holograms.engine` | `BUILT_IN` or `PHOENIX_HOLOGRAMS`, see [Hologram Engine](../featues/holograms/#hologram-engine) | ## Worlds This is the single most important option in the file. It decides which worlds the plugin treats as a lobby, and it covers every module at once — the scoreboard, the tablist, the hotbar items, the world protection and the inventory clearing. ```yaml worlds: should-use: DISABLED_WORLDS enabled: [] disabled: - world_nether ``` With DISABLED_WORLDS, every world is a lobby except the ones you list under `disabled`. With ENABLED_WORLDS, only the worlds under `enabled` are. > **Danger:** Out of the box the plugin treats every world as a lobby. A server that holds more than the lobby world should switch to `ENABLED_WORLDS` and name its lobby, which is [step one of the Multiverse setup](../set-up/setup-with-multiverse.md). > **Info:** The [hotbar items](../featues/hotbar-items.md#items-per-world) have a `worlds` block of their own in **lobby-items.yml**, which only decides where the items are handed out. That one is narrower and separate from this. ## Messages Configuration Every line the plugin can print lives in **translations/translations.en.yml** inside the PhoenixLobby folder — messages to players, command replies and the in-game editor alike. To prevent a message from appearing, set it to '' (empty quotes). > **Info:** Older versions kept this in **messages.yml**. On the first start after upgrading, your text is moved across on its own and the old file is renamed to **old_messages.yml**. See [Where did my messages.yml go?](../plugin-information/questions-and-answers/README.md#where-did-my-messages-file-go) ## MiniMessage On top of the usual & colour codes, text accepts MiniMessage tags for gradients, hover text and clickable links. See [Rich Text (MiniMessage)](languages.md#rich-text-minimessage). ## Translations The plugin can be run in another language, and the file above is the one you translate. How the language is picked, what falls back to English and how the `%prefix%` placeholder works are all on [Languages & Translations](languages.md). Source: https://www.phoenixplugins.com/docs/phoenix-lobby/configurations/main-configuration --- # 🎨 Rich Text (MiniMessage) ## Information Phoenix Lobby understands [MiniMessage](https://docs.advntr.dev/minimessage/format.html) tags, like `<red>`, `<bold>` or `<gradient:#ff5555:#5555ff>`, on top of the classic `&` colour codes. This lets you use gradients, hover text and clickable links, none of which `&` codes can do. ## Format | Example | Result | | -------------------------------------------------------- | -------------------------------------- | | `<red>Hello` | Red text | | `<#ff8800>Hello` | Any hex colour | | `<gradient:#5e4fa2:#f79459>Phoenix Lobby</gradient>` | Text fading from one colour to another | | `<bold><underlined>Warning` | Bold and underlined | | `<rainbow>Welcome back!</rainbow>` | Each letter a different colour | | `<hover:show_text:'Click me'>Hover</hover>` | Text with a tooltip | | `<click:open_url:'https://example.com'>Our site</click>` | Text that opens a link | A closing tag is optional. `<red>Hello` colours the rest of the line, while `<red>Hello</red> there` colours only the first word. ## Where it works | Place | Notes | | ---------------------------------------------------- | -------------------------------------------- | | [Holograms](../featues/holograms/) | Including `<font:...>` from a resource pack | | [Scoreboard](../modules/scoreboard.md) | Title and lines | | [MOTD](../modules/motd.md) | Message, and the player count on Paper | | [Tablist](../modules/tablist.md) | Header and footer | | [Join and quit messages](../modules/join-actions/join-quit-messages.md) | And the rest of the plugin's chat messages | | Menu titles, item names and lore | Anywhere the editor lets you write text | ## Where it doesn't work Nametag prefixes and suffixes are the exception. Minecraft draws those through the scoreboard team system, which only understands the old colour codes, so a tag there is reduced to the nearest legacy colour. ## Usage notes * Legacy `&` codes, including `&#RRGGBB` hex, keep working everywhere exactly as before. * In **chat messages**, use one style per line. A chat line is only sent as MiniMessage when it contains no legacy colour codes at all, so mixing `&c` and `<red>` in the same line falls back to legacy and prints the tag. * Everywhere else the two can be mixed freely. A scoreboard line or a hologram is read as MiniMessage as soon as it contains a tag, and any `&` codes in it are converted along with it. * A tag the server does not recognise is left in the text as written rather than being dropped, which is what keeps resource pack glyph tags working. > **Warning:** MiniMessage needs [Paper](https://papermc.io/) or a fork of it. On plain Spigot the tags are printed exactly as you typed them, so stay on `&` codes there. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/configurations/rich-text --- # 👥 Alt Protection ## Alt Protection Alt Protection counts the accounts connecting from the same address and kicks the ones over `max-accounts-per-address`. Only the accounts online at that moment are counted, unless `count-offline-accounts` is turned on, which counts every account ever seen on that address instead. This feature is part of the proxy plugin, so it needs PhoenixLobby installed on your BungeeCord or Velocity. Players with `phoenixlobby.alts.bypass` are never limited, administrators with `phoenixlobby.alts.notify` are told when a player is kicked or joins next to another account, and `phoenixlobby.alts` is needed to use the command. Addresses in `whitelisted-addresses` are never limited, which is what a shared connection such as a school or an internet cafe needs. Players in `exempt-players` are skipped as well, by name or by uuid. ### Commands | Command | Description | | ------------------------------------- | ------------------------------------------------------------- | | `/alts <player>` | Lists the accounts linked to a player | | `/alts ip <player/address>` | Shows the addresses of a player, or who used an address | | `/alts info <player>` | Shows a summary of a player | | `/alts geo <player/address>` | Shows where an address is located | | `/alts remove <player> <address/all>` | Unlinks an address from a player | | `/alts reload` | Reloads the alt account settings | ### History Every address a player connects from is remembered, so the commands still answer for players that are offline. An address is forgotten once it has not been seen for `retention-days`. Turning the history off leaves only the players who are online right now. ### Geolocation `/alts geo` shows the country, region, city and internet provider of an address. The lookup is done with a free service by default. You can point `api-url` to any service that answers with the same fields, and `%ip%` is replaced with the address. The result is kept for `cache-minutes` so the same address is not looked up again. <details> <summary>Alt Protection config.yml</summary> ```yaml alts: enabled: false max-accounts-per-address: 2 count-offline-accounts: false bypass-permission: phoenixlobby.alts.bypass whitelisted-addresses: [] exempt-players: [] history: enabled: true retention-days: 90 save-interval-seconds: 300 alerts: enabled: true on-blocked: true on-join: true geolocation: enabled: true api-url: 'http://ip-api.com/json/%ip%?fields=status,message,country,regionName,city,isp' cache-minutes: 720 timeout-millis: 3000 ``` </details> > **Info:** The addresses are saved in the **alt-history.json** file of the proxy, so they survive a restart. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/alt-protection --- # 🛡️ Anti Bot > **Info:** This module is configured in **modules/anti-bot.yml** inside the PhoenixLobby folder. ## Anti Bot Anti Bot watches the connections reaching this server and locks the lobby down when they arrive faster than a real player rush would produce. On top of that it can limit how many accounts share an address, how fast an address may reconnect, and which usernames are accepted. Open it from **Editor > Settings > Anti Bot**. Every check runs before the player is fully connected, which is the only point where refusing a bot costs the server nothing. That also means none of these checks can be bypassed with a permission. ## Max Joins With this option, you can change how many connections are allowed inside the interval before the lockdown starts. A lower value reacts sooner, but it is also more likely to trigger on the rush that follows a restart or an announcement. ## Interval With this option, you can change the time window, in seconds, the connections are counted in. The counter restarts as soon as a window passes without the limit being reached, so a slow trickle of players never adds up to a lockdown. ## Lockdown Duration With this option, you can change how many seconds a lockdown lasts. While it is on, only players that have already joined this server before are let in, and every further connection above the rate pushes the end of the lockdown further away, so an attack that keeps going never gets a window. ## Max Accounts Per IP With this option, you can change how many accounts may be online from the same address at the same time. Reconnecting on an account that is already counted does not take a second slot. A value of 0 turns the limit off. ## Rejoin Delay With this option, you can change how many seconds an address has to wait between two connections. An address that stays quiet for 5 minutes is forgotten and starts fresh. A value of 0 turns the delay off. ## Nickname Check With this option, you can turn on the username filter, which denies every name that does not match the pattern below. It is off by default because it also denies Bedrock and cracked usernames, which do not follow the vanilla naming rules. ## Nickname Pattern With this option, you can change the regular expression every username has to match. The editor refuses a pattern it cannot compile. A broken pattern written straight into the file leaves the check off and is reported in the console instead. ## Notify Admins With this option, you can choose whether administrators with phoenixlobby.alert.antibot are told when a lockdown starts and when it ends. The start is written to the console either way. ## Feature State With this option, you can turn Anti Bot off completely without clearing the rest of the settings. <details> <summary>Anti Bot Config</summary> ```yaml enabled: true detection: max-joins: 8 interval-seconds: 3 lockdown-seconds: 30 connection: max-accounts-per-ip: 0 rejoin-delay-seconds: 0 nickname: check-enabled: false pattern: ^[a-zA-Z0-9_]{3,16}$ notify-admins: true ``` </details> > **Warning:** **Max Accounts Per IP** and **Rejoin Delay** work with the address that reaches this server. Behind a proxy every connection carries the proxy address instead, so leave both at 0 until the real one is forwarded with `ip_forward` on BungeeCord, or `player-info-forwarding-mode` on Velocity. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/anti-bot --- # 🌐 Anti VPN > **Info:** This module is configured in **modules/anti-vpn.yml** inside the PhoenixLobby folder. ## Anti VPN Anti VPN looks up the address of every player that connects and denies the ones that come from a vpn, a proxy or a datacenter. The lookup happens before the player is fully connected, so a denied player never reaches the world. Open it from **Editor > Settings > Anti VPN**. Local and private addresses are never looked up, which is what a test server on the same machine needs. ## Api Url With this option, you can change the service the addresses are checked against. It has to contain %ip%, which is replaced with the address that is connecting, and it has to answer with the same `proxy` and `hosting` fields the default service does. The editor refuses a url without the placeholder. ## Block Proxies With this option, you can choose whether addresses the service flags as a vpn or a proxy are denied. ## Block Hosting With this option, you can choose whether addresses owned by a datacenter or a hosting provider are denied. It is off by default, since some mobile carriers and school networks answer from ranges that are flagged this way. ## Kick On Lookup Failure With this option, you can choose what happens when the service cannot be reached, answers with an error, or takes longer than the timeout. Off lets the player in, on denies them. The failure is written to the console either way. ## Cache Minutes With this option, you can change how long a result is kept before the same address is looked up again. A higher value spares the service on a busy lobby, at the cost of reacting later when an address changes owner. ## Timeout Millis With this option, you can change how long to wait for the service before giving up. A player whose address is not cached yet waits for this before being let in, so a high value slows the join down when the service is having a bad day. ## Whitelisted Addresses With this option, you can list the addresses that are never checked. Entries have to be the full address, ranges are not matched. ## Notify Admins With this option, you can choose whether administrators with phoenixlobby.alert.antivpn are told, with the name and the address, when someone is denied. ## Feature State With this option, you can turn Anti VPN off completely without clearing the rest of the settings. <details> <summary>Anti VPN Config</summary> ```yaml enabled: true api-url: http://ip-api.com/json/%ip%?fields=status,message,proxy,hosting block-proxies: true block-hosting: false kick-on-lookup-failure: false cache-minutes: 60 timeout-millis: 3000 notify-admins: true whitelisted-addresses: [] ``` </details> > **Warning:** phoenixlobby.bypass.antivpn has to be read before the player is connected, which only [LuckPerms](https://luckperms.net/) can answer. Without it installed the permission is ignored and a warning is printed on startup, so use **Whitelisted Addresses** instead. > **Info:** Behind a proxy this only works when the real player address is forwarded, so make sure `ip_forward` is on with BungeeCord, or `player-info-forwarding-mode` with Velocity. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/anti-vpn --- # 🗺️ Anti WDL > **Info:** This module is configured in **modules/anti-wdl.yml** inside the PhoenixLobby folder. ## Anti WDL A world downloader mod announces itself to the server as soon as the player joins, and asks whether it is allowed to save the world. Anti WDL answers that it is not, which turns the mod off for that player. Open it from **Editor > Settings > Anti WDL**. Players with phoenixlobby.bypass.antiwdl are left alone, which is what a builder taking a copy of the lobby needs. Nothing is kicked or cancelled, so a player that ignores the answer with a patched mod is still caught and reported, but not stopped. ## Notify Admins With this option, you can choose whether administrators with phoenixlobby.alert.antiwdl are told which player joined with the mod. The attempt is also sent to the [logger](logger.md) either way. ## Feature State With this option, you can turn Anti WDL off completely. <details> <summary>Anti WDL Config</summary> ```yaml enabled: true notify-admins: true ``` </details> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/anti-wdl --- # 🚫 Command Blocker > **Info:** This module is configured in **modules/command-blocker.yml** inside the PhoenixLobby folder. ## Command Blocker The command blocker stops players from running the commands you list. It also hides them from the tab completion, so a blocked command is never suggested while typing and never completes its arguments either. Open it from **Editor > Settings > Command Blocker**. Players with phoenixlobby.bypass.commandblocker keep using every command. The blocker only applies inside the [lobby worlds](../modules/world-protection.md), so a player that walks into a world the plugin is not active in gets the commands back. ## Blocked Commands With this option, you can edit the list of blocked commands. Entries are matched against the command name only, so the arguments do not matter, and the case does not either. A `*` stands for anything, so `bukkit:*` blocks every command of that namespace and `world*` blocks `worldedit` along with `worldguard`. An entry without a namespace also catches the namespaced form of the same command, so `plugins` blocks `bukkit:plugins` too. The opposite is not true: `bukkit:plugins` leaves the plain `plugins` alone. ## Feature State With this option, you can turn the command blocker off completely without clearing the list. <details> <summary>Command Blocker Config</summary> ```yaml enabled: true blocked-commands: - about - ver - version - icanhasbukkit - plugins - pl - help - '?' - bukkit:* - spigot:* - paper:* ``` </details> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/command-blocker --- # 🧍‍♀️ Create an NPC ## NPC Creation Creating an NPC only takes a few clicks, and you’ll be able to spawn one in no time. <figure><img src="../.gitbook/assets/editor_npc-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>In-Game Editor - Create an NPC</p></figcaption></figure> ## Identifier With this option, you can set an identifier for the NPC. Note that the NPC identifier is unique and used internally by the plugin, and its different from the display name. > **Danger:** If the identifier is changed, your NPC might no longer work. <figure><img src="../.gitbook/assets/Screenshot 2024-10-11 163027 (1).png" alt=""><figcaption><p>Editor > NPC > Identifier</p></figcaption></figure> ## Display Name With this option, you can adjust the display name of the NPC. The display name is typically shown in the hologram above the NPC. For the display name, you can use the default Minecraft color codes. For hex colors, use the \&#D6D045 format. <figure><img src="../.gitbook/assets/Screenshot 2025-09-07 214234.png" alt="" width="563"><figcaption><p>Editor > NPC > Display Name</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/create-an-npc --- # 💄 Edit an NPC ## Animations: With idle animations, you can create fancy particle effects around your NPCs. Choose from over 10 pre-made effect types and 100 different particles. <figure><img src="../.gitbook/assets/animations (1).png" alt=""><figcaption><p>Editor > NPC > Idle Animations</p></figcaption></figure> ## NPC Actions When you interact with NPCs, you can make them execute specific actions. To teleport users to a different server or world, use the actions below: * **For Proxy servers:** `[PROXY] server_name` * **For Worlds:** `[COMMAND] /console; mvtp %player% your_world_name` <figure><img src="../.gitbook/assets/Screenshot 2025-05-10 110039.png" alt="" width="563"><figcaption><p>Editor > NPC > Actions</p></figcaption></figure> ## Hologram With this feature, you can create a hologram displayed above your NPC. Phoenix Lobby has its own built-in hologram system, so it doesn't depend on any external plugins. If you have trouble using the in-game editor to modify the hologram, you can also edit it manually per npc file in the npcs folder. <figure><img src="../.gitbook/assets/Screenshot 2025-09-07 214244.png" alt="" width="563"><figcaption><p>Editor > NPC > Hologram</p></figcaption></figure> The look of the hologram is set per npc, so every npc can have its own style. | Option | Description | | ---------------- | -------------------------------------------------- | | Height Offset | Raises or lowers the hologram above the npc | | Line Gap | The space between two lines | | Billboard | How the hologram faces the player | | Text Opacity | How solid the text is | | See Through | Shows the text through blocks | | Shadow | Adds a shadow behind the text | | Background Color | The color behind the text | | Hologram Scale | How big the text is | ### Player Counts Use **%proxy\_online%** in a hologram line to show how many players are on a server. The **Proxy Server** option of the npc decides which server is counted. ## Scale The **Scale** option makes the npc bigger or smaller. ## Glow The **Glow** option gives the npc a glowing outline, and lets you pick its color. ## Model Offset The **Model Offset** option raises or lowers the npc itself, which helps when a flying head or a huge item does not sit where you want it. ## NPC Render Radius In the **config.yml** file of the plugin, you can adjust the render radius from which players will be able to view the NPCs. Alternatively, this option is also available via the settings menu <figure><img src="../.gitbook/assets/Screenshot 2025-09-07 214259.png" alt="" width="563"><figcaption><p>Editor > Settings</p></figcaption></figure> ```yaml npcs: render-radius: 15 ``` Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/edit-an-npc --- # 💭 Holograms Besides the hologram that sits above an npc, you can also create holograms on their own. They are drawn by the same [hologram engine](#hologram-engine) as the npc holograms, so no external hologram plugin is needed. Stand where you want it and click **Add Hologram** in **Editor > Holograms**. The hologram is created at your current location and is added to the list right away. <figure><img src="../../.gitbook/assets/holograms/add-hologram.png" alt="" width="563"><figcaption><p>Holograms (Add Hologram)</p></figcaption></figure> Once it exists, left-click it in the list to open its editor. The options are split into [Edit Hologram](#edit-hologram) and [Customize Hologram](#customize-hologram). ## Hologram Engine Shared by every hologram, npc holograms included, and set in **Editor > Settings**. Switching it redraws every hologram and npc right away. | Engine | Description | | --- | --- | | Built-in | The default, needs no other plugin | | PhoenixHolograms | Hands the drawing to PhoenixHolograms, selectable only while it is installed | With PhoenixHolograms, the lines, scale, background color and actions carry over; line gap, billboard, text opacity, see through and shadow use the PhoenixHolograms defaults. If PhoenixHolograms is removed, the plugin falls back to Built-in and logs a warning. > **Info:** Each hologram is saved in its own file inside the **holograms** folder of the PhoenixLobby folder. ## Edit Hologram ### Change Identifier With this option, you can rename the identifier of the hologram. The identifier is used internally by the plugin and has to be unique, so no two holograms can share the same one. It is not shown to players. <figure><img src="../../.gitbook/assets/holograms/change-identifier.png" alt="" width="563"><figcaption><p>Edit Hologram (Change Identifier)</p></figcaption></figure> ### Display With this option, you can change the item and the name used for the hologram inside the editor. This only affects how the hologram is listed in the menu, it does not change anything players see in the world. <figure><img src="../../.gitbook/assets/holograms/display.png" alt="" width="563"><figcaption><p>Edit Hologram (Display)</p></figcaption></figure> ### Hologram Lines With this option, you can configure the text of the hologram. Every entry is its own line, and empty entries can be used to leave a gap between two lines. <figure><img src="../../.gitbook/assets/holograms/hologram-lines.png" alt="" width="563"><figcaption><p>Edit Hologram (Hologram Lines)</p></figcaption></figure> ### Hologram Location With this option, you can move the hologram to the position you are standing at. The tooltip shows the world, the coordinates, and the yaw and pitch it is currently using. <figure><img src="../../.gitbook/assets/holograms/hologram-location.png" alt="" width="563"><figcaption><p>Edit Hologram (Hologram Location)</p></figcaption></figure> ### Actions With this option, you can set the actions that are executed when a player clicks the hologram. The same action types used by npcs and hotbar items are available here. <figure><img src="../../.gitbook/assets/holograms/actions.png" alt="" width="563"><figcaption><p>Edit Hologram (Actions)</p></figcaption></figure> ### Toggle State With this option, you can disable a hologram without removing it. A disabled hologram stays saved with all of its options but does not appear in the world. <figure><img src="../../.gitbook/assets/holograms/toggle-state.png" alt="" width="563"><figcaption><p>Edit Hologram (Toggle State)</p></figcaption></figure> ### Clone Hologram With this option, you can duplicate the hologram under a new identifier. The copy keeps every option of the original, which is useful when you want several holograms sharing the same style. <figure><img src="../../.gitbook/assets/holograms/clone-hologram.png" alt="" width="563"><figcaption><p>Edit Hologram (Clone Hologram)</p></figcaption></figure> ### Delete Hologram With this option, you can remove the hologram from the server. > **Danger:** Deleting a hologram cannot be undone. Use **Toggle State** instead if you only want to hide it for a while. <figure><img src="../../.gitbook/assets/holograms/delete-hologram.png" alt="" width="563"><figcaption><p>Edit Hologram (Delete Hologram)</p></figcaption></figure> ## Customize Hologram ### Height Offset With this option, you can raise or lower the hologram from its base position, which is useful for lining it up with a block or a decoration. <figure><img src="../../.gitbook/assets/holograms/height-offset.png" alt="" width="563"><figcaption><p>Customize Hologram (Height Offset)</p></figcaption></figure> ### Line Gap With this option, you can change the spacing between each hologram line. The default is 0.3, a lower value pulls the lines closer together and a higher value spreads them apart. <figure><img src="../../.gitbook/assets/holograms/line-gap.png" alt="" width="563"><figcaption><p>Customize Hologram (Line Gap)</p></figcaption></figure> ### Billboard With this option, you can change how the hologram faces players. Four modes are available: * **Fixed:** The hologram does not rotate at all * **Vertical:** The hologram rotates around the vertical axis only * **Horizontal:** The hologram rotates around the horizontal axis only * **Center:** The hologram always faces the player <figure><img src="../../.gitbook/assets/holograms/billboard.png" alt="" width="563"><figcaption><p>Customize Hologram (Billboard)</p></figcaption></figure> ### Hologram Scale With this option, you can change the size of the hologram. The default is 1. <figure><img src="../../.gitbook/assets/holograms/hologram-scale.png" alt="" width="563"><figcaption><p>Customize Hologram (Hologram Scale)</p></figcaption></figure> ### Text Opacity With this option, you can change how solid the hologram text is. The value goes up to 255, which is fully solid, and lower values make the text more transparent. <figure><img src="../../.gitbook/assets/holograms/text-opacity.png" alt="" width="563"><figcaption><p>Customize Hologram (Text Opacity)</p></figcaption></figure> ### See Through With this option, you can define whether the hologram is visible through blocks. When it is disabled, the hologram is hidden as soon as a block is between it and the player. <figure><img src="../../.gitbook/assets/holograms/see-through.png" alt="" width="563"><figcaption><p>Customize Hologram (See Through)</p></figcaption></figure> ### Shadow With this option, you can define whether the hologram casts a text shadow, which helps the text stay readable against a bright background. <figure><img src="../../.gitbook/assets/holograms/shadow.png" alt="" width="563"><figcaption><p>Customize Hologram (Shadow)</p></figcaption></figure> ### Background Color With this option, you can change the color of the panel behind the text. It accepts either an a,r,g,b value or a #AARRGGBB hex code, where the first part is the transparency. The default is 0,0,0,0, which leaves the background fully transparent. <figure><img src="../../.gitbook/assets/holograms/background-color.png" alt="" width="563"><figcaption><p>Customize Hologram (Background Color)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/holograms --- # 🎨 Customize Hologram ## Height Offset With this option, you can raise or lower the hologram from its base position, which is useful for lining it up with a block or a decoration. <figure><img src="../../.gitbook/assets/holograms/height-offset.png" alt="" width="563"><figcaption><p>Customize Hologram (Height Offset)</p></figcaption></figure> ## Line Gap With this option, you can change the spacing between each hologram line. The default is 0.3, a lower value pulls the lines closer together and a higher value spreads them apart. <figure><img src="../../.gitbook/assets/holograms/line-gap.png" alt="" width="563"><figcaption><p>Customize Hologram (Line Gap)</p></figcaption></figure> ## Billboard With this option, you can change how the hologram faces players. Four modes are available: * **Fixed:** The hologram does not rotate at all * **Vertical:** The hologram rotates around the vertical axis only * **Horizontal:** The hologram rotates around the horizontal axis only * **Center:** The hologram always faces the player <figure><img src="../../.gitbook/assets/holograms/billboard.png" alt="" width="563"><figcaption><p>Customize Hologram (Billboard)</p></figcaption></figure> ## Hologram Scale With this option, you can change the size of the hologram. The default is 1. <figure><img src="../../.gitbook/assets/holograms/hologram-scale.png" alt="" width="563"><figcaption><p>Customize Hologram (Hologram Scale)</p></figcaption></figure> ## Text Opacity With this option, you can change how solid the hologram text is. The value goes up to 255, which is fully solid, and lower values make the text more transparent. <figure><img src="../../.gitbook/assets/holograms/text-opacity.png" alt="" width="563"><figcaption><p>Customize Hologram (Text Opacity)</p></figcaption></figure> ## See Through With this option, you can define whether the hologram is visible through blocks. When it is disabled, the hologram is hidden as soon as a block is between it and the player. <figure><img src="../../.gitbook/assets/holograms/see-through.png" alt="" width="563"><figcaption><p>Customize Hologram (See Through)</p></figcaption></figure> ## Shadow With this option, you can define whether the hologram casts a text shadow, which helps the text stay readable against a bright background. <figure><img src="../../.gitbook/assets/holograms/shadow.png" alt="" width="563"><figcaption><p>Customize Hologram (Shadow)</p></figcaption></figure> ## Background Color With this option, you can change the color of the panel behind the text. It accepts either an a,r,g,b value or a #AARRGGBB hex code, where the first part is the transparency. The default is 0,0,0,0, which leaves the background fully transparent. <figure><img src="../../.gitbook/assets/holograms/background-color.png" alt="" width="563"><figcaption><p>Customize Hologram (Background Color)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/holograms/customize-hologram --- # 🖌️ Edit Hologram ## Change Identifier With this option, you can rename the identifier of the hologram. The identifier is used internally by the plugin and has to be unique, so no two holograms can share the same one. It is not shown to players. <figure><img src="../../.gitbook/assets/holograms/change-identifier.png" alt="" width="563"><figcaption><p>Edit Hologram (Change Identifier)</p></figcaption></figure> ## Display With this option, you can change the item and the name used for the hologram inside the editor. This only affects how the hologram is listed in the menu, it does not change anything players see in the world. <figure><img src="../../.gitbook/assets/holograms/display.png" alt="" width="563"><figcaption><p>Edit Hologram (Display)</p></figcaption></figure> ## Hologram Lines With this option, you can configure the text of the hologram. Every entry is its own line, and empty entries can be used to leave a gap between two lines. <figure><img src="../../.gitbook/assets/holograms/hologram-lines.png" alt="" width="563"><figcaption><p>Edit Hologram (Hologram Lines)</p></figcaption></figure> ## Hologram Location With this option, you can move the hologram to the position you are standing at. The tooltip shows the world, the coordinates, and the yaw and pitch it is currently using. <figure><img src="../../.gitbook/assets/holograms/hologram-location.png" alt="" width="563"><figcaption><p>Edit Hologram (Hologram Location)</p></figcaption></figure> ## Actions With this option, you can set the actions that are executed when a player clicks the hologram. The same action types used by npcs and hotbar items are available here. <figure><img src="../../.gitbook/assets/holograms/actions.png" alt="" width="563"><figcaption><p>Edit Hologram (Actions)</p></figcaption></figure> ## Toggle State With this option, you can disable a hologram without removing it. A disabled hologram stays saved with all of its options but does not appear in the world. <figure><img src="../../.gitbook/assets/holograms/toggle-state.png" alt="" width="563"><figcaption><p>Edit Hologram (Toggle State)</p></figcaption></figure> ## Clone Hologram With this option, you can duplicate the hologram under a new identifier. The copy keeps every option of the original, which is useful when you want several holograms sharing the same style. <figure><img src="../../.gitbook/assets/holograms/clone-hologram.png" alt="" width="563"><figcaption><p>Edit Hologram (Clone Hologram)</p></figcaption></figure> ## Delete Hologram With this option, you can remove the hologram from the server. > **Danger:** Deleting a hologram cannot be undone. Use **Toggle State** instead if you only want to hide it for a while. <figure><img src="../../.gitbook/assets/holograms/delete-hologram.png" alt="" width="563"><figcaption><p>Edit Hologram (Delete Hologram)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/holograms/edit-hologram --- # 🪄 Hotbar Items ## Lobby Items The lobby hands every player a set of items to reach its features without typing a command. By default those are: * **Compass** – Game Menu, opens the server selector * **Book** – Lobby Selector, opens the lobby selector * **Jukebox** – Music, opens the disc menu * **Dye** – Toggles the other players on and off * **Netherite Sword** – Enters PvP mode * **Bow** – Teleport Bow, shoots you to where the arrow lands Open them from **Editor > Edit Lobby Items**, or edit the **lobby-items** file in the **PhoenixLobby** folder. Both write to the same place. <figure><img src="../.gitbook/assets/editor/edit-lobby-items.png" alt="" width="563"><figcaption><p>Editor (Edit Lobby Items)</p></figcaption></figure> Each item is one entry with its own slot, name, lore and [actions](../plugin-information/action-types.md), so a plain item can be made to do anything the plugin can do. The three at the top of the menu are ordinary items, the rest carry behaviour the plugin provides. Every item here also takes the appearance options shared across the plugin — `custom-model-data`, `item-model`, `enchantments`, `glow` and the rest — which are listed on [Item Options](../configurations/item-options.md). <figure><img src="../.gitbook/assets/lobby-items/lobby-items.png" alt="" width="563"><figcaption><p>Editor (Lobby Items)</p></figcaption></figure> ### Music Runs the `/music` command, which opens the [music](music.md) menu of discs. Turning the command off leaves the item running it into nothing, so switch off both or neither. ### Player Visibility Swaps between two states rather than running an action, so the item itself shows whether the other players are visible. Its cooldown is what stops a player from hiding and showing everyone repeatedly. ### PvP Mode Puts the player into [PvP](../modules/lobby-pvp.md) mode and hands them the kit set up there, then gives their own items back when they leave. Like the visibility item it has two states, so the sword becomes a red dye while the mode is on. The two states also sit in different slots. `slot` is where the sword waits while PvP is off, and `states.on-slot` is where the red dye goes once a fight starts — kept apart so the leave item does not land in the middle of the kit. ```yaml pvp-mode: slot: '2' states: on-slot: '9' ``` **join-actions** and **leave-actions** run as a player enters and leaves the mode, and take every [action type](../plugin-information/action-types.md). ### Teleport Bow Shoots an arrow and teleports the player to wherever it lands, with a sound and a particle effect on arrival. Its cooldown is in seconds, and the ammo slot holds the arrows it fires, so leaving that slot empty is what stops it being used at all. To modify the lobby items, add new ones or remove existing ones, you can edit the **lobby-items** file located in the **PhoenixLobby** folder. <details> <summary>Default Lobby Items file</summary> ```yaml items: game-menu: slot: '5' material: COMPASS amount: 1 display-name: '&aGame Menu &7(Right Click)' lore: - '&7Click here to open the quick compass.' actions: - '[MENU] servers' required-permission: '' lobby-selector: slot: '8' material: BOOK amount: 1 display-name: '&aLobby Selector &7(Right Click)' lore: - '&7Click here to open the lobby selector.' actions: - '[MENU] lobbies' required-permission: '' music: slot: '7' material: JUKEBOX amount: 1 display-name: '&aMusic &7(Right Click)' lore: - '&7Click here to open the music menu.' actions: - '[COMMAND] player;music' required-permission: '' custom-items: player-visibility: enabled: true slot: '9' cooldown: 3 states: 'on': material: LIME_DYE display-name: '&fPlayers: &aVisible &7(Right Click)' lore: - '&7Right click to toggle player visibility.' 'off': material: GRAY_DYE display-name: '&fPlayers: &cHidden &7(Right Click)' lore: - '&7Right click to toggle player visibility.' pvp-mode: enabled: true slot: '2' states: on-slot: '9' 'off': material: NETHERITE_SWORD display-name: '&cPvP Mode: &cDisabled &7(Right Click)' lore: - '&7Right click to enter PvP mode.' - '&7Your items will be given back when you leave.' 'on': material: RED_DYE display-name: '&cPvP Mode: &aEnabled &7(Right Click)' lore: - '&7Right click to leave PvP mode.' kit: items: {} join-actions: [] leave-actions: [] teleport-bow: enabled: true slot: '1' material: BOW glow: true display-name: '&bTeleport Bow &7(Shoot to teleport)' lore: - '&7Shoot an arrow, teleport to where it lands.' cooldown-seconds: 3 sound: name: entity.enderman.teleport volume: 1.0 pitch: 1.0 land-effect: particle: PORTAL color: '#ffffff' offset-x: 0.5 offset-y: 0.5 offset-z: 0.5 spread: 0.0 velocity: 1.0 amount: 30 ammo-slot: '17' worlds: should-use: DISABLED_WORLDS enabled: [] disabled: [] ``` The kit of the PvP item is written by the editor rather than by hand, see [PvP Kit](../modules/lobby-pvp.md#pvp-kit). </details> ### Player Heads To display the player's head in the hotbar, use the following method. ```yaml material: PLAYER_HEAD ``` To display a custom head as an item, use the **basehead** option. ```yaml material: PLAYER_HEAD:BASEHEAD_VALUE ``` ### Reserved Slots To keep a slot free for another plugin (friends, hide players, cosmetics), add an item with **placeholder** set to **true**. The lobby never places its own item in that slot and never clears it, even when **Clear Inventory** is enabled. ```yaml items: friends-slot: slot: '4' placeholder: true ``` Use a list or a range to reserve more than one slot at once. ```yaml slot: '4, 6' slot: '4-6' ``` ### Disable Items If you don't want your users to get the lobby items when they join the server, make sure to set the following option in the plugin's configuration to **false**. ```yaml items: enabled: true ``` ### Items per World The items are given in every world except the ones listed under **disabled**. Switch to **ENABLED\_WORLDS** if you would rather list the only worlds that should get them. This is separate from the option above, which turns the items off everywhere. Worlds where the PhoenixDuels Lobby Items add-on gives out its own hotbar are skipped as well, see [Stand Down In Duels Worlds](../modules/join-actions.md#stand-down-in-duels-worlds). ```yaml worlds: should-use: DISABLED_WORLDS enabled: [] disabled: [] ``` Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/hotbar-items --- # 📝 Logger ## Logger The logger writes down what happens on your lobby. Every event is written to `logs/latest.log` and can be sent to Discord at the same time. Each event is turned on or off on its own and has its own message, webhook and embed, so joins can go to one channel and chat to another. Everything is set up in `logger.yml`. ### Events | Event | Logged when | | ------------------------ | ------------------------------------------------------ | | player-join | A player joins the lobby | | player-leave | A player disconnects, not when they change server | | player-switch-server | A player is sent to another server of the proxy | | player-anti-vpn | A player is denied by the anti vpn | | player-anti-wdl | A player tries to use a world downloader | | player-pvp-join | A player enters pvp mode | | player-pvp-leave | A player leaves pvp mode | | server-anti-botting | The anti bot starts a lockdown | | player-anti-swear | A message is blocked or censored by the chat filter | | player-command-execution | A player runs a command | | player-chat-message | A player sends a message | ### Message The message of an event is written in **log-format**. It is the line that goes to the log file, and it is also what `%message%` gives you inside the webhook. Every event has its own placeholders. | Event | Placeholders | | ------------------------ | ------------------------------------------------------------------------- | | player-join | %player%, %uuid%, %address%, %world%, %online% | | player-leave | %player%, %uuid%, %address%, %world%, %online% | | player-switch-server | %player%, %uuid%, %server%, %world% | | player-anti-vpn | %player%, %uuid%, %address% | | player-anti-wdl | %player%, %uuid%, %world% | | player-pvp-join | %player%, %uuid%, %world% | | player-pvp-leave | %player%, %uuid%, %world% | | server-anti-botting | %attempts%, %seconds%, %lockdown\_seconds% | | player-anti-swear | %player%, %uuid%, %world%, %message\_content%, %action% | | player-command-execution | %player%, %uuid%, %world%, %command% | | player-chat-message | %player%, %uuid%, %world%, %message\_content% | %action% returns blocked or censored. On the chat filter event %message\_content% is what the player typed, before it was censored. ### Webhook Paste the address of your Discord webhook in **url** and that event starts posting. An empty url means nothing is sent, so you only fill in the events you care about. **username** and **avatar-url** change how the bot shows up, and **content** is a plain message sent above the embed. The embed is yours to shape with a title, a description, a colour, a footer, a thumbnail, an image and as many fields as you want. The placeholders of the event work in all of them. <details> <summary>Logger logger.yml</summary> ```yaml enabled: true file-logging: enabled: true events: player-join: enabled: true log-format: '%player% joined the lobby from %address%. (%online% online)' webhook: enabled: true url: '' username: Phoenix Lobby - Logger avatar-url: '' content: '' embed: enabled: true title: Player Join description: '%message%' color: '#43b581' url: '' thumbnail-url: '' image-url: '' footer: text: '' icon-url: '' fields: - name: Player value: '%player%' inline: true - name: Address value: '%address%' inline: true - name: Online value: '%online%' inline: true ``` </details> > **Info:** The other events follow the same shape, each one with its own message, colour and fields. > **Info:** Telling a disconnect apart from a server change is done by the proxy, so `player-switch-server` needs PhoenixLobby installed on the proxy as well. Without it, a player changing server is logged as a leave. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/logger --- # 🚧 Maintenance ## Maintenance Maintenance closes a server, or the whole network, for everyone except the people you allow. Players already on a server that goes under maintenance are kicked, and new connections are denied until it ends. This feature is part of the proxy plugin, so it needs PhoenixLobby installed on your BungeeCord or Velocity. Everyone with `phoenixlobby.maintenance.bypass` can always join, and `phoenixlobby.maintenance` is needed to use the command. ### Commands | Command | Description | | ------------------------------------------------ | ------------------------------------------ | | `/maintenance start <server> [time]` | Starts a maintenance | | `/maintenance end <server>` | Ends a maintenance | | `/maintenance add <user/uuid> <server>` | Allows someone to join | | `/maintenance remove <user/uuid> <server>` | Revokes someone's access | | `/maintenance list <server>` | Lists who is allowed to join | | `/maintenance schedule <start-in> <duration> <server>` | Schedules a maintenance for later | | `/maintenance schedules` | Lists every scheduled maintenance | Leave the server empty or use **global** to affect every server at once. Leaving the time empty makes the maintenance last until you end it yourself. ### Time Format Times are written as `1Y 1M 1W 1D 1H 1m 1S`, and can be combined, for example `1D12H`. > **Warning:** An uppercase **M** means months and a lowercase **m** means minutes. ### MOTD The proxy shows a different motd while a maintenance is running through the `motds.maintenance` option. The regular motd is covered on the [MOTD](../modules/motd.md) page. <details> <summary>Maintenance MOTD config.yml</summary> ```yaml motds: maintenance: enabled: true motd: - ' &c&lUNDER MAINTENANCE' - ' &8We will be back in &7{timer}' ``` </details> > **Info:** The running and scheduled maintenances are saved in the **maintenance.yml** file of the proxy, so they survive a restart. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/maintenance --- # 🗂️ Menus > **Info:** Every menu is a file in the **menus** folder inside the PhoenixLobby folder. ## Menus The plugin ships with four menus, each one its own file: | File | Menu | | ---------------------- | ---------------------------------------------------- | | `servers.yml` | The [server selector](hotbar-items.md), the compass | | `lobbies.yml` | The [lobby selector](../set-up/setup-with-proxy.md#multiple-lobbies), the book | | `music.yml` | The [music](music.md) menu of discs | | `player-settings.yml` | The [player settings](player-settings.md) toggles | Everything in these files is yours to change, and none of them has to stay as a menu of servers or of discs. Buttons, rows, titles and looks can also be changed in-game with the [Menu Layout Editor](menus/menu-layout-editor.md), without touching the files. ## Custom Menus Any other `.yml` file you drop into the **menus** folder becomes a menu of its own. The file name is the name of the menu, so `menus/events.yml` is opened with: ```yaml '[MENU] events' ``` That action works anywhere actions do — a [hotbar item](hotbar-items.md), an [NPC](npcs/), a [hologram](holograms/), a [join action](../modules/join-actions.md) or another menu — so one menu can open the next. > **Info:** The plugin reads the folder when it starts, so a new file needs a `/plobby reload` before it can be opened. > **Warning:** A file named after a menu that already exists is skipped, so naming your own file `servers.yml` or `music.yml` will not replace the built-in one. Pick a different name. ## Settings Every menu starts with a `settings` block that decides the frame it is drawn in. ```yaml settings: title: 'Custom Menu' rows: 3 refresh: enabled: false rate: 40 on-open-actions: [] ``` | Option | Description | | ----------------- | -------------------------------------------------------------- | | `title` | The name shown at the top, colour codes and placeholders included | | `rows` | How tall the menu is, from 1 to 6 | | `refresh.enabled` | Redraws the menu while it is open, for lore that changes | | `refresh.rate` | How often it redraws, in ticks | | `on-open-actions` | [Actions](../plugin-information/action-types.md) that run when a player opens the menu | Leave `refresh.enabled` off unless the menu shows something live, such as a player count. A menu that redraws is rebuilt for every player watching it. > **Info:** Bedrock players get these menus as forms, or as chest menus resized to 3 or 6 rows. See [GeyserMC (Bedrock)](../configurations/geysermc-bedrock.md). ## Items Under `items`, every entry is one item. The name on the left is only an identifier for you. ```yaml items: close-menu: slot: 31 material: BARRIER amount: 1 display-name: '&aClose Menu' lore: - '&7Click here to close this menu.' - '' - '&6Left-Click: &eClose menu.' actions: - '[CLOSE_INVENTORY]' ``` Items accept the full set of appearance options — `custom-model-data`, `item-model`, `glow`, `hide-attributes` and the rest — which are listed on [Item Options](../configurations/item-options.md). Clicking an item runs its `actions`, so an item can send the player to a server, run a command, play a sound or open another menu. Every action is on the [Action Types](../plugin-information/action-types.md) page. ### Slots Menu slots start at 0 in the top-left corner and count across each row, so a 3-row menu runs from 0 to 26 and the middle of its bottom row is 22. ```yaml slot: 22 slot: '18-26' slot: '18, 22, 26' ``` A range fills every slot between the two numbers, which is how the grey background rows in the default menus are made. A negative slot hides the item without deleting it. > **Warning:** Hotbar items are numbered differently: those start at 1, because they use the slot numbers a player sees on their hotbar. Menus start at 0. ## Pagination The lobby selector and the music menu hold more entries than fit on one screen, so they carry a `pagination` block on top of their items. ```yaml pagination: align-items: LEFT slots: '10-16' fill-item: material: AIR previous-item: slot: 9 material: ARROW display-name: '&6Previous page - Page %page%' next-item: slot: 17 material: ARROW display-name: '&6Next page - Page %page%' ``` `slots` is the area the entries are drawn into, and `fill-item` is what fills the leftover slots on the last page. `%page%` on the arrows prints the page they lead to. ## Lobby Selector Entries `lobbies.yml` has one more section, because its entries are the lobbies themselves rather than items you wrote. `lobby.not-connected` is the entry for a lobby the player can join, and `lobby.connected` is the one they are already on. ```yaml lobby: not-connected: material: PLAYER_HEAD display-name: '&aLobby #%number%' lore: - '&7Players: %current_players%/%max_players%' - '&7Is Online: &f%is_online%' - '' - '&6Left-click: &eClick to connect.' connected: material: PLAYER_HEAD display-name: '&cLobby #%number%' lore: - '&7Players: %current_players%/%max_players%' - '' - '&cAlready connected!' ``` | Placeholder | Returns | | ------------------- | --------------------------------------------- | | `%number%` | The position of the lobby in the list | | `%current_players%` | Players on that lobby | | `%max_players%` | Slot count of that lobby | | `%is_online%` | Yes or No, taken from your translations file | ## Music Menu Entries `music.yml` works the same way with a single `disc` section, repeated for every disc of your server version. `%disc%` is the readable name and `%disc_id%` is the id `[PLAY_DISC]` takes. ```yaml disc: display-name: '&a%disc%' lore: - '&7Click to play this music disc.' actions: - '[PLAY_DISC] %disc_id%' - '[MESSAGE] &6Now playing &e%disc%&6.' ``` Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/menus --- # 🧩 Menu Layout Editor > **Info:** The editor changes the same files described in [Menus](../menus.md). A menu saved in-game is live straight away, with no reload. ## Opening the Editor There are two ways in, both needing phoenixlobby.admin: <figure><img src="../../.gitbook/assets/menu-layout-editor/menu-layout-editor.png" alt="" width="563"><figcaption><p>Editor (Edit Menu Layouts)</p></figcaption></figure> * **Editor > Edit Menu Layouts** lists every menu. Left-click one to edit it. * `/plobby editlayout <menu>` opens one menu directly. The menu opens as it looks to players, with every button in place. > **Warning:** While you edit, your hotbar holds the editor tools. Your own hotbar items are saved to a backup file first, and the editor does not open if that backup fails. They come back when you close the menu. ## Menus The list holds the server selector (`servers`), the lobby selector (`lobbies`), every [custom menu](../menus.md#custom-menus) in the **menus** folder, the music menu (`music`) and the player settings menu (`player-settings`). The identifier in brackets is what `/plobby editlayout` takes. <figure><img src="../../.gitbook/assets/menu-layout-editor/menus.png" alt="" width="563"><figcaption><p>Menu Layouts (Lobbies)</p></figcaption></figure> A custom menu only shows up once the plugin has loaded it, so a new file needs a `/plobby reload` first. ## Editing a Button With no tool turned on, click any button to open its editor. Every field there changes that one button: | Field | Description | | --- | --- | | Look | Drop an item here to copy its material, custom model data, item model and head texture. | | Display Name | The name of the button. | | Lore | The lore of the button. | | Amount | How many are shown, 1 to 64. | | Glow | Makes the button glow. | | Hide Attributes | Hides attack damage and similar lines. | | Custom Model Data | The custom model data of the button. | | Click Actions | The [actions](../../plugin-information/action-types.md) run when the button is clicked. | | Hide Tooltip | Hides the tooltip entirely. | | Tooltip Style | The tooltip style, such as `minecraft:blue`. | | Delete | Removes the button. | A field only appears when the button has that option. Ordinary buttons can be deleted. The parts the plugin draws itself, such as the page arrows or the player settings toggles, can be moved and restyled but not deleted. ## Drag and Drop Pick up any item from your inventory and drop it: * **On a button** to give the button that item's look: its material, custom model data, item model and head texture. The name, lore and actions stay. * **On an empty slot** to add the item as a new button, with its look, name and lore. This is the quickest way to put a custom item from a resource pack or a textured head into a menu. ## Hotbar Tools Right-click a tool while holding it, or click it in your inventory. The first three are modes: one is on at a time, it glows while on, and using it again turns it off. | Slot | Tool | Description | | --- | --- | --- | | 1 | Reordering | Click a button, then click where it should go. If that slot is taken, the two buttons swap places. | | 2 | Item Slots | Click an empty slot to add it to the menu's item slots, or click a lime slot to remove it. Also repeats a button: click it to select it, then click empty slots to put it there too. Clicking a button that already sits on several slots removes it from the slot you clicked. | | 3 | New Button | Click an empty slot to place a new button there. Its editor opens straight away. | | 4 | Add a Row | Makes the menu one row taller, up to 6. | | 5 | Remove a Row | Makes the menu one row shorter, down to 1. | | 8 | Menu Title | Type the new title, in a dialog where the server supports one, otherwise in chat. | | 9 | Templates & Text | Opens the parts of the menu that have no slot of their own. | The item slots are where the menu shows its own entries: the lobbies of the lobby selector and the discs of the music menu. A slot group always keeps at least one slot, and a button locked to a single slot cannot be repeated. A button written as a range, like the grey background rows, can be repeated and trimmed slot by slot. Removing a row does not delete what was on it. Anything left below the last row is hidden, you are told how many slots, and adding the row back shows it again. ## Templates & Text Templates are buttons drawn once per entry rather than placed on a slot: the connected and not connected entries of the lobby selector, the disc of the music menu, and the fill item of a menu with pages. Editing one restyles every copy of it. ## Saving Close the menu to save. The file is written, the menu is live for players at once, and your hotbar is given back. If you opened it from the Edit Menu Layouts list, the list opens again. The menu is also saved when you leave the server, when you die, and when the server stops. Dying ends the session, and your own hotbar items drop with the rest of your inventory unless the world keeps inventories. If the server crashes mid-edit, your hotbar is given back the next time you join. While editing, the tools cannot be dropped, placed or moved, and you cannot swap hands. > **Info:** Two admins can open the same menu at the same time. The second is warned, and whoever closes last overwrites the other's changes. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/menus/menu-layout-editor --- # 🎵 Music ## Music With **/music** the player opens a menu with every music disc of your server version. Clicking one plays it for that player only, and the barrier item stops it. By default the jukebox item in the hotbar opens the same menu. The command can be renamed or disabled in the plugin's configuration. <details> <summary>Music config.yml</summary> ```yaml commands: music: enabled: true alternative: music ``` </details> ## Customising the Menu The menu is built from **menus/music.yml**, so the title, size, background, page arrows and stop button are edited there like any other menu. The **disc** section is the entry repeated for every disc. Its actions decide what a click does, with `%disc%` for the readable name and `%disc_id%` for the id used by `[PLAY_DISC]`. <details> <summary>menus/music.yml</summary> ```yaml settings: title: Music Menu rows: 6 items: stop: slot: '49' material: BARRIER display-name: '&cStop Music' lore: - '&7Click here to stop the music that is playing.' - '' - '&6Left-Click: &eStop the music.' actions: - '[STOP_DISC]' - '[MESSAGE] &6The music has been stopped.' disc: display-name: '&a%disc%' lore: - '&7Click to play this music disc.' actions: - '[PLAY_DISC] %disc_id%' - '[MESSAGE] &6Now playing &e%disc%&6.' ``` </details> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/music --- # 🦊 Better Model > **Warning:** This option requires [BetterModel](https://modrinth.com/plugin/bettermodel) to be installed. ## Better Model Below are all the available customization options for the **BetterModel NPC** type: * **Model:** Allows you to set a model based on its ID. * **Idle Animation:** Plays an animation for the model when it's idling. * **Interaction Animation:** Plays an animation for the model when you interact. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npc-engines/better-model --- # 🧑‍🤝‍🧑 Citizens > **Warning:** This option requires [Citizens](https://www.spigotmc.org/resources/citizens.13811/) to be installed. ## Citizens Below are all the available customization options for the **Citizens NPC** type: <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp25-ezgif.com-video-to-gif-converter.gif" alt=""><figcaption><p>Citizens Engine - Editor</p></figcaption></figure> * **Skin**: Allows you to set a specific skin texture for the NPC by using a URL or a Username. * **Look Close**: Enables the NPC to look at the nearest player. <figure><img src="../../.gitbook/assets/npc_player-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Citizens NPC - In-Game</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npc-engines/citizens --- # 🐄 Entity ## Entity This engine uses a normal Minecraft mob as the npc, so no other plugin is needed. Below are all the available customization options for the **Entity NPC** type: * **Entity Type:** Allows you to pick which mob is used. * **Entity Properties:** Allows you to change the extra properties of that mob, such as its variant, its age or its collar color. Mobs without extra properties show nothing here. * **Look Close**: Enables the NPC to look at the nearest player. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npc-engines/entity --- # 🎩 Fancy NPCs > **Warning:** This option requires [FancyNpcs](https://modrinth.com/plugin/fancynpcs) to be installed. ## Fancy NPCs Below are all the available customization options for the **FancyNpcs NPC** type: * **Skin**: Allows you to set a specific skin texture for the NPC by using a URL or a Username. * **Look Close**: Enables the NPC to look at the nearest player. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npc-engines/fancynpcs --- # 🪽 Flying Head ## Flying Head Below are all the available customization options for the **Flying Head NPC** type: <figure><img src="../../.gitbook/assets/flying_head.gif" alt=""><figcaption><p>Flying Head Engine - Editor</p></figcaption></figure> * **Texture URL**: Allows you to set a specific skull texture for the NPC by using a URL. * **Animation Mode**: Choose an animation for the NPC to perform. * **Hologram Static**: Decide whether the hologram remains static or follows the NPC as it moves. * **Look Close**: Enables the NPC to look at the nearest player. <figure><img src="../../.gitbook/assets/npc_playerhead-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Flying Head NPC - In-Game</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npc-engines/flying-head --- # 🪁 Huge Item ## Huge Item Below are all the available customization options for the **Huge Item NPC** type: <figure><img src="../../.gitbook/assets/Screenshot 2024-10-12 012751.png" alt=""><figcaption><p>Huge Item Engine - Editor</p></figcaption></figure> * **Display Item:** Allows you to set a specific item, and also supports custom model data <figure><img src="../../.gitbook/assets/npc_hugeitem-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Huge Item NPC - In-Game</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npc-engines/huge-item --- # 🐖 Model Engine > **Warning:** This option requires [ModelEngine](https://mythiccraft.io/index.php?pages/official-modelengine4-download/) installed. ## Model Engine Below are all the available customization options for the **ModelEngine NPC** type: <figure><img src="../../.gitbook/assets/Untitledvideo-MadewithClipchamp26-ezgif.com-video-to-gif-converter (1).gif" alt=""><figcaption><p>Model Engine Engine - Editor</p></figcaption></figure> * **Model Name:** Allows you to set a model based on its ID. * **Idle Animation:** Plays an animation for the model when it's idling. * I**nteraction Animation:** Plays an animation for the model when you interact. * **Look Close**: Enables the NPC to look at the nearest player. <figure><img src="../../.gitbook/assets/npc_modelengine-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Model Engine NPC - In-Game</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npc-engines/model-engine --- # ⚙️ NPC Engines With the NPCs from **PhoenixLobby**, you have seven different types to choose from, allowing you to set them up as you prefer. The available options are as follows: * Flying Head - [Click Here](flying-head.md) * Huge Item - [Click Here](huge-item.md) * Entity - [Click Here](entity.md) * Citizens - [Click Here](citizens.md) * Fancy NPCs - [Click Here](fancynpcs.md) * Model Engine - [Click Here](model-engine.md) * Better Model - [Click Here](better-model.md) <figure><img src="../../.gitbook/assets/Screenshot 2024-10-12 015926.png" alt=""><figcaption><p>Change Engine</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npc-engines --- # 🧍‍♀️ NPCs ## NPC Creation An NPC is a figure standing in your lobby that players can click to be sent somewhere or shown a menu. Nothing external is needed to make one, though a few of the [engines](npc-engines/) do hand the rendering over to another plugin. Create one with `/plobby createNpc <identifier>` while standing where you want it, then open **Editor > Npcs** to configure it. ## The NPC list Every NPC you have made is listed here, with its display name and its identifier in brackets. Clicking one opens its own page of settings, covered under [Edit an NPC](#edit-an-npc). Shift-clicking hands you the NPC as an item instead, which you can then place to move it somewhere else without touching its settings. <figure><img src="../../.gitbook/assets/npcs/npc-entry.png" alt="" width="563"><figcaption><p>Npcs (Example NPC)</p></figcaption></figure> ## Npc Despawn Range Unlike everything else here, this one is shared by every NPC rather than set per NPC. It is the distance, in blocks, past which NPCs and their effects stop being shown to a player, and it is found in **Editor > Settings**. Raising it keeps distant NPCs visible from further away, at the cost of sending more to every player. A busy lobby with many NPCs is where a high value starts to hurt. <figure><img src="../../.gitbook/assets/settings/npc-despawn-range.png" alt="" width="563"><figcaption><p>Settings (Npc Despawn Range)</p></figcaption></figure> ## Edit an NPC Clicking an NPC in **Editor > Npcs** opens its own settings. Everything here applies to that one NPC. ### Change Identifier With this option, you can rename the identifier the plugin uses to tell this NPC apart from the others. It is separate from the display name and never shown to players. <figure><img src="../../.gitbook/assets/edit-npc/change-identifier.png" alt="" width="563"><figcaption><p>Edit NPC (Change Identifier)</p></figcaption></figure> > **Danger:** Anything pointing at the old identifier, such as a command or another NPC's actions, stops working when you change it. ### Change Display Name With this option, you can change the name shown to players, which appears in the hologram above the NPC. Colour codes and [MiniMessage](../../configurations/languages.md#rich-text-minimessage) tags both work here. <figure><img src="../../.gitbook/assets/edit-npc/change-display-name.png" alt="" width="563"><figcaption><p>Edit NPC (Change Display Name)</p></figcaption></figure> ### NPC Engine With this option, you can change what the NPC is actually made of. Eight engines are available: Flying Head, Item, Entity, Citizens, Model Engine, Fancy NPCS, Better Model and PhoenixNPCs. Each has its own settings, covered on [NPC Engines](npc-engines/). An engine whose plugin is missing is marked **Not installed** and cannot be picked. <figure><img src="../../.gitbook/assets/edit-npc/engine.png" alt="" width="563"><figcaption><p>Edit NPC (NPC Engine)</p></figcaption></figure> ### Edit Idle Animation With this option, you can add a particle effect that plays around the NPC while it is standing there. Thirteen shapes are available, each with its own particle, colour, offset and density, and an NPC can carry several at once. Its own settings are under [NPC Effects](#npc-effects). <figure><img src="../../.gitbook/assets/edit-npc/edit-idle-animation.png" alt="" width="563"><figcaption><p>Edit NPC (Edit Idle Animation)</p></figcaption></figure> ### Npc Glow With this option, you can give the NPC a glowing outline and pick its colour, which is the cheapest way to make one stand out against a busy build. Its own settings are under [Glow](#glow). <figure><img src="../../.gitbook/assets/edit-npc/npc-glow.png" alt="" width="563"><figcaption><p>Edit NPC (Npc Glow)</p></figcaption></figure> ### Change Scale With this option, you can make the NPC bigger or smaller than a player. <figure><img src="../../.gitbook/assets/edit-npc/change-scale.png" alt="" width="563"><figcaption><p>Edit NPC (Change Scale)</p></figcaption></figure> ### Proxy Server With this option, you can link the NPC to a server on your network. It is what `%proxy_online%` counts in the hologram, and it is picked from a list rather than typed. <figure><img src="../../.gitbook/assets/edit-npc/proxy-server.png" alt="" width="563"><figcaption><p>Edit NPC (Proxy Server)</p></figcaption></figure> ### Actions With this option, you can edit what happens when a player clicks the NPC. Every [action type](../../plugin-information/action-types.md) is available, so one NPC can send a player to another server, run a command or open a menu. * **To another server:** `[PROXY] server_name` * **To another world:** `[COMMAND] /console; mvtp %player% your_world_name` <figure><img src="../../.gitbook/assets/edit-npc/actions.png" alt="" width="563"><figcaption><p>Edit NPC (Actions)</p></figcaption></figure> ### Hologram With this option, you can edit the floating text above the NPC. The plugin has its own hologram system, so no external plugin is needed. Its own settings are under [NPC Hologram](#npc-hologram). <figure><img src="../../.gitbook/assets/edit-npc/hologram.png" alt="" width="563"><figcaption><p>Edit NPC (Hologram)</p></figcaption></figure> ### Toggle State With this option, you can hide the NPC from the world without deleting it or losing any of its settings. <figure><img src="../../.gitbook/assets/edit-npc/toggle-state.png" alt="" width="563"><figcaption><p>Edit NPC (Toggle State)</p></figcaption></figure> ## Glow A glowing outline is the cheapest way to make one NPC stand out against a busy build. It is set per NPC, from **Npc Glow** inside that NPC's settings, and works on every engine. ### Toggle Glow Whether the outline is drawn at all. Turning it off keeps the colour you picked, so switching it back on does not need setting up again. <figure><img src="../../.gitbook/assets/edit-npc-glow/toggle-glow.png" alt="" width="563"><figcaption><p>Glow (Toggle Glow)</p></figcaption></figure> ### Glow Color Left-click to open a menu of the sixteen colours an outline can use, each shown as the dye that matches it, then left-click one to apply it. A colour the plugin does not recognise falls back to white. > **Info:** The outline is coloured by the client, so it is always one flat colour out of those sixteen. Hex codes and gradients do not apply here. ## NPC Effects An effect is a shape drawn in particles around an NPC while it stands there. It is set per NPC, from **Edit Idle Animation** inside that NPC's settings, and works on every [engine](npc-engines/). ### Stacking effects An NPC holds a list of effects rather than one, and every effect in the list is drawn at the same time. That is how the default NPC gets its look: a red dust ring, a ring of flame above it and a slow smoke star around both. Left-click in the effects menu to add one, and left-click an existing effect to change it. ### Effect Type The shape the particles are drawn in. Thirteen are available. | Effect | Shape | | -------------------- | ------------------------------------------------------------ | | Default | A flat ring around the NPC | | Circle | A circle drawn point by point | | Square | A square outline | | Diamond | A diamond outline | | Star | A five-pointed star | | Ninja Star | A four-pointed star | | Flower | A rounded petal shape | | Quatrefoil | A four-lobed clover | | Deltoid | A three-cusped curve | | Astroid | A four-cusped curve, pinched at the corners | | Spiral | A spiral climbing the NPC | | Conical Spiral | A spiral that widens as it climbs, like a cone | | Pulse | A ring that grows outwards and restarts | ### Particle The particle the shape is drawn with, such as `FLAME`, `REDSTONE` or `SMOKE_NORMAL`. A particle your server version does not have simply does not appear. ### Color Only some particles are coloured by the game. `REDSTONE` and the other dust particles take the colour you set here; the rest ignore it and keep their own look, so a flame stays orange whatever you pick. ### Offset `offset-x`, `offset-y` and `offset-z` move the effect relative to the NPC. The one used most is offset-y, which lifts the shape up or down — the default NPC uses it to put one ring at its feet and another at its head. ### Spread How far the particles are scattered from the exact point of the shape. Left at 0 the shape is drawn cleanly; raising it blurs the outline into a cloud. ### Velocity How fast the particles drift once they appear. At 0 they sit still, which is what keeps a shape readable. On dust particles this value is read as their size instead, so a small number there makes finer dust. ### Amount How many particles are drawn per step of the shape. Raising it makes the shape denser and heavier on the client, so keep it low on a lobby that holds a lot of NPCs. > **Info:** Effects stop being drawn past the **Npc Despawn Range** in **Editor > Settings**, the same distance that hides the NPCs themselves. <details> <summary>An effect in the NPC file</summary> Each NPC has its own file in the **npcs** folder, and its effects are a list under `effects`. ```yaml effects: - DEFAULT;{REDSTONE;#ff0000;0.0;0.0;0.0;1.0;0.1;2} - DEFAULT;{FLAME;#ffffff;0.0;0.0;0.0;2.0;0.1;2} - STAR;{SMOKE_NORMAL;#ffffff;0.0;0.0;0.0;0.0;0.0;2} ``` The effect type comes first, and the braces hold the rest in order: the particle, the colour, the X, Y and Z offset, the spread, the velocity and the amount. </details> ## NPC Hologram The floating text above an NPC. The plugin has its own hologram system, so no external plugin is needed, and the look is set per NPC so every one can have its own style. PhoenixHolograms can draw it instead, see [Hologram Engine](../holograms/#hologram-engine). This is the hologram attached to an NPC. For text that stands on its own anywhere in the world, see [Holograms](../holograms/). ### Lines The text itself, one entry per line. `%proxy_online%` shows how many players are on the server picked under **Proxy Server**, vanished staff excluded, and PlaceholderAPI placeholders work too. <figure><img src="../../.gitbook/assets/edit-npc-hologram/hologram.png" alt="" width="563"><figcaption><p>Hologram (Hologram)</p></figcaption></figure> ### Height Offset Raises or lowers the whole hologram relative to the NPC. <figure><img src="../../.gitbook/assets/edit-npc-hologram/height-offset.png" alt="" width="563"><figcaption><p>Hologram (Height Offset)</p></figcaption></figure> ### Line Gap The space left between two lines. <figure><img src="../../.gitbook/assets/edit-npc-hologram/line-gap.png" alt="" width="563"><figcaption><p>Hologram (Line Gap)</p></figcaption></figure> ### Billboard How the text turns to face the player, whether it follows them fully, only horizontally, or stays fixed. <figure><img src="../../.gitbook/assets/edit-npc-hologram/billboard.png" alt="" width="563"><figcaption><p>Hologram (Billboard)</p></figcaption></figure> ### Hologram Scale How large the text is drawn. <figure><img src="../../.gitbook/assets/edit-npc-hologram/hologram-scale.png" alt="" width="563"><figcaption><p>Hologram (Hologram Scale)</p></figcaption></figure> ### Text Opacity How solid the text is, from barely there to fully opaque. <figure><img src="../../.gitbook/assets/edit-npc-hologram/text-opacity.png" alt="" width="563"><figcaption><p>Hologram (Text Opacity)</p></figcaption></figure> ### Background Color The colour of the panel drawn behind the text. <figure><img src="../../.gitbook/assets/edit-npc-hologram/background-color.png" alt="" width="563"><figcaption><p>Hologram (Background Color)</p></figcaption></figure> ### See Through Whether the text stays visible through blocks. <figure><img src="../../.gitbook/assets/edit-npc-hologram/see-through.png" alt="" width="563"><figcaption><p>Hologram (See Through)</p></figcaption></figure> ### Shadow Whether a shadow is drawn behind the text. <figure><img src="../../.gitbook/assets/edit-npc-hologram/shadow.png" alt="" width="563"><figcaption><p>Hologram (Shadow)</p></figcaption></figure> > **Info:** If the editor is awkward for a long hologram, each NPC is also a file of its own in the **npcs** folder and can be edited there. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npcs --- # 💄 Edit an NPC Clicking an NPC in **Editor > Npcs** opens its own settings. Everything here applies to that one NPC. ## Change Identifier With this option, you can rename the identifier the plugin uses to tell this NPC apart from the others. It is separate from the display name and never shown to players. <figure><img src="../../.gitbook/assets/edit-npc/change-identifier.png" alt="" width="563"><figcaption><p>Edit NPC (Change Identifier)</p></figcaption></figure> > **Danger:** Anything pointing at the old identifier, such as a command or another NPC's actions, stops working when you change it. ## Change Display Name With this option, you can change the name shown to players, which appears in the hologram above the NPC. Colour codes and [MiniMessage](../../configurations/rich-text.md) tags both work here. <figure><img src="../../.gitbook/assets/edit-npc/change-display-name.png" alt="" width="563"><figcaption><p>Edit NPC (Change Display Name)</p></figcaption></figure> ## NPC Engine With this option, you can change what the NPC is actually made of. Seven engines are available: Flying Head, Item, Entity, Citizens, Model Engine, Fancy NPCS and Better Model. Each has its own settings and its own page under [NPC Engines](npc-engines/). An engine whose plugin is missing is marked **Not installed** and cannot be picked. <figure><img src="../../.gitbook/assets/edit-npc/engine.png" alt="" width="563"><figcaption><p>Edit NPC (NPC Engine)</p></figcaption></figure> ## Edit Idle Animation With this option, you can add a particle effect that plays around the NPC while it is standing there. Thirteen shapes are available, each with its own particle, colour, offset and density, and an NPC can carry several at once. Its own settings are on the [NPC Effects](npc-effects.md) page. <figure><img src="../../.gitbook/assets/edit-npc/edit-idle-animation.png" alt="" width="563"><figcaption><p>Edit NPC (Edit Idle Animation)</p></figcaption></figure> ## Npc Glow With this option, you can give the NPC a glowing outline and pick its colour, which is the cheapest way to make one stand out against a busy build. Its own settings are on the [NPC Glow](npc-glow.md) page. <figure><img src="../../.gitbook/assets/edit-npc/npc-glow.png" alt="" width="563"><figcaption><p>Edit NPC (Npc Glow)</p></figcaption></figure> ## Change Scale With this option, you can make the NPC bigger or smaller than a player. <figure><img src="../../.gitbook/assets/edit-npc/change-scale.png" alt="" width="563"><figcaption><p>Edit NPC (Change Scale)</p></figcaption></figure> ## Proxy Server With this option, you can link the NPC to a server on your network. It is what `%proxy_online%` counts in the hologram, and it is picked from a list rather than typed. <figure><img src="../../.gitbook/assets/edit-npc/proxy-server.png" alt="" width="563"><figcaption><p>Edit NPC (Proxy Server)</p></figcaption></figure> ## Actions With this option, you can edit what happens when a player clicks the NPC. Every [action type](../../plugin-information/action-types.md) is available, so one NPC can send a player to another server, run a command or open a menu. * **To another server:** `[PROXY] server_name` * **To another world:** `[COMMAND] /console; mvtp %player% your_world_name` <figure><img src="../../.gitbook/assets/edit-npc/actions.png" alt="" width="563"><figcaption><p>Edit NPC (Actions)</p></figcaption></figure> ## Hologram With this option, you can edit the floating text above the NPC. The plugin has its own hologram system, so no external plugin is needed. Its own settings are on the [NPC Hologram](npc-hologram.md) page. <figure><img src="../../.gitbook/assets/edit-npc/hologram.png" alt="" width="563"><figcaption><p>Edit NPC (Hologram)</p></figcaption></figure> ## Toggle State With this option, you can hide the NPC from the world without deleting it or losing any of its settings. <figure><img src="../../.gitbook/assets/edit-npc/toggle-state.png" alt="" width="563"><figcaption><p>Edit NPC (Toggle State)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npcs/edit-an-npc --- # ✨ NPC Effects An effect is a shape drawn in particles around an NPC while it stands there. It is set per NPC, from **Edit Idle Animation** inside that NPC's settings, and works on every [engine](npc-engines/). <figure><img src="../../.gitbook/assets/edit-npc/edit-idle-animation.png" alt="" width="563"><figcaption><p>Edit NPC (Edit Idle Animation)</p></figcaption></figure> ## Stacking effects An NPC holds a list of effects rather than one, and every effect in the list is drawn at the same time. That is how the default NPC gets its look: a red dust ring, a ring of flame above it and a slow smoke star around both. Left-click in the effects menu to add one, and left-click an existing effect to change it. ## Effect Type The shape the particles are drawn in. Thirteen are available. | Effect | Shape | | -------------------- | ------------------------------------------------------------ | | Default | A flat ring around the NPC | | Circle | A circle drawn point by point | | Square | A square outline | | Diamond | A diamond outline | | Star | A five-pointed star | | Ninja Star | A four-pointed star | | Flower | A rounded petal shape | | Quatrefoil | A four-lobed clover | | Deltoid | A three-cusped curve | | Astroid | A four-cusped curve, pinched at the corners | | Spiral | A spiral climbing the NPC | | Conical Spiral | A spiral that widens as it climbs, like a cone | | Pulse | A ring that grows outwards and restarts | ## Particle The particle the shape is drawn with, such as `FLAME`, `REDSTONE` or `SMOKE_NORMAL`. A particle your server version does not have simply does not appear. ## Color Only some particles are coloured by the game. `REDSTONE` and the other dust particles take the colour you set here; the rest ignore it and keep their own look, so a flame stays orange whatever you pick. ## Offset `offset-x`, `offset-y` and `offset-z` move the effect relative to the NPC. The one used most is offset-y, which lifts the shape up or down — the default NPC uses it to put one ring at its feet and another at its head. ## Spread How far the particles are scattered from the exact point of the shape. Left at 0 the shape is drawn cleanly; raising it blurs the outline into a cloud. ## Velocity How fast the particles drift once they appear. At 0 they sit still, which is what keeps a shape readable. On dust particles this value is read as their size instead, so a small number there makes finer dust. ## Amount How many particles are drawn per step of the shape. Raising it makes the shape denser and heavier on the client, so keep it low on a lobby that holds a lot of NPCs. > **Info:** Effects stop being drawn past the **Npc Despawn Range** in **Editor > Settings**, the same distance that hides the NPCs themselves. See [NPCs](README.md). <details> <summary>An effect in the NPC file</summary> Each NPC has its own file in the **npcs** folder, and its effects are a list under `effects`. ```yaml effects: - DEFAULT;{REDSTONE;#ff0000;0.0;0.0;0.0;1.0;0.1;2} - DEFAULT;{FLAME;#ffffff;0.0;0.0;0.0;2.0;0.1;2} - STAR;{SMOKE_NORMAL;#ffffff;0.0;0.0;0.0;0.0;0.0;2} ``` The effect type comes first, and the braces hold the rest in order: the particle, the colour, the X, Y and Z offset, the spread, the velocity and the amount. </details> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npcs/npc-effects --- # ⚙️ NPC Engines Eight engines are available, each with a section below. The engine is picked per NPC, from **NPC Engine** on its own [settings](../README.md#edit-an-npc). An engine whose plugin is missing is marked **Not installed** and cannot be picked. <figure><img src="../../../.gitbook/assets/edit-npc/engine.png" alt="" width="563"><figcaption><p>Edit NPC (NPC Engine)</p></figcaption></figure> ## Flying Head This engine is a floating player head with no body, drawn by the plugin itself, so nothing else has to be installed. It is the lightest of the eight and the only one that can be animated without a model. ### Texture Url With this option, you can set which skin the head wears, either from a texture url or from a player username. <figure><img src="../../../.gitbook/assets/flying-head/texture-url.png" alt="" width="563"><figcaption><p>Flying Head (Texture Url)</p></figcaption></figure> ### Animation Mode With this option, you can make the head move on its own instead of hanging still. **Helix** spins it around the spot it stands on, **Unstable** shakes it in place, and **None** leaves it still. <figure><img src="../../../.gitbook/assets/flying-head/animation-mode.png" alt="" width="563"><figcaption><p>Flying Head (Animation Mode)</p></figcaption></figure> ### Hologram Static With this option, you can decide whether the hologram stays where the NPC stands or rides along with the head. Leaving it static is what keeps the text readable while an animation is running. <figure><img src="../../../.gitbook/assets/flying-head/hologram-static.png" alt="" width="563"><figcaption><p>Flying Head (Hologram Static)</p></figcaption></figure> ### Model Offset With this option, you can raise or lower the head from where the NPC stands. It moves only the head, so it is separate from the [hologram](../README.md#npc-hologram) height offset. <figure><img src="../../../.gitbook/assets/flying-head/model-offset.png" alt="" width="563"><figcaption><p>Flying Head (Model Offset)</p></figcaption></figure> ### Look Close With this option, you can make the head turn towards the nearest player instead of facing the direction it was placed in. <figure><img src="../../../.gitbook/assets/flying-head/look-close.png" alt="" width="563"><figcaption><p>Flying Head (Look Close)</p></figcaption></figure> ## Huge Item This engine turns any item into the NPC, drawn by the plugin itself, so nothing else has to be installed. It is listed as Item in the engine picker. ### Display Item With this option, you can choose the item the NPC is made of. Drag one out of your inventory onto the slot; custom model data is kept, so a resource pack item works as well as a vanilla one, and the same item is what the NPC shows in the editor lists. <figure><img src="../../../.gitbook/assets/huge-item/display-item.png" alt="" width="563"><figcaption><p>Huge Item (Display Item)</p></figcaption></figure> ### Model Offset With this option, you can raise or lower the item from where the NPC stands. It moves only the item, so it is separate from the [hologram](../README.md#npc-hologram) height offset. <figure><img src="../../../.gitbook/assets/huge-item/model-offset.png" alt="" width="563"><figcaption><p>Huge Item (Model Offset)</p></figcaption></figure> ## Entity This engine uses a normal Minecraft mob as the NPC, drawn by the plugin itself, so nothing else has to be installed. ### Entity Type With this option, you can pick which mob the NPC is. Changing it resets the properties below, since every mob has its own set. <figure><img src="../../../.gitbook/assets/entity/entity-type.png" alt="" width="563"><figcaption><p>Entity (Entity Type)</p></figcaption></figure> ### Entity Properties With this option, you can change the extra properties of the chosen mob. Which ones appear depends entirely on the mob: a cat has a variant, a wolf has a variant and a collar colour, a slime has neither and says so instead of opening a list. Changing the [Entity Type](#entity-type) resets whatever was chosen here, since the values of one mob mean nothing to another. <figure><img src="../../../.gitbook/assets/entity/entity-properties.png" alt="" width="563"><figcaption><p>Entity (Entity Properties)</p></figcaption></figure> #### Variant With this option, you can pick which kind of the mob the NPC is: the colour of a sheep or a llama, the breed of a cat, a rabbit or a fox, the biome coat of a cow, a pig or a chicken, the profession skin of a villager. The list is read from the server itself, so a variant added by a newer Minecraft version shows up without an update here. <figure><img src="../../../.gitbook/assets/entity-properties/variant.png" alt="" width="563"><figcaption><p>Entity Properties (Variant)</p></figcaption></figure> #### Age With this option, you can make the NPC a baby instead of an adult. It appears for every mob that can be a baby at all, on top of whatever other properties that mob has. <figure><img src="../../../.gitbook/assets/entity-properties/age.png" alt="" width="563"><figcaption><p>Entity Properties (Age)</p></figcaption></figure> #### Collar With this option, you can set the collar colour of a wolf. It is the one property that is not a variant, so a wolf shows it next to its own variant list. ### Look Close With this option, you can make the mob turn towards the nearest player instead of facing the direction it was placed in. <figure><img src="../../../.gitbook/assets/entity/look-close.png" alt="" width="563"><figcaption><p>Entity (Look Close)</p></figcaption></figure> ## Citizens > **Warning:** This option requires [Citizens](https://www.spigotmc.org/resources/citizens.13811/) to be installed. This engine hands the NPC to Citizens, so it is a real player-shaped npc with a skin, and everything Citizens itself adds on top keeps working. ### Skin With this option, you can set the skin the NPC wears. Left-click takes a MineSkin url, right-click a player username, and shift + left-click a player uuid. All three are looked up online, so a username or uuid that Mojang does not know is refused with the reason. <figure><img src="../../../.gitbook/assets/citizens/skin.png" alt="" width="563"><figcaption><p>Citizens (Skin)</p></figcaption></figure> ### Look Close With this option, you can make the NPC turn towards the nearest player instead of facing the direction it was placed in. <figure><img src="../../../.gitbook/assets/citizens/look-close.png" alt="" width="563"><figcaption><p>Citizens (Look Close)</p></figcaption></figure> ## Model Engine > **Warning:** This option requires [ModelEngine](https://mythiccraft.io/index.php?pages/official-modelengine4-download/) installed. This engine uses a ModelEngine model as the NPC, so anything you can build in Blockbench can stand in the lobby and play its own animations. ### Model Name With this option, you can pick one of the models ModelEngine has loaded. An NPC left on **unknown** shows a "Setup the model" marker in the world instead of a model. <figure><img src="../../../.gitbook/assets/model-engine/model-name.png" alt="" width="563"><figcaption><p>Model Engine (Model Name)</p></figcaption></figure> ### Idle Animation With this option, you can loop an animation while the NPC is standing there. The list is the animations of the chosen model, so picking the model comes first. <figure><img src="../../../.gitbook/assets/model-engine/idle-animation.png" alt="" width="563"><figcaption><p>Model Engine (Idle Animation)</p></figcaption></figure> ### Interaction Animation With this option, you can play an animation once when a player clicks the NPC. It runs alongside the [actions](../README.md#edit-an-npc) of that click, not instead of them. <figure><img src="../../../.gitbook/assets/model-engine/interaction-animation.png" alt="" width="563"><figcaption><p>Model Engine (Interaction Animation)</p></figcaption></figure> ### Look Close With this option, you can make the model turn towards the nearest player instead of facing the direction it was placed in. <figure><img src="../../../.gitbook/assets/model-engine/look-close.png" alt="" width="563"><figcaption><p>Model Engine (Look Close)</p></figcaption></figure> ## Fancy NPCs > **Warning:** This option requires [FancyNpcs](https://modrinth.com/plugin/fancynpcs) to be installed. This engine hands the NPC to FancyNpcs, so it is a real player-shaped npc with a skin. It is listed as Fancy NPCS in the engine picker. ### Skin With this option, you can set the skin the NPC wears, either from a raw skin texture value or from a player uuid. <figure><img src="../../../.gitbook/assets/fancy-npcs/skin.png" alt="" width="563"><figcaption><p>Fancy NPCs (Skin)</p></figcaption></figure> ### Look Close With this option, you can make the NPC turn towards the nearest player instead of facing the direction it was placed in. <figure><img src="../../../.gitbook/assets/fancy-npcs/look-close.png" alt="" width="563"><figcaption><p>Fancy NPCs (Look Close)</p></figcaption></figure> ## Better Model > **Warning:** This option requires [BetterModel](https://modrinth.com/plugin/bettermodel) to be installed. This engine uses a BetterModel model as the NPC, so a model you have built in Blockbench can stand in the lobby and play its own animations. ### Model With this option, you can pick one of the models BetterModel has loaded. An NPC left on **unknown** shows a "Setup the model" marker in the world instead of a model. <figure><img src="../../../.gitbook/assets/better-model/model.png" alt="" width="563"><figcaption><p>Better Model (Model)</p></figcaption></figure> ### Idle Animation With this option, you can loop an animation while the NPC is standing there. The list is the animations of the chosen model, so picking the model comes first. <figure><img src="../../../.gitbook/assets/better-model/idle-animation.png" alt="" width="563"><figcaption><p>Better Model (Idle Animation)</p></figcaption></figure> ### Interaction Animation With this option, you can play an animation once when a player clicks the NPC. It runs alongside the [actions](../README.md#edit-an-npc) of that click, not instead of them. <figure><img src="../../../.gitbook/assets/better-model/interaction-animation.png" alt="" width="563"><figcaption><p>Better Model (Interaction Animation)</p></figcaption></figure> ### Look Close With this option, you can make the model turn towards the nearest player instead of facing the direction it was placed in. <figure><img src="../../../.gitbook/assets/better-model/look-close.png" alt="" width="563"><figcaption><p>Better Model (Look Close)</p></figcaption></figure> ## PhoenixNPCs > **Warning:** This option requires PhoenixNPCs to be installed. This engine hands the mob of an [Entity](#entity) NPC to PhoenixNPCs instead of spawning it in the world. It has the same settings as the Entity engine, and switching an NPC between the two keeps them. The mob type, look close, scale, glow and click actions carry over; [Entity Properties](#entity-properties) do not. If PhoenixNPCs is removed, these NPCs are drawn by the Entity engine and a warning is logged. > **Info:** This engine replaces the old **NPC Engine** option of **Editor > Settings**. A server that had it set to PhoenixNPCs has its Entity NPCs moved to this engine on the first start after the update. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npcs/npc-engines --- # 🦊 Better Model > **Warning:** This option requires [BetterModel](https://modrinth.com/plugin/bettermodel) to be installed. ## Better Model This engine uses a BetterModel model as the NPC, so a model you have built in Blockbench can stand in the lobby and play its own animations. ## Model With this option, you can pick one of the models BetterModel has loaded. An NPC left on **unknown** shows a "Setup the model" marker in the world instead of a model. <figure><img src="../../../.gitbook/assets/better-model/model.png" alt="" width="563"><figcaption><p>Better Model (Model)</p></figcaption></figure> ## Idle Animation With this option, you can loop an animation while the NPC is standing there. The list is the animations of the chosen model, so picking the model comes first. <figure><img src="../../../.gitbook/assets/better-model/idle-animation.png" alt="" width="563"><figcaption><p>Better Model (Idle Animation)</p></figcaption></figure> ## Interaction Animation With this option, you can play an animation once when a player clicks the NPC. It runs alongside the [actions](../edit-an-npc.md) of that click, not instead of them. <figure><img src="../../../.gitbook/assets/better-model/interaction-animation.png" alt="" width="563"><figcaption><p>Better Model (Interaction Animation)</p></figcaption></figure> ## Look Close With this option, you can make the model turn towards the nearest player instead of facing the direction it was placed in. <figure><img src="../../../.gitbook/assets/better-model/look-close.png" alt="" width="563"><figcaption><p>Better Model (Look Close)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npcs/npc-engines/better-model --- # 🧑‍🤝‍🧑 Citizens > **Warning:** This option requires [Citizens](https://www.spigotmc.org/resources/citizens.13811/) to be installed. ## Citizens This engine hands the NPC to Citizens, so it is a real player-shaped npc with a skin, and everything Citizens itself adds on top keeps working. ## Skin With this option, you can set the skin the NPC wears. Left-click takes a MineSkin url, right-click a player username, and shift + left-click a player uuid. All three are looked up online, so a username or uuid that Mojang does not know is refused with the reason. <figure><img src="../../../.gitbook/assets/citizens/skin.png" alt="" width="563"><figcaption><p>Citizens (Skin)</p></figcaption></figure> ## Look Close With this option, you can make the NPC turn towards the nearest player instead of facing the direction it was placed in. <figure><img src="../../../.gitbook/assets/citizens/look-close.png" alt="" width="563"><figcaption><p>Citizens (Look Close)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npcs/npc-engines/citizens --- # 🐄 Entity ## Entity This engine uses a normal Minecraft mob as the NPC, drawn by the plugin itself, so nothing else has to be installed. ## NPC Engine Shared by every Entity NPC and set in **Editor > Settings**. Switching it respawns the npcs right away. | Engine | Description | | --- | --- | | Built-in | The default, spawns the mob in the world | | PhoenixNPCs | Hands the mob to PhoenixNPCs, selectable only while it is installed | With PhoenixNPCs, the mob type, look close, scale, glow and click actions carry over; entity properties do not. If PhoenixNPCs is removed, the plugin falls back to Built-in and logs a warning. The other engines are not affected. ## Entity Type With this option, you can pick which mob the NPC is. Changing it resets the properties below, since every mob has its own set. <figure><img src="../../../.gitbook/assets/entity/entity-type.png" alt="" width="563"><figcaption><p>Entity (Entity Type)</p></figcaption></figure> ## Entity Properties With this option, you can change the extra properties of the chosen mob. Which ones appear depends on the mob, and one that has none says so instead of opening a list. They have their own page: [Entity Properties](entity/properties.md). <figure><img src="../../../.gitbook/assets/entity/entity-properties.png" alt="" width="563"><figcaption><p>Entity (Entity Properties)</p></figcaption></figure> ## Look Close With this option, you can make the mob turn towards the nearest player instead of facing the direction it was placed in. <figure><img src="../../../.gitbook/assets/entity/look-close.png" alt="" width="563"><figcaption><p>Entity (Look Close)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npcs/npc-engines/entity --- # 🎨 Entity Properties Which properties appear depends entirely on the mob the NPC is set to. A cat has a variant, a wolf has a variant and a collar colour, a slime has neither and says so instead of opening a list. Changing the [Entity Type](../entity.md#entity-type) resets whatever was chosen here, since the values of one mob mean nothing to another. ## Variant With this option, you can pick which kind of the mob the NPC is: the colour of a sheep or a llama, the breed of a cat, a rabbit or a fox, the biome coat of a cow, a pig or a chicken, the profession skin of a villager. The list is read from the server itself, so a variant added by a newer Minecraft version shows up without an update here. <figure><img src="../../../../.gitbook/assets/entity-properties/variant.png" alt="" width="563"><figcaption><p>Entity Properties (Variant)</p></figcaption></figure> ## Age With this option, you can make the NPC a baby instead of an adult. It appears for every mob that can be a baby at all, on top of whatever other properties that mob has. <figure><img src="../../../../.gitbook/assets/entity-properties/age.png" alt="" width="563"><figcaption><p>Entity Properties (Age)</p></figcaption></figure> ## Collar With this option, you can set the collar colour of a wolf. It is the one property that is not a variant, so a wolf shows it next to its own variant list. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npcs/npc-engines/entity/properties --- # 🎩 Fancy NPCs > **Warning:** This option requires [FancyNpcs](https://modrinth.com/plugin/fancynpcs) to be installed. ## Fancy NPCs This engine hands the NPC to FancyNpcs, so it is a real player-shaped npc with a skin. It is listed as Fancy NPCS in the engine picker. ## Skin With this option, you can set the skin the NPC wears, either from a raw skin texture value or from a player uuid. <figure><img src="../../../.gitbook/assets/fancy-npcs/skin.png" alt="" width="563"><figcaption><p>Fancy NPCs (Skin)</p></figcaption></figure> ## Look Close With this option, you can make the NPC turn towards the nearest player instead of facing the direction it was placed in. <figure><img src="../../../.gitbook/assets/fancy-npcs/look-close.png" alt="" width="563"><figcaption><p>Fancy NPCs (Look Close)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npcs/npc-engines/fancynpcs --- # 🪽 Flying Head ## Flying Head This engine is a floating player head with no body, drawn by the plugin itself, so nothing else has to be installed. It is the lightest of the seven and the only one that can be animated without a model. ## Texture Url With this option, you can set which skin the head wears, either from a texture url or from a player username. <figure><img src="../../../.gitbook/assets/flying-head/texture-url.png" alt="" width="563"><figcaption><p>Flying Head (Texture Url)</p></figcaption></figure> ## Animation Mode With this option, you can make the head move on its own instead of hanging still. **Helix** spins it around the spot it stands on, **Unstable** shakes it in place, and **None** leaves it still. <figure><img src="../../../.gitbook/assets/flying-head/animation-mode.png" alt="" width="563"><figcaption><p>Flying Head (Animation Mode)</p></figcaption></figure> ## Hologram Static With this option, you can decide whether the hologram stays where the NPC stands or rides along with the head. Leaving it static is what keeps the text readable while an animation is running. <figure><img src="../../../.gitbook/assets/flying-head/hologram-static.png" alt="" width="563"><figcaption><p>Flying Head (Hologram Static)</p></figcaption></figure> ## Model Offset With this option, you can raise or lower the head from where the NPC stands. It moves only the head, so it is separate from the [hologram](../npc-hologram.md) height offset. <figure><img src="../../../.gitbook/assets/flying-head/model-offset.png" alt="" width="563"><figcaption><p>Flying Head (Model Offset)</p></figcaption></figure> ## Look Close With this option, you can make the head turn towards the nearest player instead of facing the direction it was placed in. <figure><img src="../../../.gitbook/assets/flying-head/look-close.png" alt="" width="563"><figcaption><p>Flying Head (Look Close)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npcs/npc-engines/flying-head --- # 🪁 Huge Item ## Huge Item This engine turns any item into the NPC, drawn by the plugin itself, so nothing else has to be installed. It is listed as Item in the engine picker. ## Display Item With this option, you can choose the item the NPC is made of. Drag one out of your inventory onto the slot; custom model data is kept, so a resource pack item works as well as a vanilla one, and the same item is what the NPC shows in the editor lists. <figure><img src="../../../.gitbook/assets/huge-item/display-item.png" alt="" width="563"><figcaption><p>Huge Item (Display Item)</p></figcaption></figure> ## Model Offset With this option, you can raise or lower the item from where the NPC stands. It moves only the item, so it is separate from the [hologram](../npc-hologram.md) height offset. <figure><img src="../../../.gitbook/assets/huge-item/model-offset.png" alt="" width="563"><figcaption><p>Huge Item (Model Offset)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npcs/npc-engines/huge-item --- # 🐖 Model Engine > **Warning:** This option requires [ModelEngine](https://mythiccraft.io/index.php?pages/official-modelengine4-download/) installed. ## Model Engine This engine uses a ModelEngine model as the NPC, so anything you can build in Blockbench can stand in the lobby and play its own animations. ## Model Name With this option, you can pick one of the models ModelEngine has loaded. An NPC left on **unknown** shows a "Setup the model" marker in the world instead of a model. <figure><img src="../../../.gitbook/assets/model-engine/model-name.png" alt="" width="563"><figcaption><p>Model Engine (Model Name)</p></figcaption></figure> ## Idle Animation With this option, you can loop an animation while the NPC is standing there. The list is the animations of the chosen model, so picking the model comes first. <figure><img src="../../../.gitbook/assets/model-engine/idle-animation.png" alt="" width="563"><figcaption><p>Model Engine (Idle Animation)</p></figcaption></figure> ## Interaction Animation With this option, you can play an animation once when a player clicks the NPC. It runs alongside the [actions](../edit-an-npc.md) of that click, not instead of them. <figure><img src="../../../.gitbook/assets/model-engine/interaction-animation.png" alt="" width="563"><figcaption><p>Model Engine (Interaction Animation)</p></figcaption></figure> ## Look Close With this option, you can make the model turn towards the nearest player instead of facing the direction it was placed in. <figure><img src="../../../.gitbook/assets/model-engine/look-close.png" alt="" width="563"><figcaption><p>Model Engine (Look Close)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npcs/npc-engines/model-engine --- # ✨ NPC Glow A glowing outline is the cheapest way to make one NPC stand out against a busy build. It is set per NPC, from **Npc Glow** inside that NPC's settings, and works on every engine. ## Toggle Glow Whether the outline is drawn at all. Turning it off keeps the colour you picked, so switching it back on does not need setting up again. <figure><img src="../../.gitbook/assets/edit-npc-glow/toggle-glow.png" alt="" width="563"><figcaption><p>Glow (Toggle Glow)</p></figcaption></figure> ## Glow Color Left-click to open a menu of the sixteen colours an outline can use, each shown as the dye that matches it, then left-click one to apply it. A colour the plugin does not recognise falls back to white. > **Info:** The outline is coloured by the client, so it is always one flat colour out of those sixteen. Hex codes and gradients do not apply here. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npcs/npc-glow --- # 🗨️ NPC Hologram The floating text above an NPC. The plugin has its own hologram system, so no external plugin is needed, and the look is set per NPC so every one can have its own style. PhoenixHolograms can draw it instead, see [Hologram Engine](../holograms/#hologram-engine). This is the hologram attached to an NPC. For text that stands on its own anywhere in the world, see [Holograms](../holograms/). ## Lines The text itself, one entry per line. `%proxy_online%` shows how many players are on the server picked under **Proxy Server**, vanished staff excluded, and PlaceholderAPI placeholders work too. <figure><img src="../../.gitbook/assets/edit-npc-hologram/hologram.png" alt="" width="563"><figcaption><p>Hologram (Hologram)</p></figcaption></figure> ## Height Offset Raises or lowers the whole hologram relative to the NPC. <figure><img src="../../.gitbook/assets/edit-npc-hologram/height-offset.png" alt="" width="563"><figcaption><p>Hologram (Height Offset)</p></figcaption></figure> ## Line Gap The space left between two lines. <figure><img src="../../.gitbook/assets/edit-npc-hologram/line-gap.png" alt="" width="563"><figcaption><p>Hologram (Line Gap)</p></figcaption></figure> ## Billboard How the text turns to face the player, whether it follows them fully, only horizontally, or stays fixed. <figure><img src="../../.gitbook/assets/edit-npc-hologram/billboard.png" alt="" width="563"><figcaption><p>Hologram (Billboard)</p></figcaption></figure> ## Hologram Scale How large the text is drawn. <figure><img src="../../.gitbook/assets/edit-npc-hologram/hologram-scale.png" alt="" width="563"><figcaption><p>Hologram (Hologram Scale)</p></figcaption></figure> ## Text Opacity How solid the text is, from barely there to fully opaque. <figure><img src="../../.gitbook/assets/edit-npc-hologram/text-opacity.png" alt="" width="563"><figcaption><p>Hologram (Text Opacity)</p></figcaption></figure> ## Background Color The colour of the panel drawn behind the text. <figure><img src="../../.gitbook/assets/edit-npc-hologram/background-color.png" alt="" width="563"><figcaption><p>Hologram (Background Color)</p></figcaption></figure> ## See Through Whether the text stays visible through blocks. <figure><img src="../../.gitbook/assets/edit-npc-hologram/see-through.png" alt="" width="563"><figcaption><p>Hologram (See Through)</p></figcaption></figure> ## Shadow Whether a shadow is drawn behind the text. <figure><img src="../../.gitbook/assets/edit-npc-hologram/shadow.png" alt="" width="563"><figcaption><p>Hologram (Shadow)</p></figcaption></figure> > **Info:** If the editor is awkward for a long hologram, each NPC is also a file of its own in the **npcs** folder and can be edited there. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/npcs/npc-hologram --- # 🎛️ Player Settings > **Info:** The menu is configured in **menus/player-settings.yml** inside the PhoenixLobby folder. ## Player Settings Players can turn off some of the things the lobby displays to them. The choice is saved, so it is still there the next time they join. **/playersettings** opens a menu with the action bar, the bossbar, the scoreboard and the chat announcements. Each of them also has its own command. <figure><img src="../.gitbook/assets/player-settings/player-settings.png" alt="" width="563"><figcaption><p>Player Settings</p></figcaption></figure> Every toggle is a separate entry with its own slot, name, lore and a distinct item for the on and off state, as are the filler row and the close button. The file works like any other [menu](menus.md). In a toggle's name or its lore, `%state%` prints whether that setting is currently on or off, which is what the default lore uses to show the player where they stand. Rewriting the lore without it leaves the item reading the same in both states. ```yaml lore: - '&7Toggle whether you receive' - '&7action bar announcements.' - '' - '&fEnabled: %state%' ``` | Command | Description | | ------------------------ | ---------------------------------------- | | `/playersettings` | Opens the settings menu | | `/toggleactionbar` | Turns the action bar on or off | | `/togglebossbar` | Turns the bossbar on or off | | `/togglescoreboard` | Turns the scoreboard on or off | | `/toggleannouncements` | Turns the chat announcements on or off | | `/visibility` | Shows or hides the other players | All of these commands can be renamed in the plugin's configuration. <details> <summary>Commands config.yml</summary> ```yaml commands: visibility: alternative: visibility playersettings: alternative: playersettings toggleactionbar: alternative: toggleactionbar togglebossbar: alternative: togglebossbar togglescoreboard: alternative: togglescoreboard toggleannouncements: alternative: toggleannouncements ``` </details> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/player-settings --- # 🏠 Set Lobby Everything on this page feeds one location: the place a player lands when they join, when they respawn, when they run `/spawn`, and when the [World Protection](../modules/world-protection.md) void rule catches them. It is stored in **modules/join.yml**. ## Set the spawn Stand where you want players to arrive, facing the direction you want them to face, and run **/plobby setspawn**. The whole standing position is taken, including which way you are looking. ## Spawn Points <figure><img src="../.gitbook/assets/settings/spawn-points.png" alt="" width="563"><figcaption><p>Editor > Settings > Spawn Points</p></figcaption></figure> ### Default Spawn The location every player without a spawn group is sent to. It is the same value `/plobby setspawn` writes, so setting it in either place changes the other. <figure><img src="../.gitbook/assets/spawn-points/default-spawn.png" alt="" width="563"><figcaption><p>Default Spawn</p></figcaption></figure> Left-Click closes the menu and starts a short session to pick the location: walk to the spot you want and **Sneak + Left-Click** to take it. Typing anything in chat cancels the session, and it expires on its own after two minutes. Right-Click on the item clears the location instead. With no default spawn set and no group matching, the player is left where Minecraft would have put them. ## Spawn Groups A spawn group is a set of spawn points reserved for a permission, for example a dedicated arrival area for your VIPs. Click the lime pane on the Spawn Points screen to create one. <figure><img src="../.gitbook/assets/spawn-points/spawn-group.png" alt="" width="563"><figcaption><p>A spawn group</p></figcaption></figure> Groups are checked from top to bottom. The first one whose permission the player has **and** that has at least one spawn point wins, and one of its points is picked at random. A player matching no group gets the Default Spawn. > **Info:** A group with no spawn points in it is skipped rather than sending the player nowhere, so a half-finished group cannot break your spawn. ### Spawn points of a group Click the lime pane to add your current position as a point. Add more than one and the group starts spreading players between them. <figure><img src="../.gitbook/assets/spawn-group/spawn-point.png" alt="" width="563"><figcaption><p>A spawn point inside a group</p></figcaption></figure> | Click | Does | | ------------------ | --------------------------------------- | | Left-Click | Teleport you to that point | | Shift + Left-Click | Replace it with where you are standing | | Right-Click | Remove it | ### Identifier <figure><img src="../.gitbook/assets/spawn-group/change-identifier.png" alt="" width="563"><figcaption><p>Change Identifier</p></figcaption></figure> The name the group is stored under, `group_1` for the first one you create. It has to be unique and cannot contain a space. A dash is turned into an underscore, and anything that is not a letter, a digit or an underscore is dropped, so `VIP Zone` is refused for its space while `vip-zone` is accepted and saved as `vip_zone`. ### Permission <figure><img src="../.gitbook/assets/spawn-group/change-permission.png" alt="" width="563"><figcaption><p>Change Permission</p></figcaption></figure> The permission a player needs to spawn on this group's points. A new group starts on `phoenixlobby.spawns.<identifier>`, which you can replace with a permission your rank plugin already gives out. > **Warning:** Renaming the identifier does not rewrite the permission, so a group renamed from `group_1` to `vip` keeps asking for `phoenixlobby.spawns.group_1` until you change it here as well. A group left with an empty permission is skipped for everyone, which is a quiet way to park a group without deleting it. ### Delete <figure><img src="../.gitbook/assets/spawn-group/delete-spawn-group.png" alt="" width="563"><figcaption><p>Delete Spawn Group</p></figcaption></figure> Removes the group and every spawn point in it, after a confirmation. The players who were using it fall back to the Default Spawn. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/featues/set-lobby --- # 💎 Features <table data-full-width="true"><thead><tr><th>Lobby</th><th>NPCs & Holograms</th><th>Modules</th></tr></thead><tbody><tr><td>Set the lobby spawn point.</td><td>Create and edit an NPC in-game.</td><td>On Join</td></tr><tr><td>Random spawn across multiple points.</td><td>8 NPC engines to choose from.</td><td>World Protection, with per world rules</td></tr><tr><td>Permission based spawn groups.</td><td>Huge Item engine</td><td>Chat, with anti spam and a filter</td></tr><tr><td>Hotbar Items</td><td>Flying Head engine</td><td>Announcements</td></tr><tr><td>Grant the items only on chosen worlds.</td><td>Entity engine</td><td>Action Bar</td></tr><tr><td>Player Settings</td><td>Citizens engine</td><td>Bossbar</td></tr><tr><td>Music, with a disc menu</td><td>Fancy NPCs engine</td><td>Scoreboard</td></tr><tr><td>Maintenance mode</td><td>Model Engine engine</td><td>Tablist</td></tr><tr><td>Customizable menus, and your own on top, with an in-game layout editor</td><td>Better Model engine</td><td>MOTD, with random variants</td></tr><tr><td>Custom Actions</td><td>PhoenixNPCs engine</td><td>PvP</td></tr><tr><td>Rich Text (MiniMessage) support</td><td>Scale the model per NPC.</td><td>Launch Pad</td></tr><tr><td>Support PlaceholderAPI for commands.</td><td>Offset the model height per NPC.</td><td>Double Jump</td></tr><tr><td>Alternative Commands</td><td>NPC holograms, styled per NPC.</td><td>Parkour, with rewards and placeholders</td></tr><tr><td>MySQL and SQlite Database</td><td>Standalone holograms, with no NPC.</td><td>Anti Bot</td></tr><tr><td>Easily editable files</td><td>Edit and customize a hologram.</td><td>Anti VPN</td></tr><tr><td>Translatable into any language</td><td>Click a hologram to run actions.</td><td>Anti WDL</td></tr><tr><td></td><td>Clone a hologram.</td><td>Command Blocker, on execution and on tab completion</td></tr><tr><td></td><td>One file per NPC and per hologram.</td><td>Logger, with a webhook per event</td></tr><tr><td></td><td>Show the online count of a chosen server.</td><td>Alt Protection</td></tr></tbody></table> ## Proxy Available once the plugin is installed on the proxy as well as the game servers. <table data-full-width="true"><thead><tr><th>Feature</th><th>What it does</th></tr></thead><tbody><tr><td>Multiple Lobbies</td><td>Run several lobbies, each with its own settings and theme.</td></tr><tr><td>Automatic Lobby Redirection</td><td>Send the users to the lobby holding fewer players.</td></tr><tr><td>Queue System</td><td>Hold the users in a waiting line so a server is not overloaded.</td></tr><tr><td>Waiting Server</td><td>Hold the users on a waiting server while every lobby is full, instead of kicking them.</td></tr><tr><td>Kick-Forward</td><td>Send the users back to a lobby after a kick from another server.</td></tr><tr><td>Server Shortcuts</td><td>Register one command per server, with aliases and a permission.</td></tr><tr><td>MOTD</td><td>Serve the network MOTD from the proxy.</td></tr><tr><td>Alt Protection</td><td>Limit the accounts connecting from the same address, counted across the whole network.</td></tr></tbody></table> ## Suggestions If you notice something missing from our plugin, please let us know. Additionally, we are always open to suggestions from our users to add more content and improve the plugin. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/features --- # 🔌 First Installation ## Installation <a href="#installation" id="installation"></a> 1. Download the jar from our website 2. Install PhoenixLobby-?.jar into your "Plugins" folder. 3. Start your server 4. Configure the plugin by yml file or by in-game editor `/phoenixlobby editor` 5. Restart the plugin **/plobby reload** <figure><img src=".gitbook/assets/extra/editor.png" alt="" width="563"><figcaption><p>The in-game editor</p></figcaption></figure> The editor also has an **Our Plugins** button that lists the other Phoenix plugins, with a link to the store page of each one. ## Proxy Installation 1. Install the same PhoenixLobby-?.jar into the "Plugins" folder of your Bungeecord or Velocity proxy. 2. Restart the proxy 3. Link your lobby servers by following the [Setup with Proxy](set-up/setup-with-proxy.md) page. <figure><img src=".gitbook/assets/extra/installation.png" alt="" width="563"><figcaption><p>Download PhoenixLobby Popup</p></figcaption></figure> > **Info:** We strongly advise using the latest STABLE build of the plugin, as it includes the most recent bug fixes. ## Version Support The plugin supports Spigot, any Spigot forks, Paper, any Paper forks, Bungeecord, and Bungeecord forks, and Velocity. It should also work on any custom modded servers. > **Warning:** Folia is supported, but the support is still **experimental**. Test it on a staging server before putting it in front of your players, and report anything you run into. <table><thead><tr><th>Minecraft Version</th><th data-type="checkbox"></th></tr></thead><tbody><tr><td>26.x</td><td>true</td></tr><tr><td>1.21.x</td><td>true</td></tr><tr><td>1.20.4 - 1.20.6</td><td>true</td></tr><tr><td>1.20.3 and older</td><td>false</td></tr></tbody></table> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/first-installation --- # 🎯 Action Bar > **Info:** This module is configured in **modules/actionbar.yml** inside the PhoenixLobby folder. ## Action Bar The action bar shows a rotating list of messages just above the hotbar, without taking up any chat space. Open it from **Editor > Modules > Action Bar**. <figure><img src="../.gitbook/assets/actionbar/action-bar.png" alt="" width="563"><figcaption><p>Modules (Action Bar)</p></figcaption></figure> ## Messages With this option, you can change the messages shown in the action bar. Every entry is one message, and they are shown one after the other. <figure><img src="../.gitbook/assets/actionbar/messages.png" alt="" width="563"><figcaption><p>Action Bar (Messages)</p></figcaption></figure> ## Delay With this option, you can change the time it takes to rotate to the next message. <figure><img src="../.gitbook/assets/actionbar/delay.png" alt="" width="563"><figcaption><p>Action Bar (Delay)</p></figcaption></figure> ## Actions With this option, you can edit the actions that are executed every time the action bar rotates, which is handy for playing a sound alongside the message. Every [action type](../plugin-information/action-types.md) is available here. <figure><img src="../.gitbook/assets/actionbar/actions.png" alt="" width="563"><figcaption><p>Action Bar (Actions)</p></figcaption></figure> ## Feature State With this option, you can turn the action bar off completely without clearing the messages. <figure><img src="../.gitbook/assets/actionbar/feature-state.png" alt="" width="563"><figcaption><p>Action Bar (Feature State)</p></figcaption></figure> > **Info:** Players can hide the action bar for themselves, see [Player Settings](../featues/player-settings.md). Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/action-bar --- # 👥 Alt Protection > **Info:** This module is configured in **modules/alts.yml** inside the PhoenixLobby folder. ## Alt Protection Alt Protection counts the accounts connecting from the same address and turns away the ones over the limit. On the lobby the check runs before the player is fully connected, so a denied account never reaches the world, while the proxy kicks it the moment it logs in. Open it from **Editor > Modules > Alt Protection**. It works in two places. Without a proxy, the lobby counts the accounts on itself. On a proxy the alt protection lives on BungeeCord or Velocity, where it sees every server at once, and the lobby side stands down. Everyone with phoenixlobby.alts.bypass is let in no matter how many accounts share the address, phoenixlobby.alts.notify receives the alerts, and phoenixlobby.alts is needed to use the [command](#commands). Everything the module knows is also readable as [placeholders](alts/placeholders.md). <figure><img src="../.gitbook/assets/modules/alt-protection.png" alt="" width="563"><figcaption><p>Modules (Alt Protection)</p></figcaption></figure> ## Max Accounts Per Address With this option, you can set how many accounts may be connected from one address at the same time. The account that goes over the number is the one denied. A value of 0 turns the limit off and lets everyone in, while the alerts and the command keep working. <figure><img src="../.gitbook/assets/alt-protection/max-accounts-per-address.png" alt="" width="563"><figcaption><p>Alt Protection (Max Accounts Per Address)</p></figcaption></figure> ## Count Offline Accounts With this option, you can count every account ever seen on the address instead of only the ones connected right now. It changes the meaning of the limit from how many accounts may play together to how many accounts may exist behind one address at all, so a player who leaves does not free a slot. It needs the history on. <figure><img src="../.gitbook/assets/alt-protection/count-offline-accounts.png" alt="" width="563"><figcaption><p>Alt Protection (Count Offline Accounts)</p></figcaption></figure> ## Whitelisted Addresses With this option, you can list the addresses that are never limited, which is what a shared connection such as a school or an internet cafe needs. Local and private addresses are counted like any other, so a test server on the same machine needs its address in here. <figure><img src="../.gitbook/assets/alt-protection/whitelisted-addresses.png" alt="" width="563"><figcaption><p>Alt Protection (Whitelisted Addresses)</p></figcaption></figure> ## Exempt Players With this option, you can list the names or uuids that are never limited. It is the way to let one player keep a second account without handing out a permission. <figure><img src="../.gitbook/assets/alt-protection/exempt-players.png" alt="" width="563"><figcaption><p>Alt Protection (Exempt Players)</p></figcaption></figure> ## History With this option, you can remember every address a player connects from, so the command still answers for players that are offline. With it off only the players connected right now are known, and looking up an address, a summary or unlinking an address has nothing to answer with. <figure><img src="../.gitbook/assets/alt-protection/history.png" alt="" width="563"><figcaption><p>Alt Protection (History)</p></figcaption></figure> ## Forget After Days With this option, you can set how many days may pass without seeing an address before it is dropped from the history. Old addresses are cleaned out when the history is loaded on startup. A value of 0 keeps every address forever. <figure><img src="../.gitbook/assets/alt-protection/forget-after-days.png" alt="" width="563"><figcaption><p>Alt Protection (Forget After Days)</p></figcaption></figure> ## Save Interval Seconds With this option, you can set how often the remembered addresses are written to the disk. A lower value loses less if the server stops unexpectedly, a higher one writes less often. Nothing is written more often than every 20 seconds, and the file is written only when something changed. <figure><img src="../.gitbook/assets/alt-protection/save-interval-seconds.png" alt="" width="563"><figcaption><p>Alt Protection (Save Interval Seconds)</p></figcaption></figure> ## Alerts With this option, you can turn off every alert at once, without turning off the protection itself. The alerts go to the players with phoenixlobby.alts.notify, and to nobody else. <figure><img src="../.gitbook/assets/alt-protection/alerts.png" alt="" width="563"><figcaption><p>Alt Protection (Alerts)</p></figcaption></figure> ## Alert On Blocked With this option, you can be told when an account is denied for going over the limit. The alert names the address and the accounts that were already connected. <figure><img src="../.gitbook/assets/alt-protection/alert-on-blocked.png" alt="" width="563"><figcaption><p>Alt Protection (Alert On Blocked)</p></figcaption></figure> ## Alert On Join With this option, you can be told when a player joins while another account is linked to their address, even when nobody is denied. Together with a limit of 0 it turns the module into a watchlist that never kicks. <figure><img src="../.gitbook/assets/alt-protection/alert-on-join.png" alt="" width="563"><figcaption><p>Alt Protection (Alert On Join)</p></figcaption></figure> ## Geolocation With this option, you can allow an address to be sent to a lookup service to find out where it comes from. Nothing is sent until the command asks for it. With it off the lookup answers nothing and no address ever leaves the server. <figure><img src="../.gitbook/assets/alt-protection/geolocation.png" alt="" width="563"><figcaption><p>Alt Protection (Geolocation)</p></figcaption></figure> ## Geolocation Api Url With this option, you can change the service the addresses are located with. It has to contain %ip%, which is replaced with the address being looked up, and it has to answer with the same `country`, `regionName`, `city` and `isp` fields the default service does. The editor refuses a url without the placeholder. <figure><img src="../.gitbook/assets/alt-protection/geolocation-api-url.png" alt="" width="563"><figcaption><p>Alt Protection (Geolocation Api Url)</p></figcaption></figure> ## Geolocation Cache Minutes With this option, you can set for how long a result is kept before the same address is looked up again. Free services usually allow only a handful of requests per minute, so a higher value is the way to stay under their limit. <figure><img src="../.gitbook/assets/alt-protection/geolocation-cache-minutes.png" alt="" width="563"><figcaption><p>Alt Protection (Geolocation Cache Minutes)</p></figcaption></figure> ## Geolocation Timeout Millis With this option, you can set how long to wait for the lookup service before giving up. A failed lookup only means the location is unknown, it never denies anyone. <figure><img src="../.gitbook/assets/alt-protection/geolocation-timeout-millis.png" alt="" width="563"><figcaption><p>Alt Protection (Geolocation Timeout Millis)</p></figcaption></figure> ## Feature State With this option, you can turn the module off completely. The command stops working, the alerts stop, and nobody is limited. <figure><img src="../.gitbook/assets/alt-protection/feature-state.png" alt="" width="563"><figcaption><p>Alt Protection (Feature State)</p></figcaption></figure> > **Info:** The addresses are saved in the **alt-history.json** file inside the PhoenixLobby folder, so they survive a restart. On the proxy the same options live in its **config.yml** and the file is saved next to it instead. > **Warning:** phoenixlobby.alts.bypass has to be read before the player is connected, which only [LuckPerms](https://luckperms.net/) can answer. Without it installed the permission is ignored on the lobby and a warning is printed on startup, so use **Whitelisted Addresses** or **Exempt Players** instead. The proxy reads it on its own and needs nothing extra. ## Commands Every command needs phoenixlobby.alts. Which set answers depends on where the protection runs: on a network the proxy takes the command, and the lobby one replies that the proxy is in charge. **Lobby** | Command | Description | | ------------------------------------- | ------------------------------------------------------- | | `/alts <player>` | Lists the accounts linked to a player | | `/alts ip <player/address>` | Shows the addresses of a player, or who used an address | | `/alts info <player>` | Shows a summary of a player | | `/alts geo <player/address>` | Shows where an address is located | | `/alts remove <player> <address/all>` | Unlinks an address from a player | The settings are reloaded by `/phoenixlobby reload`, or on their own when you change them in the editor. **Proxy** | Command | Description | | ------------------------------------- | ------------------------------------------------------- | | `/alts <player>` | Lists the accounts linked to a player | | `/alts ip <player/address>` | Shows the addresses of a player, or who used an address | | `/alts info <player>` | Shows a summary of a player | | `/alts geo <player/address>` | Shows where an address is located | | `/alts remove <player> <address/all>` | Unlinks an address from a player | | `/alts reload` | Reloads the alt account settings | A player that has never been seen cannot be looked up, so the answers only reach as far back as the [History](#history) does. > **Info:** `/alts remove` only forgets an address. That frees a slot when **Count Offline Accounts** is on, and changes nothing otherwise, since the limit is then counting the accounts connected at that moment. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/alts --- # ⌨️ Commands Every command needs phoenixlobby.alts. Which set answers depends on where the protection runs: on a network the proxy takes the command, and the lobby one replies that the proxy is in charge. **Lobby** | Command | Description | | ------------------------------------- | ------------------------------------------------------- | | `/alts <player>` | Lists the accounts linked to a player | | `/alts ip <player/address>` | Shows the addresses of a player, or who used an address | | `/alts info <player>` | Shows a summary of a player | | `/alts geo <player/address>` | Shows where an address is located | | `/alts remove <player> <address/all>` | Unlinks an address from a player | The settings are reloaded by `/phoenixlobby reload`, or on their own when you change them in the editor. **Proxy** | Command | Description | | ------------------------------------- | ------------------------------------------------------- | | `/alts <player>` | Lists the accounts linked to a player | | `/alts ip <player/address>` | Shows the addresses of a player, or who used an address | | `/alts info <player>` | Shows a summary of a player | | `/alts geo <player/address>` | Shows where an address is located | | `/alts remove <player> <address/all>` | Unlinks an address from a player | | `/alts reload` | Reloads the alt account settings | A player that has never been seen cannot be looked up, so the answers only reach as far back as the [History](../alts.md#history) does. > **Info:** `/alts remove` only forgets an address. That frees a slot when **Count Offline Accounts** is on, and changes nothing otherwise, since the limit is then counting the accounts connected at that moment. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/alts/commands --- # 🔍 Placeholders These are [PlaceholderAPI](https://www.spigotmc.org/resources/placeholderapi.6245/) placeholders, so they work anywhere PlaceholderAPI is read, including the [scoreboard](../scoreboard.md), the [tablist](../tablist.md) and holograms. They all need the [Alt Protection](../alts.md) module enabled. Set **Max Accounts Per Address** to 0 if you want the numbers without anyone ever being denied. ## The player Every placeholder in this section reports on the player it is rendered for. | Placeholder | Returns | | ---------------------------------------- | ---------------------------------------------------------------- | | `%phoenixlobby_alts_has_alts%` | `true` / `false`, whether any other account is linked | | `%phoenixlobby_alts_count%` | How many other accounts are linked to this player | | `%phoenixlobby_alts_online_count%` | How many of them are connected right now | | `%phoenixlobby_alts_slots_left%` | How many more accounts may join from that address | | `%phoenixlobby_alts_names%` | The linked account names, up to three | | `%phoenixlobby_alts_addresses_count%` | How many addresses this player has been seen on | | `%phoenixlobby_alts_first_seen%` | When this player was first seen, as `2026-08-20 21:15` | | `%phoenixlobby_alts_last_seen%` | When this player was last seen | | `%phoenixlobby_alts_bypass%` | `true` / `false`, whether this player is exempt from the limit | | `%phoenixlobby_alts_address_masked%` | The address with its last two blocks hidden, as `87.213.x.x` | `has_alts` is the one to branch on when you want a marker next to a suspected alt in the tablist, since most plugins can switch on a `true` / `false` value. Over three linked accounts, `names` ends with **and 4 more**, taken from your translations file. `slots_left` returns -1 when the limit is off, so check that before showing it as a number. Adding a name reports on somebody else instead, which is what an admin menu or a hologram about another player needs. | Placeholder | Returns | | -------------------------------------- | -------------------------------------------------- | | `%phoenixlobby_alts_count_Notch%` | How many accounts are linked to that player | | `%phoenixlobby_alts_last_seen_Notch%` | When that player was last seen | Any of the placeholders above accepts a name this way. A player that has never been seen returns nothing. ## The server | Placeholder | Returns | | ---------------------------------------- | -------------------------------------------------------------- | | `%phoenixlobby_alts_enabled%` | `true` / `false`, whether the protection is running | | `%phoenixlobby_alts_managed_by%` | `lobby` or `proxy`, which side is in charge | | `%phoenixlobby_alts_limit%` | The configured accounts per address | | `%phoenixlobby_alts_tracked_players%` | How many players the history holds | | `%phoenixlobby_alts_tracked_addresses%` | How many addresses the history holds | | `%phoenixlobby_alts_blocked_total%` | How many joins were denied since the last restart | | `%phoenixlobby_alts_accounts_on_<address>%` | How many accounts have been seen on one address | ## Geolocation These report where an address is, using the same service and the same **Geolocation** options the `/alts geo` command uses. The field names match the ones the [Geolocation expansion](https://ecloud.placeholderapi.com/expansions/geolocation/) uses, so an existing setup can be moved over by renaming the prefix. | Placeholder | Example result | | ------------------------------------ | -------------------- | | `%phoenixlobby_geo_country%` | United States | | `%phoenixlobby_geo_countrycode%` | US | | `%phoenixlobby_geo_regionname%` | Virginia | | `%phoenixlobby_geo_region%` | VA | | `%phoenixlobby_geo_city%` | Chantilly | | `%phoenixlobby_geo_zip%` | 20151 | | `%phoenixlobby_geo_lat%` | 38.9036 | | `%phoenixlobby_geo_lon%` | -77.4512 | | `%phoenixlobby_geo_timezone%` | America/New\_York | | `%phoenixlobby_geo_isp%` | Example ISP | Each one also takes a name or an address, so `%phoenixlobby_geo_country_Notch%` and `%phoenixlobby_geo_country_1.2.3.4%` both work. > **Warning:** A location is never looked up while a placeholder is being rendered, because that would freeze the server for as long as the service takes to answer. The first request returns nothing and starts the lookup in the background, so the value appears a moment later and is then reused for as long as **Geolocation Cache Minutes** allows. Put these where a short delay on the first render is fine, not in a message a player reads once. > **Info:** The default lookup asks for every field above. A server that was set up before these placeholders existed still has the shorter list in its **Geolocation Api Url**, and the fields missing from it come back empty until they are added. ## Behind a proxy The proxy is the one counting accounts on a network, so the numbers come from there and cover every server at once rather than only this one. The lobby is sent them as they change, which means a lobby that has just started reports zeroes until the first update arrives. Two things stay on the lobby side. The geolocation placeholders are answered by the lobby from the address it sees, which needs ip forwarding turned on in your proxy, and `%phoenixlobby_alts_accounts_on_<address>%` only reads the lobby's own history. A player on another backend server cannot be looked up by name, since the lobby is only told about the players it is hosting. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/alts/placeholders --- # 🔔 Announcements > **Info:** This module is configured in **modules/announcements.yml** inside the PhoenixLobby folder. ## Announcements Announcements are messages sent to the chat on a timer. Open them from **Editor > Modules > Announcements**, where you can create, edit and delete them. <figure><img src="../.gitbook/assets/announcements/announcements.png" alt="" width="563"><figcaption><p>Modules (Announcements)</p></figcaption></figure> ## Add Announcement With this option, you can create a new announcement. Each one is its own entry, so the list rotates through all of them in order. <figure><img src="../.gitbook/assets/announcements/add-announcement.png" alt="" width="563"><figcaption><p>Announcements (Add Announcement)</p></figcaption></figure> Left-click an existing announcement to edit its lines, and every entry supports multiple lines so you can build a small block of text. <figure><img src="../.gitbook/assets/announcements/announcement-3.png" alt="" width="563"><figcaption><p>Announcements (Edit Announcement)</p></figcaption></figure> ## Delay With this option, you can change how long it takes before the next announcement is broadcasted. <figure><img src="../.gitbook/assets/announcements/delay.png" alt="" width="563"><figcaption><p>Announcements (Delay)</p></figcaption></figure> ## Required Players With this option, you can change how many players have to be online before announcements are broadcasted at all, which keeps an empty lobby quiet. <figure><img src="../.gitbook/assets/announcements/required-players.png" alt="" width="563"><figcaption><p>Announcements (Required Players)</p></figcaption></figure> ## Actions Every announcement also runs a list of [actions](../plugin-information/action-types.md) as it is sent, for each player who receives it. This is where the sound that plays with an announcement comes from: ```yaml actions: - '[SOUND] BLOCK_NOTE_BLOCK_PLING;1;1' ``` Change the sound by editing that line, or remove the entry to send announcements silently. The list is empty by default on the [action bar](action-bar.md) and the [bossbar](bossbar.md), which each have one of their own. Since these are ordinary actions, an announcement can do more than talk — play a title, run a command or open a menu alongside the message. ## Feature State With this option, you can turn announcements off completely without deleting them. <figure><img src="../.gitbook/assets/announcements/feature-state.png" alt="" width="563"><figcaption><p>Announcements (Feature State)</p></figcaption></figure> <figure><img src="../.gitbook/assets/Screenshot 2025-03-03 230800.png" alt="" width="563"><figcaption><p>Announcement In-Game</p></figcaption></figure> > **Info:** The same messages can also be shown above the hotbar, see [Action Bar](action-bar.md). Players can hide both for themselves, see [Player Settings](../featues/player-settings.md). Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/announcements --- # 🛡️ Anti Bot > **Info:** This module is configured in **modules/anti-bot.yml** inside the PhoenixLobby folder. ## Anti Bot Anti Bot watches the connections reaching this server and locks the lobby down when they arrive faster than a real player rush would produce. On top of that it can limit how many accounts share an address, how fast an address may reconnect, and which usernames are accepted. Open it from **Editor > Modules > Anti Bot**. Every check runs before the player is fully connected, which is the only point where refusing a bot costs the server nothing. That also means none of these checks can be bypassed with a permission. <figure><img src="../.gitbook/assets/modules/anti-bot.png" alt="" width="563"><figcaption><p>Modules (Anti Bot)</p></figcaption></figure> ## Max Joins With this option, you can change how many connections are allowed inside the interval before the lockdown starts. A lower value reacts sooner, but it is also more likely to trigger on the rush that follows a restart or an announcement. <figure><img src="../.gitbook/assets/anti-bot/max-joins.png" alt="" width="563"><figcaption><p>Anti Bot (Max Joins)</p></figcaption></figure> ## Interval With this option, you can change the time window, in seconds, the connections are counted in. The counter restarts as soon as a window passes without the limit being reached, so a slow trickle of players never adds up to a lockdown. <figure><img src="../.gitbook/assets/anti-bot/interval.png" alt="" width="563"><figcaption><p>Anti Bot (Interval)</p></figcaption></figure> ## Lockdown Duration With this option, you can change how many seconds a lockdown lasts. While it is on, only players that have already joined this server before are let in, and every further connection above the rate pushes the end of the lockdown further away, so an attack that keeps going never gets a window. <figure><img src="../.gitbook/assets/anti-bot/lockdown-duration.png" alt="" width="563"><figcaption><p>Anti Bot (Lockdown Duration)</p></figcaption></figure> ## Max Accounts Per IP With this option, you can change how many accounts may be online from the same address at the same time. Reconnecting on an account that is already counted does not take a second slot. A value of 0 turns the limit off. <figure><img src="../.gitbook/assets/anti-bot/max-accounts-per-ip.png" alt="" width="563"><figcaption><p>Anti Bot (Max Accounts Per IP)</p></figcaption></figure> ## Rejoin Delay With this option, you can change how many seconds an address has to wait between two connections. An address that stays quiet for 5 minutes is forgotten and starts fresh. A value of 0 turns the delay off. <figure><img src="../.gitbook/assets/anti-bot/rejoin-delay.png" alt="" width="563"><figcaption><p>Anti Bot (Rejoin Delay)</p></figcaption></figure> ## Nickname Check With this option, you can turn on the username filter, which denies every name that does not match the pattern below. It is off by default because it also denies Bedrock and cracked usernames, which do not follow the vanilla naming rules. <figure><img src="../.gitbook/assets/anti-bot/nickname-check.png" alt="" width="563"><figcaption><p>Anti Bot (Nickname Check)</p></figcaption></figure> ## Nickname Pattern With this option, you can change the regular expression every username has to match. The editor refuses a pattern it cannot compile. A broken pattern written straight into the file leaves the check off and is reported in the console instead. <figure><img src="../.gitbook/assets/anti-bot/nickname-pattern.png" alt="" width="563"><figcaption><p>Anti Bot (Nickname Pattern)</p></figcaption></figure> ## Notify Admins With this option, you can choose whether administrators with phoenixlobby.alert.antibot are told when a lockdown starts and when it ends. The start is written to the console either way. <figure><img src="../.gitbook/assets/anti-bot/notify-admins.png" alt="" width="563"><figcaption><p>Anti Bot (Notify Admins)</p></figcaption></figure> ## Feature State With this option, you can turn Anti Bot off completely without clearing the rest of the settings. <figure><img src="../.gitbook/assets/anti-bot/feature-state.png" alt="" width="563"><figcaption><p>Anti Bot (Feature State)</p></figcaption></figure> > **Warning:** **Max Accounts Per IP** and **Rejoin Delay** work with the address that reaches this server. Behind a proxy every connection carries the proxy address instead, so leave both at 0 until the real one is forwarded with `ip_forward` on BungeeCord, or `player-info-forwarding-mode` on Velocity. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/anti-bot --- # 🌐 Anti VPN > **Info:** This module is configured in **modules/anti-vpn.yml** inside the PhoenixLobby folder. ## Anti VPN Anti VPN looks up the address of every player that connects and denies the ones that come from a vpn, a proxy or a datacenter. The lookup happens before the player is fully connected, so a denied player never reaches the world. Open it from **Editor > Modules > Anti VPN**. Local and private addresses are never looked up, which is what a test server on the same machine needs. <figure><img src="../.gitbook/assets/settings/anti-vpn.png" alt="" width="563"><figcaption><p>Modules (Anti VPN)</p></figcaption></figure> ## Api Url With this option, you can change the service the addresses are checked against. It has to contain %ip%, which is replaced with the address that is connecting, and it has to answer with the same `proxy` and `hosting` fields the default service does. The editor refuses a url without the placeholder. <figure><img src="../.gitbook/assets/anti-vpn/api-url.png" alt="" width="563"><figcaption><p>Anti VPN (Api Url)</p></figcaption></figure> ## Block Proxies With this option, you can choose whether addresses the service flags as a vpn or a proxy are denied. <figure><img src="../.gitbook/assets/anti-vpn/block-proxies.png" alt="" width="563"><figcaption><p>Anti VPN (Block Proxies)</p></figcaption></figure> ## Block Hosting With this option, you can choose whether addresses owned by a datacenter or a hosting provider are denied. It is off by default, since some mobile carriers and school networks answer from ranges that are flagged this way. <figure><img src="../.gitbook/assets/anti-vpn/block-hosting.png" alt="" width="563"><figcaption><p>Anti VPN (Block Hosting)</p></figcaption></figure> ## Kick On Lookup Failure With this option, you can choose what happens when the service cannot be reached, answers with an error, or takes longer than the timeout. Off lets the player in, on denies them. The failure is written to the console either way. <figure><img src="../.gitbook/assets/anti-vpn/kick-on-lookup-failure.png" alt="" width="563"><figcaption><p>Anti VPN (Kick On Lookup Failure)</p></figcaption></figure> ## Cache Minutes With this option, you can change how long a result is kept before the same address is looked up again. A higher value spares the service on a busy lobby, at the cost of reacting later when an address changes owner. <figure><img src="../.gitbook/assets/anti-vpn/cache-minutes.png" alt="" width="563"><figcaption><p>Anti VPN (Cache Minutes)</p></figcaption></figure> ## Timeout Millis With this option, you can change how long to wait for the service before giving up. A player whose address is not cached yet waits for this before being let in, so a high value slows the join down when the service is having a bad day. <figure><img src="../.gitbook/assets/anti-vpn/timeout-millis.png" alt="" width="563"><figcaption><p>Anti VPN (Timeout Millis)</p></figcaption></figure> ## Whitelisted Addresses With this option, you can list the addresses that are never checked. Entries have to be the full address, ranges are not matched. <figure><img src="../.gitbook/assets/anti-vpn/whitelisted-addresses.png" alt="" width="563"><figcaption><p>Anti VPN (Whitelisted Addresses)</p></figcaption></figure> ## Notify Admins With this option, you can choose whether administrators with phoenixlobby.alert.antivpn are told, with the name and the address, when someone is denied. <figure><img src="../.gitbook/assets/anti-vpn/notify-admins.png" alt="" width="563"><figcaption><p>Anti VPN (Notify Admins)</p></figcaption></figure> ## Feature State With this option, you can turn Anti VPN off completely without clearing the rest of the settings. <figure><img src="../.gitbook/assets/anti-vpn/feature-state.png" alt="" width="563"><figcaption><p>Anti VPN (Feature State)</p></figcaption></figure> > **Warning:** phoenixlobby.bypass.antivpn has to be read before the player is connected, which only [LuckPerms](https://luckperms.net/) can answer. Without it installed the permission is ignored and a warning is printed on startup, so use **Whitelisted Addresses** instead. > **Info:** Behind a proxy this only works when the real player address is forwarded, so make sure `ip_forward` is on with BungeeCord, or `player-info-forwarding-mode` with Velocity. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/anti-vpn --- # 🗺️ Anti WDL > **Info:** This module is configured in **modules/anti-wdl.yml** inside the PhoenixLobby folder. ## Anti WDL A world downloader mod announces itself to the server as soon as the player joins, and asks whether it is allowed to save the world. Anti WDL answers that it is not, which turns the mod off for that player. Open it from **Editor > Modules > Anti WDL**. Players with phoenixlobby.bypass.antiwdl are left alone, which is what a builder taking a copy of the lobby needs. Nothing is kicked or cancelled, so a player that ignores the answer with a patched mod is still caught and reported, but not stopped. <figure><img src="../.gitbook/assets/settings/anti-wdl.png" alt="" width="563"><figcaption><p>Modules (Anti WDL)</p></figcaption></figure> ## Notify Admins With this option, you can choose whether administrators with phoenixlobby.alert.antiwdl are told which player joined with the mod. The attempt is also sent to the [logger](logger.md) either way. <figure><img src="../.gitbook/assets/anti-wdl/notify-admins.png" alt="" width="563"><figcaption><p>Anti WDL (Notify Admins)</p></figcaption></figure> ## Feature State With this option, you can turn Anti WDL off completely. <figure><img src="../.gitbook/assets/anti-wdl/feature-state.png" alt="" width="563"><figcaption><p>Anti WDL (Feature State)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/anti-wdl --- # 📶 Bossbar > **Info:** This module is configured in **modules/bossbar.yml** inside the PhoenixLobby folder. ## Bossbar A boss bar is the coloured bar drawn across the top of the screen. Every entry in this module is a bar of its own, with its own colour, style, rotation delay and list of messages, and they are all shown at the same time, stacked one under the other. Open it from **Editor > Modules > Boss Bar**. <figure><img src="../.gitbook/assets/modules/boss-bar.png" alt="" width="563"><figcaption><p>Modules (Boss Bar)</p></figcaption></figure> ## The bars Each bar in the list opens its own settings, covered under [Edit a Boss Bar](#edit-a-boss-bar). The green pane at the end of the row adds another one, and shift + right-clicking a bar deletes it. <figure><img src="../.gitbook/assets/boss-bar/boss-bar-1.png" alt="" width="563"><figcaption><p>Boss Bar (Boss Bar #1)</p></figcaption></figure> ## Actions With this option, you can edit the actions that are executed every time any bar rotates to its next message, which is what a sound playing alongside the change is doing. They run for every player currently seeing the bars. Every [action type](../plugin-information/action-types.md) is available here. <figure><img src="../.gitbook/assets/boss-bar/actions.png" alt="" width="563"><figcaption><p>Boss Bar (Actions)</p></figcaption></figure> ## Feature State With this option, you can turn every bar off at once without clearing the list. <figure><img src="../.gitbook/assets/boss-bar/feature-state.png" alt="" width="563"><figcaption><p>Boss Bar (Feature State)</p></figcaption></figure> <figure><img src="../.gitbook/assets/image (12).png" alt="" width="563"><figcaption><p>Bossbar - In-Game</p></figcaption></figure> > **Info:** Players can hide the bars for themselves with [`/togglebossbar`](../featues/player-settings.md), and the bars are removed as soon as somebody walks into a world the plugin is not active in. ## Edit a Boss Bar Clicking a bar in **Editor > Modules > Boss Bar** opens its own settings. Everything here applies to that one bar, so two bars can rotate at different speeds, in different colours, at the same time. ### Color With this option, you can change the colour of the bar. Seven are available: Pink, Blue, Red, Green, Yellow, Purple and White. They are fixed by Minecraft, so a hex colour is not possible here. <figure><img src="../.gitbook/assets/edit-boss-bar/color.png" alt="" width="563"><figcaption><p>Edit a Boss Bar (Color)</p></figcaption></figure> ### Style With this option, you can change how many segments the bar is split into. Solid draws it as one unbroken bar, and Segmented 6, Segmented 10, Segmented 12 and Segmented 20 cut it into that many notches. <figure><img src="../.gitbook/assets/edit-boss-bar/style.png" alt="" width="563"><figcaption><p>Edit a Boss Bar (Style)</p></figcaption></figure> ### Delay With this option, you can change how many seconds a message stays up before the bar moves to the next one. <figure><img src="../.gitbook/assets/edit-boss-bar/delay.png" alt="" width="563"><figcaption><p>Edit a Boss Bar (Delay)</p></figcaption></figure> ### Messages With this option, you can edit the messages this bar cycles through, in the order they are listed. PlaceholderAPI placeholders work here. <figure><img src="../.gitbook/assets/edit-boss-bar/messages.png" alt="" width="563"><figcaption><p>Edit a Boss Bar (Messages)</p></figcaption></figure> > **Info:** A bar left with a single message never rotates, so **Delay** and the module's [actions](#actions) do nothing for it. That is the way to keep one line permanently on screen. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/bossbar --- # 🖌️ Edit a Boss Bar ## Edit a Boss Bar Clicking a bar in **Editor > Modules > Boss Bar** opens its own settings. Everything here applies to that one bar, so two bars can rotate at different speeds, in different colours, at the same time. ## Color With this option, you can change the colour of the bar. Seven are available: Pink, Blue, Red, Green, Yellow, Purple and White. They are fixed by Minecraft, so a hex colour is not possible here. <figure><img src="../../.gitbook/assets/edit-boss-bar/color.png" alt="" width="563"><figcaption><p>Edit a Boss Bar (Color)</p></figcaption></figure> ## Style With this option, you can change how many segments the bar is split into. Solid draws it as one unbroken bar, and Segmented 6, Segmented 10, Segmented 12 and Segmented 20 cut it into that many notches. <figure><img src="../../.gitbook/assets/edit-boss-bar/style.png" alt="" width="563"><figcaption><p>Edit a Boss Bar (Style)</p></figcaption></figure> ## Delay With this option, you can change how many seconds a message stays up before the bar moves to the next one. <figure><img src="../../.gitbook/assets/edit-boss-bar/delay.png" alt="" width="563"><figcaption><p>Edit a Boss Bar (Delay)</p></figcaption></figure> ## Messages With this option, you can edit the messages this bar cycles through, in the order they are listed. PlaceholderAPI placeholders work here. <figure><img src="../../.gitbook/assets/edit-boss-bar/messages.png" alt="" width="563"><figcaption><p>Edit a Boss Bar (Messages)</p></figcaption></figure> > **Info:** A bar left with a single message never rotates, so **Delay** and the module's [actions](../bossbar.md#actions) do nothing for it. That is the way to keep one line permanently on screen. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/bossbar/edit-boss-bar --- # 💬 Chat > **Info:** This module is configured in **modules/chat.yml** inside the PhoenixLobby folder. ## Chat The chat module handles how messages look and how often they can be sent. Open it from **Editor > Modules > Chat**. <figure><img src="../.gitbook/assets/chat/chat.png" alt="" width="563"><figcaption><p>Modules (Chat)</p></figcaption></figure> The checks that block a message before it reaches the chat are [Anti Spam](#anti-spam) and [Chat Filter](#chat-filter). ## Format With this option, you can change the format every chat message is built with. Use %display\_name% for the sender and %message% for what they typed. <figure><img src="../.gitbook/assets/chat/format.png" alt="" width="563"><figcaption><p>Chat (Format)</p></figcaption></figure> <figure><img src="../.gitbook/assets/image (81).png" alt="" width="563"><figcaption><p>Chat Format - In-Game</p></figcaption></figure> ## Cooldown With this option, you can change the cooldown between messages, which acts as a slow mode. <figure><img src="../.gitbook/assets/chat/cooldown.png" alt="" width="563"><figcaption><p>Chat (Cooldown)</p></figcaption></figure> ## Feature State With this option, you can turn the chat handling off, which leaves messages to whatever other plugin you use. <figure><img src="../.gitbook/assets/chat/feature-state.png" alt="" width="563"><figcaption><p>Chat (Feature State)</p></figcaption></figure> ## Anti Spam Anti Spam blocks the messages that annoy the rest of your players. Each check can be turned off on its own in **Editor > Modules > Chat > Anti Spam**. Players with `phoenixlobby.bypass.antispam` are not checked. <figure><img src="../.gitbook/assets/chat/anti-spam.png" alt="" width="563"><figcaption><p>Chat (Anti Spam)</p></figcaption></figure> ### Repeated Messages Blocks a message that is too similar to the last ones the player sent. **Repeated Messages History** is how many of their previous messages are compared, and **Similarity Percentage** is how close a message has to be before it counts as a repeat. <figure><img src="../.gitbook/assets/anti-spam/block-repeated-messages.png" alt="" width="563"><figcaption><p>Anti Spam (Block Repeated Messages)</p></figcaption></figure> <figure><img src="../.gitbook/assets/anti-spam/repeated-messages-history.png" alt="" width="563"><figcaption><p>Anti Spam (Repeated Messages History)</p></figcaption></figure> <figure><img src="../.gitbook/assets/anti-spam/similarity-percentage.png" alt="" width="563"><figcaption><p>Anti Spam (Similarity Percentage)</p></figcaption></figure> ### Caps Blocks a message with too many capital letters. **Caps Minimum Length** keeps short messages out of the check, and **Caps Percentage** is how much of the message has to be uppercase before it is blocked. <figure><img src="../.gitbook/assets/anti-spam/block-caps.png" alt="" width="563"><figcaption><p>Anti Spam (Block Caps)</p></figcaption></figure> <figure><img src="../.gitbook/assets/anti-spam/caps-minimum-length.png" alt="" width="563"><figcaption><p>Anti Spam (Caps Minimum Length)</p></figcaption></figure> <figure><img src="../.gitbook/assets/anti-spam/caps-percentage.png" alt="" width="563"><figcaption><p>Anti Spam (Caps Percentage)</p></figcaption></figure> ### Character Flood Blocks a message with the same character repeated too many times, with **Max Repeated Characters** setting the limit. <figure><img src="../.gitbook/assets/anti-spam/block-character-flood.png" alt="" width="563"><figcaption><p>Anti Spam (Block Character Flood)</p></figcaption></figure> <figure><img src="../.gitbook/assets/anti-spam/max-repeated-characters.png" alt="" width="563"><figcaption><p>Anti Spam (Max Repeated Characters)</p></figcaption></figure> ### Feature State Turns every Anti Spam check off at once. <figure><img src="../.gitbook/assets/anti-spam/feature-state.png" alt="" width="563"><figcaption><p>Anti Spam (Feature State)</p></figcaption></figure> ## Chat Filter The chat filter blocks the messages that match one of your patterns. The two default patterns block links and ip addresses. Open it from **Editor > Modules > Chat > Chat Filter**. Players with `phoenixlobby.bypass.chatfilter` are not checked. <figure><img src="../.gitbook/assets/chat/chat-filter.png" alt="" width="563"><figcaption><p>Chat (Chat Filter)</p></figcaption></figure> ### Patterns The list of patterns a message is checked against. <figure><img src="../.gitbook/assets/chat-filter/patterns.png" alt="" width="563"><figcaption><p>Chat Filter (Patterns)</p></figcaption></figure> ### Censor Matches Turn this on to replace the matched part with the censor character instead of blocking the whole message. **Censor Character** is what the match is replaced with. <figure><img src="../.gitbook/assets/chat-filter/censor-matches.png" alt="" width="563"><figcaption><p>Chat Filter (Censor Matches)</p></figcaption></figure> <figure><img src="../.gitbook/assets/chat-filter/censor-character.png" alt="" width="563"><figcaption><p>Chat Filter (Censor Character)</p></figcaption></figure> ### Case Insensitive With this on, a pattern matches no matter how the message is capitalised. <figure><img src="../.gitbook/assets/chat-filter/case-insensitive.png" alt="" width="563"><figcaption><p>Chat Filter (Case Insensitive)</p></figcaption></figure> ### Feature State Turns the chat filter off without clearing the patterns. <figure><img src="../.gitbook/assets/chat-filter/feature-state.png" alt="" width="563"><figcaption><p>Chat Filter (Feature State)</p></figcaption></figure> > **Info:** The patterns are regular expressions, so a plain word works as well as a full pattern. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/chat --- # 🛑 Anti Spam > **Info:** This module is configured in **modules/chat.yml** inside the PhoenixLobby folder. ## Anti Spam Anti Spam blocks the messages that annoy the rest of your players. Each check can be turned off on its own in **Editor > Modules > Chat > Anti Spam**. Players with `phoenixlobby.bypass.antispam` are not checked. <figure><img src="../../.gitbook/assets/chat/anti-spam.png" alt="" width="563"><figcaption><p>Chat (Anti Spam)</p></figcaption></figure> ## Repeated Messages Blocks a message that is too similar to the last ones the player sent. **Repeated Messages History** is how many of their previous messages are compared, and **Similarity Percentage** is how close a message has to be before it counts as a repeat. <figure><img src="../../.gitbook/assets/anti-spam/block-repeated-messages.png" alt="" width="563"><figcaption><p>Anti Spam (Block Repeated Messages)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/anti-spam/repeated-messages-history.png" alt="" width="563"><figcaption><p>Anti Spam (Repeated Messages History)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/anti-spam/similarity-percentage.png" alt="" width="563"><figcaption><p>Anti Spam (Similarity Percentage)</p></figcaption></figure> ## Caps Blocks a message with too many capital letters. **Caps Minimum Length** keeps short messages out of the check, and **Caps Percentage** is how much of the message has to be uppercase before it is blocked. <figure><img src="../../.gitbook/assets/anti-spam/block-caps.png" alt="" width="563"><figcaption><p>Anti Spam (Block Caps)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/anti-spam/caps-minimum-length.png" alt="" width="563"><figcaption><p>Anti Spam (Caps Minimum Length)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/anti-spam/caps-percentage.png" alt="" width="563"><figcaption><p>Anti Spam (Caps Percentage)</p></figcaption></figure> ## Character Flood Blocks a message with the same character repeated too many times, with **Max Repeated Characters** setting the limit. <figure><img src="../../.gitbook/assets/anti-spam/block-character-flood.png" alt="" width="563"><figcaption><p>Anti Spam (Block Character Flood)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/anti-spam/max-repeated-characters.png" alt="" width="563"><figcaption><p>Anti Spam (Max Repeated Characters)</p></figcaption></figure> ## Feature State Turns every Anti Spam check off at once. <figure><img src="../../.gitbook/assets/anti-spam/feature-state.png" alt="" width="563"><figcaption><p>Anti Spam (Feature State)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/chat/anti-spam --- # 🔎 Chat Filter > **Info:** This module is configured in **modules/chat.yml** inside the PhoenixLobby folder. ## Chat Filter The chat filter blocks the messages that match one of your patterns. The two default patterns block links and ip addresses. Open it from **Editor > Modules > Chat > Chat Filter**. Players with `phoenixlobby.bypass.chatfilter` are not checked. <figure><img src="../../.gitbook/assets/chat/chat-filter.png" alt="" width="563"><figcaption><p>Chat (Chat Filter)</p></figcaption></figure> ## Patterns The list of patterns a message is checked against. <figure><img src="../../.gitbook/assets/chat-filter/patterns.png" alt="" width="563"><figcaption><p>Chat Filter (Patterns)</p></figcaption></figure> ## Censor Matches Turn this on to replace the matched part with the censor character instead of blocking the whole message. **Censor Character** is what the match is replaced with. <figure><img src="../../.gitbook/assets/chat-filter/censor-matches.png" alt="" width="563"><figcaption><p>Chat Filter (Censor Matches)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/chat-filter/censor-character.png" alt="" width="563"><figcaption><p>Chat Filter (Censor Character)</p></figcaption></figure> ## Case Insensitive With this on, a pattern matches no matter how the message is capitalised. <figure><img src="../../.gitbook/assets/chat-filter/case-insensitive.png" alt="" width="563"><figcaption><p>Chat Filter (Case Insensitive)</p></figcaption></figure> ## Feature State Turns the chat filter off without clearing the patterns. <figure><img src="../../.gitbook/assets/chat-filter/feature-state.png" alt="" width="563"><figcaption><p>Chat Filter (Feature State)</p></figcaption></figure> > **Info:** The patterns are regular expressions, so a plain word works as well as a full pattern. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/chat/chat-filter --- # 💬 Chat > **Info:** This module is configured in **modules/chat.yml** inside the PhoenixLobby folder. ## Chat The chat module handles how messages look and how often they can be sent. Open it from **Editor > Settings > Chat**. <figure><img src="../../.gitbook/assets/chat/chat.png" alt="" width="563"><figcaption><p>Settings (Chat)</p></figcaption></figure> The checks that block a message before it reaches the chat have their own pages: * Anti Spam - [Click Here](anti-spam.md) * Chat Filter - [Click Here](chat-filter.md) ## Format With this option, you can change the format every chat message is built with. Use %display\_name% for the sender and %message% for what they typed. <figure><img src="../../.gitbook/assets/chat/format.png" alt="" width="563"><figcaption><p>Chat (Format)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/image (81).png" alt=""><figcaption><p>Chat Format - In-Game</p></figcaption></figure> ## Cooldown With this option, you can change the cooldown between messages, which acts as a slow mode. <figure><img src="../../.gitbook/assets/chat/cooldown.png" alt="" width="563"><figcaption><p>Chat (Cooldown)</p></figcaption></figure> ## Feature State With this option, you can turn the chat handling off, which leaves messages to whatever other plugin you use. <figure><img src="../../.gitbook/assets/chat/feature-state.png" alt="" width="563"><figcaption><p>Chat (Feature State)</p></figcaption></figure> <details> <summary>Chat Config</summary> ```yaml enabled: true format: §7%display_name% §8> §f%message% cooldown-seconds: 2 ``` </details> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/chat --- # 🛑 Anti Spam > **Info:** This module is configured in **modules/chat.yml** inside the PhoenixLobby folder. ## Anti Spam Anti Spam blocks the messages that annoy the rest of your players. Each check can be turned off on its own in **Editor > Settings > Chat > Anti Spam**. Players with `phoenixlobby.bypass.antispam` are not checked. <figure><img src="../../.gitbook/assets/chat/anti-spam.png" alt="" width="563"><figcaption><p>Chat (Anti Spam)</p></figcaption></figure> ## Repeated Messages Blocks a message that is too similar to the last ones the player sent. **Repeated Messages History** is how many of their previous messages are compared, and **Similarity Percentage** is how close a message has to be before it counts as a repeat. <figure><img src="../../.gitbook/assets/anti-spam/block-repeated-messages.png" alt="" width="563"><figcaption><p>Anti Spam (Block Repeated Messages)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/anti-spam/repeated-messages-history.png" alt="" width="563"><figcaption><p>Anti Spam (Repeated Messages History)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/anti-spam/similarity-percentage.png" alt="" width="563"><figcaption><p>Anti Spam (Similarity Percentage)</p></figcaption></figure> ## Caps Blocks a message with too many capital letters. **Caps Minimum Length** keeps short messages out of the check, and **Caps Percentage** is how much of the message has to be uppercase before it is blocked. <figure><img src="../../.gitbook/assets/anti-spam/block-caps.png" alt="" width="563"><figcaption><p>Anti Spam (Block Caps)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/anti-spam/caps-minimum-length.png" alt="" width="563"><figcaption><p>Anti Spam (Caps Minimum Length)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/anti-spam/caps-percentage.png" alt="" width="563"><figcaption><p>Anti Spam (Caps Percentage)</p></figcaption></figure> ## Character Flood Blocks a message with the same character repeated too many times, with **Max Repeated Characters** setting the limit. <figure><img src="../../.gitbook/assets/anti-spam/block-character-flood.png" alt="" width="563"><figcaption><p>Anti Spam (Block Character Flood)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/anti-spam/max-repeated-characters.png" alt="" width="563"><figcaption><p>Anti Spam (Max Repeated Characters)</p></figcaption></figure> ## Feature State Turns every Anti Spam check off at once. <figure><img src="../../.gitbook/assets/anti-spam/feature-state.png" alt="" width="563"><figcaption><p>Anti Spam (Feature State)</p></figcaption></figure> <details> <summary>Anti Spam Config</summary> ```yaml anti-spam: enabled: true block-repeated-messages: true repeated-messages-history: 3 similarity-percentage: 90 block-caps: true caps-minimum-length: 8 caps-percentage: 70 block-character-flood: true max-repeated-characters: 5 ``` </details> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/chat-resync/anti-spam --- # 🔎 Chat Filter > **Info:** This module is configured in **modules/chat.yml** inside the PhoenixLobby folder. ## Chat Filter The chat filter blocks the messages that match one of your patterns. The two default patterns block links and ip addresses. Open it from **Editor > Settings > Chat > Chat Filter**. Players with `phoenixlobby.bypass.chatfilter` are not checked. <figure><img src="../../.gitbook/assets/chat/chat-filter.png" alt="" width="563"><figcaption><p>Chat (Chat Filter)</p></figcaption></figure> ## Patterns The list of patterns a message is checked against. <figure><img src="../../.gitbook/assets/chat-filter/patterns.png" alt="" width="563"><figcaption><p>Chat Filter (Patterns)</p></figcaption></figure> ## Censor Matches Turn this on to replace the matched part with the censor character instead of blocking the whole message. **Censor Character** is what the match is replaced with. <figure><img src="../../.gitbook/assets/chat-filter/censor-matches.png" alt="" width="563"><figcaption><p>Chat Filter (Censor Matches)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/chat-filter/censor-character.png" alt="" width="563"><figcaption><p>Chat Filter (Censor Character)</p></figcaption></figure> ## Case Insensitive With this on, a pattern matches no matter how the message is capitalised. <figure><img src="../../.gitbook/assets/chat-filter/case-insensitive.png" alt="" width="563"><figcaption><p>Chat Filter (Case Insensitive)</p></figcaption></figure> ## Feature State Turns the chat filter off without clearing the patterns. <figure><img src="../../.gitbook/assets/chat-filter/feature-state.png" alt="" width="563"><figcaption><p>Chat Filter (Feature State)</p></figcaption></figure> <details> <summary>Chat Filter Config</summary> ```yaml filter: enabled: true case-insensitive: true censor-matches: false censor-character: '*' patterns: - (?:https?://)?(?:[\w-]+\.)+(?:com|net|org|gg|io|me|tv|xyz)(?:/\S*)? - \b(?:\d{1,3}\.){3}\d{1,3}(?::\d{1,5})?\b ``` </details> > **Info:** The patterns are regular expressions, so a plain word works as well as a full pattern. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/chat-resync/chat-filter --- # 💬 Chat > **Info:** This module is configured in **modules/chat.yml** inside the PhoenixLobby folder. ## Chat The chat module handles how messages look and how often they can be sent. Open it from **Editor > Settings > Chat**. <figure><img src="../../.gitbook/assets/chat/chat.png" alt="" width="563"><figcaption><p>Settings (Chat)</p></figcaption></figure> The checks that block a message before it reaches the chat have their own pages: * Anti Spam - [Click Here](anti-spam.md) * Chat Filter - [Click Here](chat-filter.md) ## Format With this option, you can change the format every chat message is built with. Use %display\_name% for the sender and %message% for what they typed. <figure><img src="../../.gitbook/assets/chat/format.png" alt="" width="563"><figcaption><p>Chat (Format)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/image (81).png" alt=""><figcaption><p>Chat Format - In-Game</p></figcaption></figure> ## Cooldown With this option, you can change the cooldown between messages, which acts as a slow mode. <figure><img src="../../.gitbook/assets/chat/cooldown.png" alt="" width="563"><figcaption><p>Chat (Cooldown)</p></figcaption></figure> ## Feature State With this option, you can turn the chat handling off, which leaves messages to whatever other plugin you use. <figure><img src="../../.gitbook/assets/chat/feature-state.png" alt="" width="563"><figcaption><p>Chat (Feature State)</p></figcaption></figure> <details> <summary>Chat Config</summary> ```yaml enabled: true format: §7%display_name% §8> §f%message% cooldown-seconds: 2 ``` </details> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/chat-resync --- # 🚫 Command Blocker > **Info:** This module is configured in **modules/command-blocker.yml** inside the PhoenixLobby folder. ## Command Blocker The command blocker stops players from running the commands you list. It also hides them from the tab completion, so a blocked command is never suggested while typing and never completes its arguments either. Open it from **Editor > Modules > Command Blocker**. Players with phoenixlobby.bypass.commandblocker keep using every command. The blocker only applies inside the [lobby worlds](world-protection.md), so a player that walks into a world the plugin is not active in gets the commands back. <figure><img src="../.gitbook/assets/settings/command-blocker.png" alt="" width="563"><figcaption><p>Modules (Command Blocker)</p></figcaption></figure> ## Blocked Commands With this option, you can edit the list of blocked commands. Entries are matched against the command name only, so the arguments do not matter, and the case does not either. A `*` stands for anything, so `bukkit:*` blocks every command of that namespace and `world*` blocks `worldedit` along with `worldguard`. An entry without a namespace also catches the namespaced form of the same command, so `plugins` blocks `bukkit:plugins` too. The opposite is not true: `bukkit:plugins` leaves the plain `plugins` alone. <figure><img src="../.gitbook/assets/command-blocker/blocked-commands.png" alt="" width="563"><figcaption><p>Command Blocker (Blocked Commands)</p></figcaption></figure> ## Feature State With this option, you can turn the command blocker off completely without clearing the list. <figure><img src="../.gitbook/assets/command-blocker/feature-state.png" alt="" width="563"><figcaption><p>Command Blocker (Feature State)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/command-blocker --- # 🕊️ Double Jump > **Info:** This module is configured in **modules/double-jump.yml** inside the PhoenixLobby folder. ## Double Jump With Double Jump, players press space twice to launch themselves forward, similar to a jetpack. The jump is given back as soon as they land on a solid block. Open it from **Editor > Modules > Double Jump**. <figure><img src="../.gitbook/assets/double-jump/double-jump.png" alt="" width="563"><figcaption><p>Modules (Double Jump)</p></figcaption></figure> ## Cooldown With this option, you can change how many seconds a player has to wait before jumping again. <figure><img src="../.gitbook/assets/double-jump/cooldown.png" alt="" width="563"><figcaption><p>Double Jump (Cooldown)</p></figcaption></figure> ## Forward Power With this option, you can change how far the player is thrown, in the direction they are looking. A higher value sends them further. <figure><img src="../.gitbook/assets/double-jump/forward-power.png" alt="" width="563"><figcaption><p>Double Jump (Forward Power)</p></figcaption></figure> ## Up Power With this option, you can change how high the player is thrown. <figure><img src="../.gitbook/assets/double-jump/up-power.png" alt="" width="563"><figcaption><p>Double Jump (Up Power)</p></figcaption></figure> > **Info:** Both powers are capped at 4. Higher values are ignored. ## Effect Type With this option, you can change the particle effect that follows the player after the jump. Five effects are available: None, Spiral, Double Spiral, Noise and Trail. <figure><img src="../.gitbook/assets/double-jump/effect-type.png" alt="" width="563"><figcaption><p>Double Jump (Effect Type)</p></figcaption></figure> ## Actions With this option, you can edit the actions that are executed every time a player double jumps, which is handy for playing a sound alongside the launch. Every [action type](../plugin-information/action-types.md) is available here. <figure><img src="../.gitbook/assets/double-jump/actions.png" alt="" width="563"><figcaption><p>Double Jump (Actions)</p></figcaption></figure> ## Feature State With this option, you can turn the double jump off completely without clearing the rest of the settings. <figure><img src="../.gitbook/assets/double-jump/feature-state.png" alt="" width="563"><figcaption><p>Double Jump (Feature State)</p></figcaption></figure> ## Permission By default every player can double jump. Turning the permission requirement on in the config limits it to players with phoenixlobby.doublejump.use. Players with phoenixlobby.bypass.doublejump always wait 1 second instead of the configured cooldown. <figure><img src="../.gitbook/assets/additional_double_jump-ezgif.com-video-to-gif-converter.gif" alt="" width="563"><figcaption><p>Double Jump - In-Game</p></figcaption></figure> > **Warning:** Double jump is skipped for players in creative or spectator mode, for players kept flying by [Fly on Join](join-actions.md), and while fighting if the [PvP](lobby-pvp.md) restrictions disable it. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/double-jump --- # 🗨️ On Join > **Info:** This module is configured in **modules/join-actions.yml** inside the PhoenixLobby folder. ## Skip On World Change Everything on this page normally runs when a player arrives in the lobby, and a player walking back in from another world counts as arriving. With this option on — and it is on by default — none of it runs unless the player has actually just connected to the server. Turn it off when the lobby should reset a player every time they step back into it, for example to hand the hotbar items back after a trip into a survival world. <figure><img src="../.gitbook/assets/on-join/skip-on-world-change.png" alt="" width="563"><figcaption><p>On Join (Skip On World Change)</p></figcaption></figure> ## Teleport Spawn Send the player to the spawn point when they connect. With no spawn point set the player lands wherever the server put them. Spawn points and permission-based spawn groups are covered in [Set Lobby](../featues/set-lobby.md). <figure><img src="../.gitbook/assets/on-join/teleport-spawn.png" alt="" width="563"><figcaption><p>On Join (Teleport Spawn)</p></figcaption></figure> ## Teleport Spawn: Same World Only Restrict that teleport to players who are already in the same world as the spawn point. Use it when the server also holds worlds the lobby should not pull players out of, such as a survival world behind a portal. <figure><img src="../.gitbook/assets/on-join/teleport-spawn-same-world-only.png" alt="" width="563"><figcaption><p>On Join (Teleport Spawn: Same World Only)</p></figcaption></figure> ## Clear Inventory Empty the player's inventory on join, before the hotbar items are given out. <figure><img src="../.gitbook/assets/on-join/clear-inventory.png" alt="" width="563"><figcaption><p>On Join (Clear Inventory)</p></figcaption></figure> ## Restore Inventory Keep the inventory a player carried into a disabled world and hand it back when they return to it. Nothing is stored while this is off, so turning it on does not recover inventories that were already cleared. <figure><img src="../.gitbook/assets/on-join/restore-inventory.png" alt="" width="563"><figcaption><p>On Join (Restore Inventory)</p></figcaption></figure> ## Remove Effects Strip every active potion effect on join. The player's health is restored to full either way. <figure><img src="../.gitbook/assets/on-join/remove-effects.png" alt="" width="563"><figcaption><p>On Join (Remove effects)</p></figcaption></figure> ## Lobby Items Give the player the hotbar items. The items themselves, and the worlds they are handed out in, are covered in [Hotbar Items](../featues/hotbar-items.md). <figure><img src="../.gitbook/assets/on-join/lobby-items.png" alt="" width="563"><figcaption><p>On Join (Lobby Items)</p></figcaption></figure> ## Stand Down In Duels Worlds Leave the lobby items out of the worlds where the PhoenixDuels Lobby Items add-on hands out its own hotbar, and skip Clear Inventory there, so the two hotbars never overwrite each other. A player walking into one of those worlds loses the lobby items and gets them back on the way out. It is on by default, and has no effect without that add-on. ## Fly on Join Put the player straight into flight. It is off by default, and the permission next to it gates who gets it. An empty permission gives it to everyone. Players joining a disabled world never get it. <figure><img src="../.gitbook/assets/on-join/fly-on-join.png" alt="" width="563"><figcaption><p>On Join (Fly on Join)</p></figcaption></figure> ## On Join Firework Launch a firework where the player lands. The shape, the power, the trail and flicker, the colours and whether it is limited to a first join are all set behind it. The firework is spawned at the player's own position once they are on the ground, so with **Teleport Spawn** enabled it goes off at the spawn point rather than where the server first dropped them. A player landing in a disabled world gets nothing, and walking back out of a disabled world into a lobby world launches it again. <figure><img src="../.gitbook/assets/on-join/edit-firework.png" alt="" width="563"><figcaption><p>On Join (Edit Firework)</p></figcaption></figure> ### Feature State Turn the firework on or off. Everything below it stays saved while it is off. ### First Join Only Limit the firework to a player's very first connection, so returning players never see one. With this on the firework is also skipped when a player walks out of a disabled world, since that is not a first join. <figure><img src="../.gitbook/assets/on-join-firework/first-join-only.png" alt="" width="563"><figcaption><p>On Join Firework (First Join Only)</p></figcaption></figure> ### Type The shape the burst takes. **Ball** and **Ball Large** are the round bursts, **Star** and **Creeper** are the shaped ones, and **Burst** is the flat spray. <figure><img src="../.gitbook/assets/on-join-firework/type.png" alt="" width="563"><figcaption><p>On Join Firework (Type)</p></figcaption></figure> ### Power How long the rocket climbs before it bursts. A higher value sends the burst further above the player's head, and 0 makes it go off at their feet. <figure><img src="../.gitbook/assets/on-join-firework/power.png" alt="" width="563"><figcaption><p>On Join Firework (Power)</p></figcaption></figure> ### Flicker Add the twinkle that keeps the burst sparking after it opens. <figure><img src="../.gitbook/assets/on-join-firework/flicker.png" alt="" width="563"><figcaption><p>On Join Firework (Flicker)</p></figcaption></figure> ### Trail Add the tail the particles drag behind them as they fall. <figure><img src="../.gitbook/assets/on-join-firework/trail.png" alt="" width="563"><figcaption><p>On Join Firework (Trail)</p></figcaption></figure> ### Colors The colours the burst is made of. They are picked from a named list far wider than the sixteen dyes, so a burst can be built out of shades such as Crimson or Cornflower Blue. Every colour in the list appears in the same burst, and a list left empty launches the rocket with no colour of its own. <figure><img src="../.gitbook/assets/on-join-firework/colors.png" alt="" width="563"><figcaption><p>On Join Firework (Colors)</p></figcaption></figure> ## First Join Actions Actions that run once, the first time a player ever connects. Use them for a welcome broadcast or for handing out a starting rank. Every action type is listed in [Action Types](../plugin-information/action-types.md). <figure><img src="../.gitbook/assets/on-join/first-join-actions.png" alt="" width="563"><figcaption><p>On Join (First Join Actions)</p></figcaption></figure> ## Every Join Actions Actions that run on every connect, including the first one, after the first join actions. <figure><img src="../.gitbook/assets/on-join/every-join-actions.png" alt="" width="563"><figcaption><p>On Join (Every Join Actions)</p></figcaption></figure> ## Join and Quit Messages What the rest of the server sees when a player connects or disconnects, and how to give a rank its own pair. The vanilla connect and disconnect messages are always suppressed. What the server sees instead comes from the actions below, so a group can broadcast a line, play a sound, or do both. <figure><img src="../.gitbook/assets/join-quit-messages/join-quit-messages.png" alt="" width="563"><figcaption><p>On Join (Join & Quit Messages)</p></figcaption></figure> > **Warning:** These only fire on a server that is not connected to a proxy running PhoenixLobby. Once it is, they stand down and the proxy announces instead, with [Join and Leave Messages](../set-up/setup-with-proxy.md#join-and-leave-messages). ### Message Groups **default** is the pair everyone gets. Add a group next to it to give a rank its own, then set its permission. Groups are checked in the order they appear and the first one the player holds wins, so put the rarest rank first. A player holding none of them falls back to **default**. <figure><img src="../.gitbook/assets/join-quit-messages/message-group.png" alt="" width="563"><figcaption><p>Join & Quit Messages (Message Group)</p></figcaption></figure> ### Join Actions What runs when a player of this group connects. An empty list announces nothing, which is how you silence a rank's connect message without silencing everyone's. Every action type is listed in [Action Types](../plugin-information/action-types.md). <figure><img src="../.gitbook/assets/join-quit-messages/join-actions.png" alt="" width="563"><figcaption><p>Message Group (Join Actions)</p></figcaption></figure> ### Quit Actions The same, for when the player disconnects. The player is already gone by the time these run, so reach the rest of the server with a broadcast rather than a message. <figure><img src="../.gitbook/assets/join-quit-messages/quit-actions.png" alt="" width="563"><figcaption><p>Message Group (Quit Actions)</p></figcaption></figure> ### Permission Which permission a player needs for this group. Left empty it falls back to `phoenixlobby.messages.<group>`, so a group named **vip** answers to `phoenixlobby.messages.vip` on its own. The **default** group has no permission, because it is what everyone else gets. <figure><img src="../.gitbook/assets/join-quit-messages/permission.png" alt="" width="563"><figcaption><p>Message Group (Permission)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/join-actions --- # 📢 Join & Quit Messages > **Info:** This module is configured in **modules/join-actions.yml** inside the PhoenixLobby folder. The vanilla connect and disconnect messages are always suppressed. What the server sees instead comes from the actions below, so a group can broadcast a line, play a sound, or do both. > **Warning:** These only fire on a server that is not connected to a proxy running PhoenixLobby. Once it is, they stand down and the proxy announces instead, with [Join and Leave Messages](../../set-up/setup-with-proxy/join-and-leave-messages.md). <figure><img src="../../.gitbook/assets/join-quit-messages/join-quit-messages.png" alt="" width="563"><figcaption><p>On Join (Join & Quit Messages)</p></figcaption></figure> ## Message Groups **default** is the pair everyone gets. Add a group next to it to give a rank its own, then set its permission. Groups are checked in the order they appear and the first one the player holds wins, so put the rarest rank first. A player holding none of them falls back to **default**. <figure><img src="../../.gitbook/assets/join-quit-messages/message-group.png" alt="" width="563"><figcaption><p>Join & Quit Messages (Message Group)</p></figcaption></figure> ## Join Actions What runs when a player of this group connects. An empty list announces nothing, which is how you silence a rank's connect message without silencing everyone's. Every action type is listed in [Action Types](../../plugin-information/action-types.md). <figure><img src="../../.gitbook/assets/join-quit-messages/join-actions.png" alt="" width="563"><figcaption><p>Message Group (Join Actions)</p></figcaption></figure> ## Quit Actions The same, for when the player disconnects. The player is already gone by the time these run, so reach the rest of the server with a broadcast rather than a message. <figure><img src="../../.gitbook/assets/join-quit-messages/quit-actions.png" alt="" width="563"><figcaption><p>Message Group (Quit Actions)</p></figcaption></figure> ## Permission Which permission a player needs for this group. Left empty it falls back to `phoenixlobby.messages.<group>`, so a group named **vip** answers to `phoenixlobby.messages.vip` on its own. The **default** group has no permission, because it is what everyone else gets. <figure><img src="../../.gitbook/assets/join-quit-messages/permission.png" alt="" width="563"><figcaption><p>Message Group (Permission)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/join-actions/join-quit-messages --- # 🎆 On Join Firework > **Info:** This module is configured in **modules/join-actions.yml** inside the PhoenixLobby folder. The firework is spawned at the player's own position once they are on the ground, so with **Teleport Spawn** enabled it goes off at the spawn point rather than where the server first dropped them. A player landing in a disabled world gets nothing, and walking back out of a disabled world into a lobby world launches it again. ## Feature State Turn the firework on or off. Everything below it stays saved while it is off. ## First Join Only Limit the firework to a player's very first connection, so returning players never see one. With this on the firework is also skipped when a player walks out of a disabled world, since that is not a first join. <figure><img src="../../.gitbook/assets/on-join-firework/first-join-only.png" alt="" width="563"><figcaption><p>On Join Firework (First Join Only)</p></figcaption></figure> ## Type The shape the burst takes. **Ball** and **Ball Large** are the round bursts, **Star** and **Creeper** are the shaped ones, and **Burst** is the flat spray. <figure><img src="../../.gitbook/assets/on-join-firework/type.png" alt="" width="563"><figcaption><p>On Join Firework (Type)</p></figcaption></figure> ## Power How long the rocket climbs before it bursts. A higher value sends the burst further above the player's head, and 0 makes it go off at their feet. <figure><img src="../../.gitbook/assets/on-join-firework/power.png" alt="" width="563"><figcaption><p>On Join Firework (Power)</p></figcaption></figure> ## Flicker Add the twinkle that keeps the burst sparking after it opens. <figure><img src="../../.gitbook/assets/on-join-firework/flicker.png" alt="" width="563"><figcaption><p>On Join Firework (Flicker)</p></figcaption></figure> ## Trail Add the tail the particles drag behind them as they fall. <figure><img src="../../.gitbook/assets/on-join-firework/trail.png" alt="" width="563"><figcaption><p>On Join Firework (Trail)</p></figcaption></figure> ## Colors The colours the burst is made of. They are picked from a named list far wider than the sixteen dyes, so a burst can be built out of shades such as Crimson or Cornflower Blue. Every colour in the list appears in the same burst, and a list left empty launches the rocket with no colour of its own. <figure><img src="../../.gitbook/assets/on-join-firework/colors.png" alt="" width="563"><figcaption><p>On Join Firework (Colors)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/join-actions/on-join-firework --- # 🚀 Launch Pad > **Info:** This module is configured in **modules/launchpad.yml** inside the PhoenixLobby folder. ## Launch Pad A launch pad is built out of two blocks: the one the player walks onto, and the one directly underneath it. Stepping on that pair throws the player forward, in the direction they are looking, with a particle effect trailing behind them. There is nothing to place or register, so every pair of those two blocks in the lobby is a pad. Open it from **Editor > Modules > Launch Pads**. Half a second has to pass before the same player can be launched again, which stops a pad from firing repeatedly while they are still standing on it. <figure><img src="../.gitbook/assets/settings/launch-pads.png" alt="" width="563"><figcaption><p>Modules (Launch Pads)</p></figcaption></figure> ## Forward Power With this option, you can change how far the player is thrown, in the direction they are looking. A higher value sends them further. <figure><img src="../.gitbook/assets/launch-pad/forward-power.png" alt="" width="563"><figcaption><p>Launch Pad (Forward Power)</p></figcaption></figure> ## Up Power With this option, you can change how high the player is thrown. <figure><img src="../.gitbook/assets/launch-pad/up-power.png" alt="" width="563"><figcaption><p>Launch Pad (Up Power)</p></figcaption></figure> > **Info:** Both powers are capped at 4. Higher values are ignored. ## Change Top Block Material With this option, you can change the block the player walks onto. Drag the block you want out of your inventory and drop it onto the slot. <figure><img src="../.gitbook/assets/launch-pad/change-top-block-material.png" alt="" width="563"><figcaption><p>Launch Pad (Change Top Block Material)</p></figcaption></figure> ## Change Bottom Block Material With this option, you can change the block that has to sit directly under the top one. It is what keeps an ordinary slime block somewhere else in the lobby from launching anybody. <figure><img src="../.gitbook/assets/launch-pad/change-bottom-block-material.png" alt="" width="563"><figcaption><p>Launch Pad (Change Bottom Block Material)</p></figcaption></figure> > **Info:** A pressure plate or a slab works as the top block, so a pad can be made to sit flush with the floor instead of standing a block above it. ## Effect Type With this option, you can change the particle effect that follows the player after the launch. Five effects are available: None, Spiral, Double Spiral, Noise and Trail. <figure><img src="../.gitbook/assets/launch-pad/effect-type.png" alt="" width="563"><figcaption><p>Launch Pad (Effect Type)</p></figcaption></figure> ## Actions With this option, you can edit the actions that are executed every time a player is launched, which is handy for playing a sound alongside it. Every [action type](../plugin-information/action-types.md) is available here. <figure><img src="../.gitbook/assets/launch-pad/actions.png" alt="" width="563"><figcaption><p>Launch Pad (Actions)</p></figcaption></figure> ## Feature State With this option, you can turn launch pads off completely without clearing the rest of the settings. <figure><img src="../.gitbook/assets/launch-pad/feature-state.png" alt="" width="563"><figcaption><p>Launch Pad (Feature State)</p></figcaption></figure> > **Warning:** Pads do not fire in a world the plugin is not active in, and they are skipped while fighting if the [PvP](lobby-pvp.md) restrictions disable them. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/launch-pad --- # ⚔️ PvP > **Info:** This module is configured in **modules/pvp.yml** inside the PhoenixLobby folder. The PvP item and its kit live in **lobby-items.yml** instead, under `pvp-mode`. ## PvP PvP lets your players fight each other without leaving the lobby. A player enters it by holding the PvP item in their hotbar, and leaves it by holding the leave item that replaces it. Entering and leaving both run a countdown first, so a player cannot escape a fight instantly. While in PvP mode their items are stored away and the [PvP kit](#pvp-kit) is given instead, and they get everything back the moment they leave. Open it from **Editor > Modules > PvP Mode**. <figure><img src="../.gitbook/assets/modules/pvp-mode.png" alt="" width="563"><figcaption><p>Modules (PvP Mode)</p></figcaption></figure> ## Item Slot With this option, you can change which hotbar slot holds the PvP item. A value of -1 hides the item entirely, which is how you keep the mode available without putting it in everybody's hotbar. <figure><img src="../.gitbook/assets/pvp-mode/item-slot.png" alt="" width="563"><figcaption><p>PvP Mode (Item Slot)</p></figcaption></figure> ## Countdown Seconds With this option, you can change how many seconds pass before entering or leaving takes effect. A value of 0 makes the switch instant, which also removes the delay a player would otherwise need to escape a fight. <figure><img src="../.gitbook/assets/pvp-mode/countdown-seconds.png" alt="" width="563"><figcaption><p>PvP Mode (Countdown Seconds)</p></figcaption></figure> ## Sneak To Confirm With this option, you can ask the player to sneak once the countdown has finished before they actually enter. It stops somebody from being dropped into a fight by a misclick. <figure><img src="../.gitbook/assets/pvp-mode/sneak-to-confirm.png" alt="" width="563"><figcaption><p>PvP Mode (Sneak To Confirm)</p></figcaption></figure> ## Hold To Activate With this option, you can choose how the PvP item works. Turned on, selecting the item's slot starts the countdown and switching away cancels it. Turned off, players right-click the item instead. Change the item's name and lore to match, since they tell players which one to do. ## Leave On Unequip With this option, a player leaves PvP mode by putting their gear away instead of using the leave item. Switching to a slot that holds no [PvP kit](#pvp-kit) item, such as an empty slot, starts the leave countdown, and switching back to any kit item cancels it. Switching between kit items keeps the player in the fight. It is off by default and has no editor button, so set it in **modules/pvp.yml**: ```yaml leave-on-unequip: true ``` ## Join Actions With this option, you can edit the actions that run the moment a player enters PvP mode. Every [action type](../plugin-information/action-types.md) is available here. <figure><img src="../.gitbook/assets/pvp-mode/join-actions.png" alt="" width="563"><figcaption><p>PvP Mode (Join Actions)</p></figcaption></figure> ## Leave Actions With this option, you can edit the actions that run when a player leaves PvP mode. <figure><img src="../.gitbook/assets/pvp-mode/leave-actions.png" alt="" width="563"><figcaption><p>PvP Mode (Leave Actions)</p></figcaption></figure> ## PvP Kit > **Info:** The kit is stored in **lobby-items.yml** under `pvp-mode.kit`, not in modules/pvp.yml. The kit is the gear a player is handed for the duration of a fight. Their own items are stored away when they enter and given back untouched when they leave, so nothing they were carrying is at risk. Open it from **Editor > Modules > PvP Mode > PvP Kit**. <figure><img src="../.gitbook/assets/pvp-mode/pvp-kit.png" alt="" width="563"><figcaption><p>PvP Mode (PvP Kit)</p></figcaption></figure> The screen is the inventory itself rather than a list of options. Drag an item from your own inventory onto a slot to set it, and the layout you build is exactly what players receive: the top row holds the armour slots, and the rest is the hotbar and main inventory. <figure><img src="../.gitbook/assets/pvp-kit/kit-grid.png" alt="" width="563"><figcaption><p>PvP Mode (Kit)</p></figcaption></figure> #### Import From Inventory Rather than placing the kit item by item, gear yourself up the way you want players to be armed and click **Import From Inventory**. The kit is replaced with exactly what you are carrying, armour and offhand included. #### Clear All Items Empties the kit in one click. A kit with nothing in it means players enter PvP mode with an empty inventory, which is what a server running its own kit plugin wants. > **Info:** The kit ships with a netherite sword and a full set of netherite armour, falling back to diamond on a server where netherite does not exist. > **Warning:** Anything a player picks up during a fight is dropped when the kit is taken back off them. Do not put anything in the kit you would mind seeing on the floor. ## Enabled Worlds By default PvP mode can be entered anywhere the plugin is active. This list narrows it to the worlds you pick, so a hub world can stay peaceful while a separate arena world allows fighting. Open it from **Editor > Modules > PvP Mode > Enabled Worlds**. <figure><img src="../.gitbook/assets/pvp-mode/enabled-worlds.png" alt="" width="563"><figcaption><p>PvP Mode (Enabled Worlds)</p></figcaption></figure> Clicking it opens a list of the worlds currently loaded on the server, so there is nothing to type and no way to misspell a name. <figure><img src="../.gitbook/assets/enabled-worlds/add-world.png" alt="" width="563"><figcaption><p>Enabled Worlds (Add World)</p></figcaption></figure> > **Info:** An empty list allows every world. It is not a list of worlds where PvP is blocked. ### WorldGuard regions With [WorldGuard](https://dev.bukkit.org/projects/worldguard) installed, PhoenixLobby registers a `phoenixlobby-restrictpvp` region flag. Set it to allow on a region and players standing inside it cannot enter PvP mode, whatever the world list says. ``` /rg flag <region> phoenixlobby-restrictpvp allow ``` The flag is checked when somebody tries to enter, not while they fight, so a player who is already fighting keeps their kit when they walk in. See [World Protection](world-protection.md) for the fly flag that ships alongside it. ## Restrictions The lobby normally lets players fly, double jump and bounce off launch pads. None of that belongs in a fight, so each one can be taken away for as long as a player is in PvP mode and handed straight back when they leave. Open it from **Editor > Modules > PvP Mode > Restrictions**. <figure><img src="../.gitbook/assets/pvp-mode/restrictions.png" alt="" width="563"><figcaption><p>PvP Mode (Restrictions)</p></figcaption></figure> ### Disable Launch Pad With this option, you can stop a fighting player from being thrown by a [launch pad](launch-pad.md). The pad still works for everybody else standing on it. <figure><img src="../.gitbook/assets/restrictions/disable-launch-pad.png" alt="" width="563"><figcaption><p>Restrictions (Disable Launch Pad)</p></figcaption></figure> ### Disable Double Jump With this option, you can take the [double jump](double-jump.md) away during a fight, so nobody can jetpack out of one. <figure><img src="../.gitbook/assets/restrictions/disable-double-jump.png" alt="" width="563"><figcaption><p>Restrictions (Disable Double Jump)</p></figcaption></figure> ### Disable Fly With this option, you can take flight away when a player enters PvP mode. <figure><img src="../.gitbook/assets/restrictions/disable-fly.png" alt="" width="563"><figcaption><p>Restrictions (Disable Fly)</p></figcaption></figure> ### Kick From Flying With this option, you can decide what happens to somebody who is already in the air when flight is taken away. On drops them out of flight straight away, off leaves them gliding until they land on their own. <figure><img src="../.gitbook/assets/restrictions/kick-from-flying.png" alt="" width="563"><figcaption><p>Restrictions (Kick From Flying)</p></figcaption></figure> ### Enable Hunger With this option, you can let the food bar drain again during a fight. It is off everywhere else in the lobby because [world protection](world-protection.md) freezes it, so this is what lets hunger matter in PvP without affecting the rest of the lobby. How the bar is set and restored is covered under [Hunger](#hunger). <figure><img src="../.gitbook/assets/restrictions/enable-hunger.png" alt="" width="563"><figcaption><p>Restrictions (Enable Hunger)</p></figcaption></figure> ## Hunger The food bar is frozen everywhere in the lobby, so a fight would normally start and end with a full bar and no way to lose health from hunger. These two options decide what the bar is set to on the way in and what happens to it on the way out. Open it from **Editor > Modules > PvP Mode > Hunger**. <figure><img src="../.gitbook/assets/pvp-mode/hunger.png" alt="" width="563"><figcaption><p>PvP Mode (Hunger)</p></figcaption></figure> > **Info:** Neither option does anything until **Enable Hunger** is turned on under [Restrictions](#restrictions). > **Warning:** The food bar never drains on Peaceful. If [World State](world-protection.md#world-state) forces Peaceful, the worlds PvP mode is enabled in run on Easy instead while **Enable Hunger** is on, and hostile mobs are kept from spawning there. ### Level On Enable With this option, you can set the food level a player starts a fight with, out of 20. The default of 17 is deliberate: Minecraft only regenerates health naturally at 18 or above, so starting one point under that stops players from healing back up mid-fight. Setting it to 18 or higher hands natural regeneration back to them. <figure><img src="../.gitbook/assets/hunger/level-on-enable.png" alt="" width="563"><figcaption><p>Hunger (Level On Enable)</p></figcaption></figure> ### Restore On Disable With this option, you can refill the food bar when a player leaves PvP mode, so nobody walks away from the lobby's fighting area hungry. <figure><img src="../.gitbook/assets/hunger/restore-on-disable.png" alt="" width="563"><figcaption><p>Hunger (Restore On Disable)</p></figcaption></figure> ## Feature State With this option, you can turn PvP mode off completely. The item is taken out of the hotbar and nobody can enter. <figure><img src="../.gitbook/assets/pvp-mode/feature-state.png" alt="" width="563"><figcaption><p>PvP Mode (Feature State)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/lobby-pvp --- # 🌍 Enabled Worlds ## Enabled Worlds By default PvP mode can be entered anywhere the plugin is active. This list narrows it to the worlds you pick, so a hub world can stay peaceful while a separate arena world allows fighting. Open it from **Editor > Modules > PvP Mode > Enabled Worlds**. Clicking it opens a list of the worlds currently loaded on the server, so there is nothing to type and no way to misspell a name. <figure><img src="../../.gitbook/assets/enabled-worlds/add-world.png" alt="" width="563"><figcaption><p>Enabled Worlds (Add World)</p></figcaption></figure> > **Info:** An empty list allows every world. It is not a list of worlds where PvP is blocked. ## WorldGuard regions With [WorldGuard](https://dev.bukkit.org/projects/worldguard) installed, PhoenixLobby registers a `phoenixlobby-restrictpvp` region flag. Set it to allow on a region and players standing inside it cannot enter PvP mode, whatever the world list says. ``` /rg flag <region> phoenixlobby-restrictpvp allow ``` The flag is checked when somebody tries to enter, not while they fight, so a player who is already fighting keeps their kit when they walk in. See [World Protection](../world-protection.md) for the fly flag that ships alongside it. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/lobby-pvp/enabled-worlds --- # 🍖 Hunger ## Hunger The food bar is frozen everywhere in the lobby, so a fight would normally start and end with a full bar and no way to lose health from hunger. These two options decide what the bar is set to on the way in and what happens to it on the way out. Open it from **Editor > Modules > PvP Mode > Hunger**. > **Info:** Neither option does anything until **Enable Hunger** is turned on under [Restrictions](restrictions.md). > **Warning:** The food bar never drains on Peaceful. If [World State](../world-protection.md#world-state) forces Peaceful, the worlds PvP mode is enabled in run on Easy instead while **Enable Hunger** is on, and hostile mobs are kept from spawning there. ## Level On Enable With this option, you can set the food level a player starts a fight with, out of 20. The default of 17 is deliberate: Minecraft only regenerates health naturally at 18 or above, so starting one point under that stops players from healing back up mid-fight. Setting it to 18 or higher hands natural regeneration back to them. <figure><img src="../../.gitbook/assets/hunger/level-on-enable.png" alt="" width="563"><figcaption><p>Hunger (Level On Enable)</p></figcaption></figure> ## Restore On Disable With this option, you can refill the food bar when a player leaves PvP mode, so nobody walks away from the lobby's fighting area hungry. <figure><img src="../../.gitbook/assets/hunger/restore-on-disable.png" alt="" width="563"><figcaption><p>Hunger (Restore On Disable)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/lobby-pvp/hunger --- # 🗡️ PvP Kit > **Info:** The kit is stored in **lobby-items.yml** under `pvp-mode.kit`, not in modules/pvp.yml. ## PvP Kit The kit is the gear a player is handed for the duration of a fight. Their own items are stored away when they enter and given back untouched when they leave, so nothing they were carrying is at risk. Open it from **Editor > Modules > PvP Mode > PvP Kit**. The screen is the inventory itself rather than a list of options. Drag an item from your own inventory onto a slot to set it, and the layout you build is exactly what players receive: the top row holds the armour slots, and the rest is the hotbar and main inventory. <figure><img src="../../.gitbook/assets/pvp-kit/kit-grid.png" alt="" width="563"><figcaption><p>PvP Mode (Kit)</p></figcaption></figure> ### Import From Inventory Rather than placing the kit item by item, gear yourself up the way you want players to be armed and click **Import From Inventory**. The kit is replaced with exactly what you are carrying, armour and offhand included. ### Clear All Items Empties the kit in one click. A kit with nothing in it means players enter PvP mode with an empty inventory, which is what a server running its own kit plugin wants. > **Info:** The kit ships with a netherite sword and a full set of netherite armour, falling back to diamond on a server where netherite does not exist. > **Warning:** Anything a player picks up during a fight is dropped when the kit is taken back off them. Do not put anything in the kit you would mind seeing on the floor. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/lobby-pvp/pvp-kit --- # 🚧 Restrictions ## Restrictions The lobby normally lets players fly, double jump and bounce off launch pads. None of that belongs in a fight, so each one can be taken away for as long as a player is in PvP mode and handed straight back when they leave. Open it from **Editor > Modules > PvP Mode > Restrictions**. ## Disable Launch Pad With this option, you can stop a fighting player from being thrown by a [launch pad](../launch-pad.md). The pad still works for everybody else standing on it. <figure><img src="../../.gitbook/assets/restrictions/disable-launch-pad.png" alt="" width="563"><figcaption><p>Restrictions (Disable Launch Pad)</p></figcaption></figure> ## Disable Double Jump With this option, you can take the [double jump](../double-jump.md) away during a fight, so nobody can jetpack out of one. <figure><img src="../../.gitbook/assets/restrictions/disable-double-jump.png" alt="" width="563"><figcaption><p>Restrictions (Disable Double Jump)</p></figcaption></figure> ## Disable Fly With this option, you can take flight away when a player enters PvP mode. <figure><img src="../../.gitbook/assets/restrictions/disable-fly.png" alt="" width="563"><figcaption><p>Restrictions (Disable Fly)</p></figcaption></figure> ## Kick From Flying With this option, you can decide what happens to somebody who is already in the air when flight is taken away. On drops them out of flight straight away, off leaves them gliding until they land on their own. <figure><img src="../../.gitbook/assets/restrictions/kick-from-flying.png" alt="" width="563"><figcaption><p>Restrictions (Kick From Flying)</p></figcaption></figure> ## Enable Hunger With this option, you can let the food bar drain again during a fight. It is off everywhere else in the lobby because [world protection](../world-protection.md) freezes it, so this is what lets hunger matter in PvP without affecting the rest of the lobby. How the bar is set and restored is covered under [Hunger](hunger.md). <figure><img src="../../.gitbook/assets/restrictions/enable-hunger.png" alt="" width="563"><figcaption><p>Restrictions (Enable Hunger)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/lobby-pvp/restrictions --- # 📝 Logger > **Info:** This module is configured in **modules/logger.yml** inside the PhoenixLobby folder. ## Logger The logger writes down what happens on your lobby. Every event is written to `logs/latest.log` and can be sent to Discord at the same time. Every event starts turned off, so nothing is written until you enable the ones you want. Each has its own message, webhook and embed, so joins can go to one channel and chat to another. ### File Logging The log file and the webhooks are separate switches. Turning `file-logging` off keeps every webhook posting while nothing is written to disk, which is what a server that only wants its events in Discord needs. ```yaml enabled: true file-logging: enabled: true ``` The `enabled` above it turns the whole module off, file and webhooks together. ### Events | Event | Logged when | | ------------------------ | ------------------------------------------------------ | | player-join | A player joins the lobby | | player-leave | A player disconnects, not when they change server | | player-switch-server | A player is sent to another server of the proxy | | player-anti-vpn | A player is denied by the anti vpn | | player-anti-wdl | A player tries to use a world downloader | | player-pvp-join | A player enters pvp mode | | player-pvp-leave | A player leaves pvp mode | | server-anti-botting | The anti bot starts a lockdown | | player-anti-swear | A message is blocked or censored by the chat filter | | player-command-execution | A player runs a command | | player-chat-message | A player sends a message | ### Message The message of an event is written in **log-format**. It is the line that goes to the log file, and it is also what `%message%` gives you inside the webhook. Every event has its own placeholders. | Event | Placeholders | | ------------------------ | ------------------------------------------------------------------------- | | player-join | %player%, %uuid%, %address%, %world%, %online% | | player-leave | %player%, %uuid%, %address%, %world%, %online% | | player-switch-server | %player%, %uuid%, %server%, %world% | | player-anti-vpn | %player%, %uuid%, %address% | | player-anti-wdl | %player%, %uuid%, %world% | | player-pvp-join | %player%, %uuid%, %world% | | player-pvp-leave | %player%, %uuid%, %world% | | server-anti-botting | %attempts%, %seconds%, %lockdown\_seconds% | | player-anti-swear | %player%, %uuid%, %world%, %message\_content%, %action% | | player-command-execution | %player%, %uuid%, %world%, %command% | | player-chat-message | %player%, %uuid%, %world%, %message\_content% | %online% leaves vanished staff out, and on a leave it has already dropped the player who left. %action% returns blocked or censored. On the chat filter event %message\_content% is what the player typed, before it was censored. ### Webhook Paste the address of your Discord webhook in **url** and that event starts posting. An empty url means nothing is sent, so you only fill in the events you care about. **username** and **avatar-url** change how the bot shows up, and **content** is a plain message sent above the embed. The embed is yours to shape with a title, a description, a colour, a footer, a thumbnail, an image and as many fields as you want. The placeholders of the event work in all of them. > **Info:** The other events follow the same shape, each one with its own message, colour and fields. > **Info:** Telling a disconnect apart from a server change is done by the proxy, so `player-switch-server` needs PhoenixLobby installed on the proxy as well. Without it, a player changing server is logged as a leave. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/logger --- # 🚧 Maintenance > **Info:** This module is configured in **modules/maintenance.yml** inside the PhoenixLobby folder. ## Maintenance Maintenance closes a server, or the whole network, for everyone except the people you allow. Players already connected are kicked, and new connections are denied until it ends. Open it from **Editor > Modules > Maintenance**. It works in two places. Without a proxy, the lobby runs its own maintenance and closes only that server. On a proxy the maintenance lives on BungeeCord or Velocity, where it can close any backend server or the entire network at once, and the lobby side stands down. Behind a proxy, a player on a closed server, or trying to join one, is sent to a lobby instead, and only kicked when no lobby is open to them. Closed lobbies are skipped when picking one, except for players who are allowed in, so `/lobby` and `/hub` keep working for them. Everyone with phoenixlobby.maintenance.bypass can always join, and phoenixlobby.maintenance is needed to use the [command](#commands). <figure><img src="../.gitbook/assets/modules/maintenance.png" alt="" width="563"><figcaption><p>Modules (Maintenance)</p></figcaption></figure> ## Maintenance State With this option, you can close the server right now, and open it again the same way. It has no end time, so it stays closed until you turn it back off. Use `/maintenance start <time>` instead when you want it to end on its own. <figure><img src="../.gitbook/assets/maintenance/maintenance-state.png" alt="" width="563"><figcaption><p>Maintenance (Maintenance State)</p></figcaption></figure> ## Whitelisted Players With this option, you can list the names or uuids that are still allowed in while the server is closed. It is the same list `/maintenance add` writes to, so either way of managing it works. <figure><img src="../.gitbook/assets/maintenance/whitelisted-players.png" alt="" width="563"><figcaption><p>Maintenance (Whitelisted Players)</p></figcaption></figure> ## Feature State With this option, you can turn the module off completely. The commands stop working and nobody is kept out, even if a maintenance was left running. <figure><img src="../.gitbook/assets/maintenance/feature-state.png" alt="" width="563"><figcaption><p>Maintenance (Feature State)</p></figcaption></figure> ## Time Format Times are written as `1Y 1M 1W 1D 1H 1m 1S`, and can be combined, for example `1D12H`. > **Warning:** An uppercase **M** means months and a lowercase **m** means minutes. ### Changing the time words The letters and words used for times live in the `time-format` section of the translations file on the lobby, and of **messages.yml** on the proxy. Every unit has a short form and a full form, in singular and plural. ```yaml time-format: style-commands: "short" style-motd: "short" style-placeholders: "full" separator: " " short-entry: "%amount%%unit%" full-entry: "%amount%%unit%" years-short: "Y" years-singular: "Year" years-plural: "Years" months-short: "M" months-singular: "Month" months-plural: "Months" weeks-short: "W" weeks-singular: "Week" weeks-plural: "Weeks" days-short: "D" days-singular: "Day" days-plural: "Days" hours-short: "H" hours-singular: "Hour" hours-plural: "Hours" minutes-short: "m" minutes-singular: "Minute" minutes-plural: "Minutes" seconds-short: "S" seconds-singular: "Second" seconds-plural: "Seconds" ``` | Key | What it does | | -------------------- | ---------------------------------------------------------------------------------------------- | | `style-commands` | `short` or `full`, for the replies of `/maintenance` | | `style-motd` | `short` or `full`, for `{timer}` in the motd | | `style-placeholders` | `short` or `full`, for `%phoenixlobby_maintenance_<server>%` (lobby only) | | `separator` | What goes between two units | | `short-entry` | How one unit is written in the short style. `%amount%` is the number, `%unit%` the short form | | `full-entry` | How one unit is written in the full style. `%unit%` is the singular or plural word | For a German server, set the short forms to `J`, `M`, `W`, `T`, `S`, `m` and `s`, the words to `Jahr`/`Jahre`, `Monat`/`Monate`, `Woche`/`Wochen`, `Tag`/`Tage`, `Stunde`/`Stunden`, `Minute`/`Minuten` and `Sekunde`/`Sekunden`, and `full-entry` to `"%amount% %unit%"` for a space between the number and the word. Switch a style to `full` wherever you want the times written out. The short forms you set are also accepted when typing a time in the commands, so with the German letters `/maintenance start 1T12S` closes the server for a day and a half. Letters are case-sensitive, so `M` and `m` stay apart. The default letters above keep working as well, except where one of your own short forms uses the same letter: then your meaning wins. With the German letters, `S` means hours and `s` means seconds. > **Info:** A short form may be longer than one letter, for example `Std`, but it cannot contain numbers or spaces. Run `/plobby reload` on the lobby after editing; the proxy reads the file when it starts. ## MOTD Both sides replace the motd with a separate one while a maintenance is running, and `{timer}` shows how much time is left. It sits in `motd.maintenance` next to the regular one. The regular motd, and the full list of options around it, is covered on the [MOTD](motd.md) page. ## Player Count Message With this option, you can show your own text in the server list where the player count usually is, for example `<dark_red>Maintenance`. With **Use Timer Message** on, a maintenance that has an end time shows the timer message instead, where `{timer}` is the time left. Turning it off keeps the regular player count. <figure><img src="../.gitbook/assets/maintenance/player-count-message.png" alt="" width="563"><figcaption><p>Maintenance (Player Count Message)</p></figcaption></figure> ## Player List Hover Message With this option, you can replace the list of players shown when the player count is hovered. It works like the player count message, and `<br>` starts a new line. <figure><img src="../.gitbook/assets/maintenance/player-list-hover-message.png" alt="" width="563"><figcaption><p>Maintenance (Player List Hover Message)</p></figcaption></figure> > **Warning:** On a lobby without a proxy, both messages need [Paper](https://papermc.io/) or a fork of it. ## Maintenance Icon With this option, you can swap the server icon for **maintenance-icon.png** while a maintenance is running. Put a 64x64 png with that name in the PhoenixLobby folder, next to the config, and reload. It is off by default, and when the file is missing the regular icon stays and the console warns once. <figure><img src="../.gitbook/assets/maintenance/maintenance-icon.png" alt="" width="563"><figcaption><p>Maintenance (Maintenance Icon)</p></figcaption></figure> > **Info:** On the proxy the same options live in its **config.yml** and **maintenance.yml**. Either way the running and scheduled maintenances are saved to disk, so they survive a restart. > **Warning:** As soon as the lobby is talking to a proxy, its own maintenance is ignored and the lobby command answers that the proxy is in charge. Start and end the maintenance on the proxy there, and use the lobby commands only on a standalone server. ## Commands Every command needs phoenixlobby.maintenance. Which set you use depends on where the maintenance runs: the proxy commands take a server name, the lobby ones always act on the server they are run from. **Lobby** | Command | Description | | --------------------------------------------- | --------------------------------- | | `/maintenance start [time]` | Starts a maintenance | | `/maintenance end` | Ends the maintenance | | `/maintenance add <user/uuid>` | Allows someone to join | | `/maintenance remove <user/uuid>` | Revokes someone's access | | `/maintenance list` | Lists who is allowed to join | | `/maintenance schedule <start-in> <duration>` | Schedules a maintenance for later | | `/maintenance status` | Shows the current maintenance | **Proxy** | Command | Description | | ------------------------------------------------------ | --------------------------------- | | `/maintenance start <server> [time]` | Starts a maintenance | | `/maintenance end <server>` | Ends a maintenance | | `/maintenance add <user/uuid> <server>` | Allows someone to join | | `/maintenance remove <user/uuid> <server>` | Revokes someone's access | | `/maintenance list <server>` | Lists who is allowed to join | | `/maintenance schedule <start-in> <duration> <server>` | Schedules a maintenance for later | | `/maintenance schedules` | Lists every scheduled maintenance | Leave the server empty or use **global** to affect every server at once. Leaving the time empty makes the maintenance last until you end it yourself. Times use the [time format](#time-format) described above, so `/maintenance start 1D12H` closes the server for a day and a half. > **Info:** `/maintenance add` and `/maintenance remove` write to the same list as [Whitelisted Players](#whitelisted-players) in the editor. ## Placeholders These are [PlaceholderAPI](https://www.spigotmc.org/resources/placeholderapi.6245/) placeholders, so they work anywhere PlaceholderAPI is read, including the [scoreboard](scoreboard.md), the [tablist](tablist.md) and holograms. Every one of them takes a server name. Behind a proxy that is the backend's name, or global for the whole network. On a standalone lobby, use the name of that server. > **Info:** A proxy is not needed. The lobby answers these from its own Maintenance module whenever that module is enabled, and only falls back to asking the proxy when it is not. ### Is it closed | Placeholder | Returns | | ------------------------------------------ | ---------------- | | `%phoenixlobby_inmaintenance_<server>%` | `true` / `false` | ### How long is left | Placeholder | Returns | | ------------------------------------ | --------------------------------------------- | | `%phoenixlobby_maintenance_<server>%` | The remaining time, written out as `2Hours 15Minutes 3Seconds` | When the maintenance has no end time this returns Forever, and when nothing is running it returns None. Both words come from your translations file, so they follow whatever language you have set. The unit words, and whether they are written out, follow the [time words](#changing-the-time-words) you set. The `_formatted_` placeholders below use the same singular and plural words. ### A single unit Adding `_raw_` or `_formatted_` and a unit reports just that unit, which is what a countdown showing only minutes needs. | Placeholder | Example result | | ------------------------------------------------------- | -------------- | | `%phoenixlobby_maintenance_<server>_raw_minutes%` | `135` | | `%phoenixlobby_maintenance_<server>_formatted_minutes%` | `135 Minutes` | | `%phoenixlobby_maintenance_<server>_raw_hours%` | `2` | | `%phoenixlobby_maintenance_<server>_formatted_hours%` | `2 Hours` | The unit is one of seconds, minutes, hours, days, weeks, months or years. The singular spelling works too, and the case does not matter. The whole remaining time is converted into that one unit rather than split across several, so two hours and fifteen minutes reads as `135` in minutes and `2` in hours. > **Info:** With no end time, `_raw_` returns -1 and `_formatted_` returns Forever. Check that before showing a countdown. The MOTD has its own separate set of maintenance placeholders, written with braces instead: see [MOTD Placeholders](motd.md#placeholders). Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/maintenance --- # ⌨️ Commands Every command needs phoenixlobby.maintenance. Which set you use depends on where the maintenance runs: the proxy commands take a server name, the lobby ones always act on the server they are run from. **Lobby** | Command | Description | | --------------------------------------------- | --------------------------------- | | `/maintenance start [time]` | Starts a maintenance | | `/maintenance end` | Ends the maintenance | | `/maintenance add <user/uuid>` | Allows someone to join | | `/maintenance remove <user/uuid>` | Revokes someone's access | | `/maintenance list` | Lists who is allowed to join | | `/maintenance schedule <start-in> <duration>` | Schedules a maintenance for later | | `/maintenance status` | Shows the current maintenance | **Proxy** | Command | Description | | ------------------------------------------------------ | --------------------------------- | | `/maintenance start <server> [time]` | Starts a maintenance | | `/maintenance end <server>` | Ends a maintenance | | `/maintenance add <user/uuid> <server>` | Allows someone to join | | `/maintenance remove <user/uuid> <server>` | Revokes someone's access | | `/maintenance list <server>` | Lists who is allowed to join | | `/maintenance schedule <start-in> <duration> <server>` | Schedules a maintenance for later | | `/maintenance schedules` | Lists every scheduled maintenance | Leave the server empty or use **global** to affect every server at once. Leaving the time empty makes the maintenance last until you end it yourself. Times use the [time format](../maintenance.md#time-format) described on the module page, so `/maintenance start 1D12H` closes the server for a day and a half. > **Info:** `/maintenance add` and `/maintenance remove` write to the same list as [Whitelisted Players](../maintenance.md#whitelisted-players) in the editor. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/maintenance/commands --- # 🔍 Placeholders These are [PlaceholderAPI](https://www.spigotmc.org/resources/placeholderapi.6245/) placeholders, so they work anywhere PlaceholderAPI is read, including the [scoreboard](../scoreboard.md), the [tablist](../tablist.md) and holograms. Every one of them takes a server name. Behind a proxy that is the backend's name, or global for the whole network. On a standalone lobby, use the name of that server. > **Info:** A proxy is not needed. The lobby answers these from its own [Maintenance](../maintenance.md) module whenever that module is enabled, and only falls back to asking the proxy when it is not. ## Is it closed | Placeholder | Returns | | ------------------------------------------ | ---------------- | | `%phoenixlobby_inmaintenance_<server>%` | `true` / `false` | ## How long is left | Placeholder | Returns | | ------------------------------------ | --------------------------------------------- | | `%phoenixlobby_maintenance_<server>%` | The remaining time, written out as `2H 15m 3S` | When the maintenance has no end time this returns Forever, and when nothing is running it returns None. Both words come from your translations file, so they follow whatever language you have set. ## A single unit Adding `_raw_` or `_formatted_` and a unit reports just that unit, which is what a countdown showing only minutes needs. | Placeholder | Example result | | ------------------------------------------------------- | -------------- | | `%phoenixlobby_maintenance_<server>_raw_minutes%` | `135` | | `%phoenixlobby_maintenance_<server>_formatted_minutes%` | `135 Minutes` | | `%phoenixlobby_maintenance_<server>_raw_hours%` | `2` | | `%phoenixlobby_maintenance_<server>_formatted_hours%` | `2 Hours` | The unit is one of seconds, minutes, hours, days, weeks, months or years. The singular spelling works too, and the case does not matter. The whole remaining time is converted into that one unit rather than split across several, so two hours and fifteen minutes reads as `135` in minutes and `2` in hours. > **Info:** With no end time, `_raw_` returns -1 and `_formatted_` returns Forever. Check that before showing a countdown. The MOTD has its own separate set of maintenance placeholders, written with braces instead: see [MOTD Placeholders](../motd/placeholders.md). Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/maintenance/placeholders --- # 🖼️ MOTD > **Info:** This module is configured in **modules/motd.yml** inside the PhoenixLobby folder. ## MOTD The MOTD is what anyone who has your server saved sees in their list before joining: two lines of text, an icon, and the player count next to them. Open it from **Editor > Modules > MOTD**. Everything here is read fresh on every ping, so an edit shows up the next time the list refreshes without a restart. Behind a proxy the ping never reaches the lobby, so this module stands down and the network motd is served from BungeeCord or Velocity, where the same options live in its **config.yml**. See [MOTD behind a proxy](../set-up/setup-with-proxy.md#motd). ## Messages With this option, you can edit the message itself. Each entry is one variant of two lines, and one of them is picked at random every time somebody pings the server, so a list of four means four different messages your players can land on. Adding a variant, and editing or removing an existing one, is all done from here. <figure><img src="../.gitbook/assets/motd-messages/add-motd.png" alt="" width="563"><figcaption><p>MOTD (Add MOTD)</p></figcaption></figure> ## Server Icon With this option, you can change the icon shown next to the message. Drop a 64x64 png into the **servericons** folder inside the plugin folder and write its name here, without the `.png`. A larger image is scaled down for you. Leaving it empty keeps the server's own `server-icon.png`. <figure><img src="../.gitbook/assets/motd/server-icon.png" alt="" width="563"><figcaption><p>MOTD (Server Icon)</p></figcaption></figure> ## Player Count > **Info:** This module is configured in **modules/motd.yml** inside the PhoenixLobby folder, under `player-count`. By default the server list shows the real numbers, and hovering them lists a sample of who is online. Every part of that can be overridden or hidden here. Open it from **Editor > Modules > MOTD > Player Count**. <figure><img src="../.gitbook/assets/motd/player-count.png" alt="" width="563"><figcaption><p>MOTD (Player Count)</p></figcaption></figure> Leaving an option empty keeps the real value, so only what you actually fill in is replaced. ### Player Count Text With this option, you can replace the two numbers with free text, which is what a server showing `Open!` or a queue length in that spot is doing. <figure><img src="../.gitbook/assets/player-count/player-count-text.png" alt="" width="563"><figcaption><p>Player Count (Player Count Text)</p></figcaption></figure> > **Warning:** The client only draws text there when it thinks the server is a version it cannot join, so filling this in also puts the red incompatible-version marker on your entry in the list. Leave it empty if you would rather keep the normal numbers. ### Online Players With this option, you can override the first number. A placeholder that resolves to something other than a number is ignored and the real count is used, which leaves vanished staff out. <figure><img src="../.gitbook/assets/player-count/online-players.png" alt="" width="563"><figcaption><p>Player Count (Online Players)</p></figcaption></figure> ### Max Players With this option, you can override the second number, which is otherwise the slot count from **server.properties**. <figure><img src="../.gitbook/assets/player-count/max-players.png" alt="" width="563"><figcaption><p>Player Count (Max Players)</p></figcaption></figure> ### Extra Players With this option, you can report the maximum as however many players are online plus this amount, so the server never looks full no matter how busy it gets. It is ignored while **Max Players** is set, since that one wins. <figure><img src="../.gitbook/assets/player-count/extra-players.png" alt="" width="563"><figcaption><p>Player Count (Extra Players)</p></figcaption></figure> ### Hover Lines With this option, you can replace the player sample that appears when the count is hovered with lines of your own. It is the one place in the list where more than two lines of text fit, which is what makes it useful for a rules note or a vote link. <figure><img src="../.gitbook/assets/player-count/hover-lines.png" alt="" width="563"><figcaption><p>Player Count (Hover Lines)</p></figcaption></figure> ### Hide Players With this option, you can drop the count from the ping entirely, so nothing is drawn where the numbers usually are. <figure><img src="../.gitbook/assets/player-count/hide-players.png" alt="" width="563"><figcaption><p>Player Count (Hide Players)</p></figcaption></figure> ### Hide Hover With this option, you can remove the hover list without touching the numbers, which keeps the count honest while keeping your players' names off it. <figure><img src="../.gitbook/assets/player-count/hide-hover.png" alt="" width="563"><figcaption><p>Player Count (Hide Hover)</p></figcaption></figure> > **Warning:** **Player Count Text**, **Online Players**, **Hover Lines**, **Hide Players** and **Hide Hover** need [Paper](https://papermc.io/) or a fork of it, because Spigot's ping event cannot express any of them. On plain Spigot the module says so once on startup and applies what is left: the message, the icon, **Max Players** and **Extra Players**. Every [MOTD placeholder](#placeholders) works in these options as well. While a maintenance is running, its own [player count and hover messages](maintenance.md#player-count-message) take over when they are turned on. ## Feature State With this option, you can turn the MOTD off completely, which hands the message, the icon and the count back to the ones in **server.properties**. <figure><img src="../.gitbook/assets/motd/feature-state.png" alt="" width="563"><figcaption><p>MOTD (Feature State)</p></figcaption></figure> ## Placeholders The message, the server icon name and every player count option accept placeholders, from the name of whoever is pinging to the current date. PlaceholderAPI placeholders also work. A name nobody recognises is left in the message exactly as you wrote it, so a stray `{` never eats the rest of the line. ### Player Nobody is logged in when a ping arrives, so these come from the last player seen on that address. On a first-ever ping from an unknown address they resolve empty. | Placeholder | Returns | | -------------------------- | ------------------------------------ | | `{player name}` | Name of the last player from that IP | | `{player uuid}` | Their UUID | | `{player protocol}` | Client protocol number | | `{player version}` | Client version name | | `{player hasPlayedBefore}` | `true` / `false` | | `{player isBanned}` | `true` / `false` | | `{player isWhitelisted}` | `true` / `false` | ### Server | Placeholder | Returns | | ---------------------------- | ------------------------- | | `{server playersOnline}` | Current player count | | `{server playersMax}` | Slot count | | `{server host}` | Address the client pinged | | `{server whitelistEnabled}` | `true` / `false` | | `{server version}` | Server version | `{server playersOnline}` leaves vanished staff out, and on a proxy it is the whole network rather than one backend. ### Maintenance | Placeholder | Returns | | ---------------------------------- | -------------------------------- | | `{maintenance maintenanceEnabled}` | `true` / `false` | | `{maintenance timer}` | Time left until maintenance ends | See [Maintenance](maintenance.md) for what puts the server into that state. ### Date `{date current}` prints the server's clock, and the three comparisons answer `true` or `false` so they can be fed into a [PlaceholderAPI](https://www.spigotmc.org/resources/placeholderapi.6245/) condition to swap a message around a date. The results below are what a ping arriving on 24/12/2026 at 18:30 would produce. | Placeholder | Example result | | ------------------------------------- | --------------------- | | `{date current}` | `24/12/2026 18:30:00` | | `{date current dd/MM/yyyy}` | `24/12/2026` | | `{date current HH:mm}` | `18:30` | | `{date current EEEE}` | `Thursday` | | `{date current 'Day' D 'of' yyyy}` | `Day 358 of 2026` | | `{date isBefore 25/12/2026 00:00:00}` | `true` | | `{date isAfter 2026-12-01}` | `true` | | `{date isExact 24/12/2026 18:30:00}` | `true` | The pattern after `current` is a [Java date pattern](https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html), and anything wrapped in single quotes inside it is printed as written. A pattern that cannot be read falls back to `dd/MM/yyyy HH:mm:ss`. The date the three comparisons take is written either as `dd/MM/yyyy HH:mm:ss`, or as `2026-12-25` for midnight on that day. A date that cannot be read answers `false` rather than breaking the message. > **Info:** `{date isExact}` is true for the whole minute you name, since the seconds are ignored on both sides. A ping landing at `18:30:41` still matches `18:30:00`. ### Proxy Behind a proxy the ping never reaches this server, so the MOTD has to be set in the PhoenixLobby proxy **config.yml** under `motds.motd` instead. Everything above works there too, with three differences. | Placeholder | Returns | | ------------------------------ | --------------------------------- | | `{proxy status <server>}` | Whether that backend is reachable | | `{proxy players <server>}` | Players on that backend | | `{proxy maxPlayers <server>}` | Slot count of that backend | `{proxy players <server>}` leaves vanished staff out as well, unless that backend has no PhoenixLobby on it to report who is hidden. `{maintenance maintenanceEnabled}` and `{maintenance timer}` take an optional server name on the proxy, so `{maintenance timer lobby}` answers for that backend rather than the whole network. `{player isBanned}`, `{player isWhitelisted}` and `{server whitelistEnabled}` have no proxy equivalent and are not available there. > **Warning:** The older `${player name}` spelling, with a dollar in front, still resolves, so an existing setup keeps working. New messages should use `{player name}`. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/motd --- # ⚙️ Configuration <!-- Internal reference. Deliberately kept out of SUMMARY.md, so it does not appear in the published sidebar and is not linked from any published page. It lives in the repository for support and assistant use. --> # ⚙️ Configuration Everything the editor writes ends up in **modules/motd.yml**. Behind a proxy the same tree lives in the proxy's own **config.yml**, one level deeper, under `motds`, so `motd.server-icon` here is `motds.motd.server-icon` there. What each option does in the editor is on the [MOTD](../motd.md) and [Player Count](../motd.md#player-count) pages, and every one of them accepts [placeholders](../motd.md#placeholders). This is the whole file with every option in use at once: ```yaml enabled: true motd: motds: '0': - ' &d&lPHOENIX LOBBY MOTD' - ' &8Learn more at &7&nwww.phoenixplugins.com' '1': - ' &d&lPHOENIX LOBBY MOTD' - ' &8Come check out our &7&ncool plugins&8!' server-icon: 'winter' player-count: text: 'JOIN' hover: - ' &7HELLO' online-players: '10' max-players: '344' extra-players: 100 hide-players: false hide-players-hover: false maintenance: enabled: true motd: - ' &c&lUNDER MAINTENANCE' - ' &8We will be back in &7{timer}' player-count-message: enabled: true enable-timer-specific-message: true message: '<dark_red>Maintenance' timer-message: '<dark_red>Come back in: <yellow>{timer}' player-list-hover-message: enabled: true enable-timer-specific-message: true message: '<red>Currently under<br><red>maintenance' timer-message: '<red>Come back in:<br><yellow>{timer}' maintenance-icon: enabled: false ``` ## Options | Option | What it does | Example | | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- | | `enabled` | Whether the module touches the ping at all. `false` hands the message, the icon and the count back to **server.properties**, and only the maintenance motd is still applied. | `enabled: true` | | `motd.motds` | The message variants. Each numbered key holds one variant of two lines, and one variant is picked at random on every ping. The numbers are only ids, so they have to be unique and quoted. | see [Message Variants](#message-variants) below | | `motd.server-icon` | Name of a 64x64 png inside the **servericons** folder, written without the `.png`. Empty keeps the server's own `server-icon.png`. | `server-icon: 'winter'` | | `motd.player-count.text` | Free text drawn where the `online/max` numbers usually are. Empty keeps the numbers. Filling it in also puts the red incompatible-version marker on your entry. | `text: 'JOIN'` | | `motd.player-count.hover` | Lines shown when the count is hovered, in place of the player sample. Empty keeps the real sample. | `hover: [' &7HELLO']` | | `motd.player-count.online-players` | Overrides the first number. Written as a string so placeholders fit; anything that does not come out as a number is ignored and the real count is used. | `online-players: '10'` | | `motd.player-count.max-players` | Overrides the second number, which is otherwise the slot count from **server.properties**. | `max-players: '344'` | | `motd.player-count.extra-players` | Reports the maximum as however many players are online plus this number, so the server never looks full. Ignored while `max-players` is set. | `extra-players: 100` | | `motd.player-count.hide-players` | Drops the count from the ping entirely, so nothing is drawn where the numbers usually are. | `hide-players: false` | | `motd.player-count.hide-players-hover` | Removes the hover list without touching the numbers. | `hide-players-hover: false` | | `motd.maintenance.enabled` | Whether a running maintenance replaces the message variants with its own message. | `enabled: true` | | `motd.maintenance.motd` | The lines shown while a maintenance is running. `{timer}` is how much time is left. The server icon and the player count around it still apply. | see [Maintenance Message](#maintenance-message) below | | `motd.maintenance.player-count-message.enabled` | Whether a running maintenance replaces the player count with `message`. | `enabled: true` | | `motd.maintenance.player-count-message.enable-timer-specific-message` | Uses `timer-message` instead while the maintenance has an end time. | `enable-timer-specific-message: true` | | `motd.maintenance.player-count-message.message` | Text drawn where the `online/max` numbers usually are during a maintenance. | `message: '<dark_red>Maintenance'` | | `motd.maintenance.player-count-message.timer-message` | The same, while an end time is set. `{timer}` is how much time is left. | `timer-message: '<dark_red>Come back in: <yellow>{timer}'` | | `motd.maintenance.player-list-hover-message.*` | The same four options for the hover list. `<br>` starts a new line. | `message: '<red>Currently under<br><red>maintenance'` | | `motd.maintenance.maintenance-icon.enabled` | Swaps the server icon for **maintenance-icon.png** from the plugin folder during a maintenance. Read on reload; a missing file keeps the regular icon. | `enabled: false` | > **Warning:** `text`, `hover`, `online-players`, `hide-players` and `hide-players-hover` need [Paper](https://papermc.io/) or a fork of it. On plain Spigot the module says so once on startup and applies what is left: the message, the icon, `max-players` and `extra-players`. ## Message Variants Two variants, picked between at random on every ping. Dropping one of the two lines is fine, and so is a single variant, which then shows every time. ```yaml motd: motds: '0': - '&d&lYOUR SERVER' - '&7A new message of the day.' '1': - '&d&lYOUR SERVER &7- &b{player name}' - '&7Welcome back!' ``` ## Custom Icon Shows `servericons/winter.png` next to the message. A larger image is scaled down to 64x64 for you. ```yaml motd: server-icon: 'winter' ``` ## Never Looking Full Keeps the bar from ever filling up, since the maximum is always however many players are online plus 100. ```yaml motd: player-count: max-players: '' extra-players: 100 ``` ## Text Instead Of The Numbers Replaces `12/100` with a word. Remember that the client only draws text there for a version it cannot join, so the entry is marked as incompatible while this is set. ```yaml motd: player-count: text: 'JOIN' ``` ## Notice In The Hover The hover is the one place in the list where more than two lines fit, which makes it the spot for a rules note or a vote link. ```yaml motd: player-count: hover: - '&d&lEVENT THIS WEEKEND' - '&7Saturday at 18:00' - '' - '&8Vote at &7&nwww.example.com/vote' ``` ## Keeping Names Private Leaves the count honest while keeping the list of who is online out of the ping. ```yaml motd: player-count: hide-players: false hide-players-hover: true ``` ## Maintenance Message While a maintenance is running these lines replace the message variants, and everything else in the section keeps applying, unless the maintenance player count message, hover message or icon are turned on, which replace those too. ```yaml motd: server-icon: 'maintenance' player-count: text: 'CLOSED' maintenance: enabled: true motd: - ' &c&lUNDER MAINTENANCE' - ' &8We will be back in &7{timer}' ``` Turning it off with `enabled: false` leaves the normal variants showing through a maintenance. What starts and ends one is on the [Maintenance](../maintenance.md) page. > **Info:** The editor rewrites this file whenever something is saved, so any key that is not one of the above is dropped. Everything here is read fresh on every ping, so editing the file by hand takes effect on the next refresh of the list without a restart. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/motd/configuration --- # 🔍 Placeholders These work in the [message](../motd.md#messages), the [server icon](../motd.md#server-icon) name and every [Player Count](player-count.md) option. PlaceholderAPI placeholders also work. A name nobody recognises is left in the message exactly as you wrote it, so a stray `{` never eats the rest of the line. ## Player Nobody is logged in when a ping arrives, so these come from the last player seen on that address. On a first-ever ping from an unknown address they resolve empty. | Placeholder | Returns | | -------------------------- | ------------------------------------ | | `{player name}` | Name of the last player from that IP | | `{player uuid}` | Their UUID | | `{player protocol}` | Client protocol number | | `{player version}` | Client version name | | `{player hasPlayedBefore}` | `true` / `false` | | `{player isBanned}` | `true` / `false` | | `{player isWhitelisted}` | `true` / `false` | ## Server | Placeholder | Returns | | ---------------------------- | ------------------------- | | `{server playersOnline}` | Current player count | | `{server playersMax}` | Slot count | | `{server host}` | Address the client pinged | | `{server whitelistEnabled}` | `true` / `false` | | `{server version}` | Server version | `{server playersOnline}` leaves vanished staff out, and on a proxy it is the whole network rather than one backend. ## Maintenance | Placeholder | Returns | | ---------------------------------- | -------------------------------- | | `{maintenance maintenanceEnabled}` | `true` / `false` | | `{maintenance timer}` | Time left until maintenance ends | See [Maintenance](../maintenance.md) for what puts the server into that state. ## Date `{date current}` prints the server's clock, and the three comparisons answer `true` or `false` so they can be fed into a [PlaceholderAPI](https://www.spigotmc.org/resources/placeholderapi.6245/) condition to swap a message around a date. The results below are what a ping arriving on 24/12/2026 at 18:30 would produce. | Placeholder | Example result | | ------------------------------------- | --------------------- | | `{date current}` | `24/12/2026 18:30:00` | | `{date current dd/MM/yyyy}` | `24/12/2026` | | `{date current HH:mm}` | `18:30` | | `{date current EEEE}` | `Thursday` | | `{date current 'Day' D 'of' yyyy}` | `Day 358 of 2026` | | `{date isBefore 25/12/2026 00:00:00}` | `true` | | `{date isAfter 2026-12-01}` | `true` | | `{date isExact 24/12/2026 18:30:00}` | `true` | The pattern after `current` is a [Java date pattern](https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html), and anything wrapped in single quotes inside it is printed as written. A pattern that cannot be read falls back to `dd/MM/yyyy HH:mm:ss`. The date the three comparisons take is written either as `dd/MM/yyyy HH:mm:ss`, or as `2026-12-25` for midnight on that day. A date that cannot be read answers `false` rather than breaking the message. > **Info:** `{date isExact}` is true for the whole minute you name, since the seconds are ignored on both sides. A ping landing at `18:30:41` still matches `18:30:00`. ## Proxy Behind a proxy the ping never reaches this server, so the MOTD has to be set in the PhoenixLobby proxy **config.yml** under `motds.motd` instead. Everything above works there too, with three differences. | Placeholder | Returns | | ------------------------------ | --------------------------------- | | `{proxy status <server>}` | Whether that backend is reachable | | `{proxy players <server>}` | Players on that backend | | `{proxy maxPlayers <server>}` | Slot count of that backend | `{proxy players <server>}` leaves vanished staff out as well, unless that backend has no PhoenixLobby on it to report who is hidden. `{maintenance maintenanceEnabled}` and `{maintenance timer}` take an optional server name on the proxy, so `{maintenance timer lobby}` answers for that backend rather than the whole network. `{player isBanned}`, `{player isWhitelisted}` and `{server whitelistEnabled}` have no proxy equivalent and are not available there. > **Warning:** The older `${player name}` spelling, with a dollar in front, still resolves, so an existing setup keeps working. New messages should use `{player name}`. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/motd/placeholders --- # 👥 Player Count > **Info:** This module is configured in **modules/motd.yml** inside the PhoenixLobby folder, under `player-count`. ## Player Count By default the server list shows the real numbers, and hovering them lists a sample of who is online. Every part of that can be overridden or hidden here. Open it from **Editor > Modules > MOTD > Player Count**. Leaving an option empty keeps the real value, so only what you actually fill in is replaced. ## Player Count Text With this option, you can replace the two numbers with free text, which is what a server showing `Open!` or a queue length in that spot is doing. <figure><img src="../../.gitbook/assets/player-count/player-count-text.png" alt="" width="563"><figcaption><p>Player Count (Player Count Text)</p></figcaption></figure> > **Warning:** The client only draws text there when it thinks the server is a version it cannot join, so filling this in also puts the red incompatible-version marker on your entry in the list. Leave it empty if you would rather keep the normal numbers. ## Online Players With this option, you can override the first number. A placeholder that resolves to something other than a number is ignored and the real count is used, which leaves vanished staff out. <figure><img src="../../.gitbook/assets/player-count/online-players.png" alt="" width="563"><figcaption><p>Player Count (Online Players)</p></figcaption></figure> ## Max Players With this option, you can override the second number, which is otherwise the slot count from **server.properties**. <figure><img src="../../.gitbook/assets/player-count/max-players.png" alt="" width="563"><figcaption><p>Player Count (Max Players)</p></figcaption></figure> ## Extra Players With this option, you can report the maximum as however many players are online plus this amount, so the server never looks full no matter how busy it gets. It is ignored while **Max Players** is set, since that one wins. <figure><img src="../../.gitbook/assets/player-count/extra-players.png" alt="" width="563"><figcaption><p>Player Count (Extra Players)</p></figcaption></figure> ## Hover Lines With this option, you can replace the player sample that appears when the count is hovered with lines of your own. It is the one place in the list where more than two lines of text fit, which is what makes it useful for a rules note or a vote link. <figure><img src="../../.gitbook/assets/player-count/hover-lines.png" alt="" width="563"><figcaption><p>Player Count (Hover Lines)</p></figcaption></figure> ## Hide Players With this option, you can drop the count from the ping entirely, so nothing is drawn where the numbers usually are. <figure><img src="../../.gitbook/assets/player-count/hide-players.png" alt="" width="563"><figcaption><p>Player Count (Hide Players)</p></figcaption></figure> ## Hide Hover With this option, you can remove the hover list without touching the numbers, which keeps the count honest while keeping your players' names off it. <figure><img src="../../.gitbook/assets/player-count/hide-hover.png" alt="" width="563"><figcaption><p>Player Count (Hide Hover)</p></figcaption></figure> > **Warning:** **Player Count Text**, **Online Players**, **Hover Lines**, **Hide Players** and **Hide Hover** need [Paper](https://papermc.io/) or a fork of it, because Spigot's ping event cannot express any of them. On plain Spigot the module says so once on startup and applies what is left: the message, the icon, **Max Players** and **Extra Players**. Every [MOTD placeholder](placeholders.md) works in these options as well. While a maintenance is running, its own [player count and hover messages](../maintenance.md#player-count-message) take over when they are turned on. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/motd/player-count --- # 🏃 Parkour > **Info:** This module is configured in **modules/parkour.yml** inside the PhoenixLobby folder. ## Parkour The parkour builds itself while the player runs, so there is nothing to build by hand. A player starts a run with **/parkour**, jumps as far as they can, and the run ends when they fall or when they use **/parkour stop**. The score is the amount of jumps they made. Parkours are created from **Editor > Parkour**. Stand where you want the parkour to be and click **Add Parkour**. <figure><img src="../../.gitbook/assets/parkour/add-parkour.png" alt="" width="563"><figcaption><p>Parkour (Add Parkour)</p></figcaption></figure> A parkour needs two things before anyone can play it, the **Parkour Region** and the **Start Location**. Everything else is optional. Left-click the parkour in the list to open its editor: [Edit Parkour](edit-parkour.md), [Block Palette](#block-palette) and [Rewards](#rewards). Settings shared by every parkour on the server are on [Parkour Settings](settings.md). ## Commands | Command | Description | | --------------------------- | ------------------------------------------------ | | `/parkour` | Starts a random parkour the player has access to | | `/parkour <identifier>` | Starts a specific parkour | | `/parkour stop` | Leaves the run | | `/parkour top [identifier]` | Shows the leaderboard | > **Info:** The parkours themselves live under the **parkours** section at the end of the file. ## Block Palette With this option, you can configure which blocks the generated jumps use. Left-click it to open the palette, where every block currently in use is listed. <figure><img src="../../.gitbook/assets/parkour/block-palette.png" alt="" width="563"><figcaption><p>Edit Parkour (Block Palette)</p></figcaption></figure> ### Add Block Inside the palette, **Add Block** puts another block into the list. Add as many as you like to give the run some variety. <figure><img src="../../.gitbook/assets/parkour/add-block.png" alt="" width="563"><figcaption><p>Block Palette (Add Block)</p></figcaption></figure> ### Random Block Per Jump With this option, you decide how the palette is used. When it is enabled, every jump picks a new block from the palette, which gives a colourful run. When it is disabled, one block is chosen for the whole run instead, so each attempt keeps a single look. <figure><img src="../../.gitbook/assets/parkour/random-block-per-jump.png" alt="" width="563"><figcaption><p>Edit Parkour (Random Block Per Jump)</p></figcaption></figure> > **Info:** A palette with only one block makes this option have no visible effect. ## Rewards With this option, you can configure the rewards given for reaching a certain score. Left-click it to open the reward list of the parkour. <figure><img src="../../.gitbook/assets/parkour/rewards.png" alt="" width="563"><figcaption><p>Edit Parkour (Rewards)</p></figcaption></figure> ### Add Reward Inside the list, **Add Reward** creates a new score reward. Each reward is its own entry with its own score and actions, so a parkour can hand out several of them during a single run. <figure><img src="../../.gitbook/assets/parkour/add-reward.png" alt="" width="563"><figcaption><p>Rewards (Add Reward)</p></figcaption></figure> ### Required Score With this option, you can change the score a player has to reach before the reward is earned. <figure><img src="../../.gitbook/assets/parkour/required-score.png" alt="" width="563"><figcaption><p>Reward (Required Score)</p></figcaption></figure> ### Repeating With this option, you define whether the reward is given every time the score is a multiple of the required score. With a required score of 10 and repeating enabled, the player is rewarded at 10, 20, 30 and so on. With it disabled, the reward is given once at 10 only. <figure><img src="../../.gitbook/assets/parkour/repeating.png" alt="" width="563"><figcaption><p>Reward (Repeating)</p></figcaption></figure> ### Actions With this option, you can edit the actions executed when the reward is earned. The same action types used by npcs and hotbar items are available here, so a reward can give money, run a command, send a message or play a sound. <figure><img src="../../.gitbook/assets/parkour/actions.png" alt="" width="563"><figcaption><p>Reward (Actions)</p></figcaption></figure> > **Info:** A reward with no actions is still tracked, it simply does nothing when the score is reached. ## Placeholders ### Parkour Placeholders | Placeholders | Description | | -------------------------------------------- | --------------------------------------------- | | %phoenixlobby\_parkour\_count% | Returns the amount of playable parkours | | %phoenixlobby\_parkour\_playing% | Returns the amount of users playing | | %phoenixlobby\_parkour\_playing\_\<parkour>% | Returns the amount of users playing a parkour | The parkour is always the identifier you gave it in the editor, for example %phoenixlobby\_parkour\_playing\_lobbyjump%. ### Run Placeholders | Placeholders | Description | | ----------------------------------- | -------------------------------------- | | %phoenixlobby\_parkour\_score% | Returns the score of the current run | | %phoenixlobby\_parkour\_time% | Returns the time of the current run | | %phoenixlobby\_parkour\_name% | Returns the parkour of the current run | | %phoenixlobby\_parkour\_difficulty% | Returns the difficulty of the current run | > **Info:** These are empty while the user is not on a parkour. ### Statistic Placeholders | Placeholders | Description | | ------------------------------------------------ | --------------------------------------------------------- | | %phoenixlobby\_parkour\_gamesplayed% | Returns the amount of runs the user finished | | %phoenixlobby\_parkour\_gamesplayed\_\<parkour>% | Returns the amount of runs the user finished on a parkour | | %phoenixlobby\_parkour\_highscore% | Returns the best score of the user on all parkours | | %phoenixlobby\_parkour\_highscore\_\<parkour>% | Returns the best score of the user on a parkour | | %phoenixlobby\_parkour\_besttime% | Returns the best time of the user on all parkours | | %phoenixlobby\_parkour\_besttime\_\<parkour>% | Returns the best time of the user on a parkour | | %phoenixlobby\_parkour\_position% | Returns the leaderboard position of the user | | %phoenixlobby\_parkour\_position\_\<parkour>% | Returns the leaderboard position of the user on a parkour | ### Leaderboard Placeholders | Placeholders | Description | | ----------------------------------------------------------- | ---------------------------------------------- | | %phoenixlobby\_parkour\_top\_\<parkour>\_\<position>\_name% | Returns the name on that leaderboard position | | %phoenixlobby\_parkour\_top\_\<parkour>\_\<position>\_score% | Returns the score on that leaderboard position | | %phoenixlobby\_parkour\_top\_\<parkour>\_\<position>\_time% | Returns the time on that leaderboard position | For example, %phoenixlobby\_parkour\_top\_lobbyjump\_1\_name% returns the best player of that parkour. > **Info:** Leave the parkour out to use the global leaderboard, for example %phoenixlobby\_parkour\_top\_1\_name%. It ranks users by their best score on any parkour. The leaderboard holds the top 20 by default, which you can change with the leaderboard size. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/parkour --- # 🧱 Block Palette ## Block Palette With this option, you can configure which blocks the generated jumps use. Left-click it to open the palette, where every block currently in use is listed. <figure><img src="../../.gitbook/assets/parkour/block-palette.png" alt="" width="563"><figcaption><p>Edit Parkour (Block Palette)</p></figcaption></figure> ## Add Block Inside the palette, **Add Block** puts another block into the list. Add as many as you like to give the run some variety. <figure><img src="../../.gitbook/assets/parkour/add-block.png" alt="" width="563"><figcaption><p>Block Palette (Add Block)</p></figcaption></figure> ## Random Block Per Jump With this option, you decide how the palette is used. When it is enabled, every jump picks a new block from the palette, which gives a colourful run. When it is disabled, one block is chosen for the whole run instead, so each attempt keeps a single look. <figure><img src="../../.gitbook/assets/parkour/random-block-per-jump.png" alt="" width="563"><figcaption><p>Edit Parkour (Random Block Per Jump)</p></figcaption></figure> > **Info:** A palette with only one block makes this option have no visible effect. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/parkour/block-palette --- # 🖌️ Edit Parkour ## Change Identifier With this option, you can rename the identifier of the parkour. The identifier is used internally by the plugin and has to be unique, and it is also the name players use with **/parkour \<identifier>**. <figure><img src="../../.gitbook/assets/parkour/change-identifier.png" alt="" width="563"><figcaption><p>Edit Parkour (Change Identifier)</p></figcaption></figure> ## Display With this option, you can change the item and the name used for the parkour inside the editor. The item is only how the parkour is listed in that menu and is never seen in the world. The name is not — it is what `%phoenixlobby_parkour_name%` prints and what players read on the [leaderboard](settings.md#leaderboard), so give it something presentable. <figure><img src="../../.gitbook/assets/parkour/display.png" alt="" width="563"><figcaption><p>Edit Parkour (Display)</p></figcaption></figure> ## Parkour Region With this option, you define the area the generated jumps are allowed to spawn inside of. The run stays within this box, so it decides how much room the parkour has to build itself. > **Warning:** A parkour cannot be played until both the **Parkour Region** and the **Start Location** are set. <figure><img src="../../.gitbook/assets/parkour/parkour-region.png" alt="" width="563"><figcaption><p>Edit Parkour (Parkour Region)</p></figcaption></figure> ## Start Location With this option, you move the starting point of the parkour to the position you are standing at. It has to be inside the region. <figure><img src="../../.gitbook/assets/parkour/start-location.png" alt="" width="563"><figcaption><p>Edit Parkour (Start Location)</p></figcaption></figure> ## Return Location With this option, you define where players are sent once a run ends. If you leave it empty, they are returned to the place they started from. <figure><img src="../../.gitbook/assets/parkour/return-location.png" alt="" width="563"><figcaption><p>Edit Parkour (Return Location)</p></figcaption></figure> ## Difficulty With this option, you can change how far apart the jumps are. Five options are available: | Difficulty | Jump gap | | ---------- | -------- | | Easy | 2 blocks | | Medium | 2 to 3 blocks | | Hard | 3 to 4 blocks | | Hardcore | 4 to 5 blocks | | Progressive | Starts at 2 blocks and steps up as the score rises | **Progressive** uses the scores from **modules/parkour.yml** to decide when it steps up, so you can tune it with the medium-score, hard-score and hardcore-score values. <figure><img src="../../.gitbook/assets/parkour/difficulty.png" alt="" width="563"><figcaption><p>Edit Parkour (Difficulty)</p></figcaption></figure> ## Height Variation With this option, you can change how many blocks up or down a jump is allowed to move. A value of 0 keeps the run flat, while a higher value lets it climb and drop more. <figure><img src="../../.gitbook/assets/parkour/height-variation.png" alt="" width="563"><figcaption><p>Edit Parkour (Height Variation)</p></figcaption></figure> ## Permission Required With this option, you define whether a permission is needed to play the parkour. While it is disabled, the permission below is ignored and everyone can play. <figure><img src="../../.gitbook/assets/parkour/permission-required.png" alt="" width="563"><figcaption><p>Edit Parkour (Permission Required)</p></figcaption></figure> ## Permission With this option, you can change the permission that is checked when **Permission Required** is enabled. <figure><img src="../../.gitbook/assets/parkour/permission.png" alt="" width="563"><figcaption><p>Edit Parkour (Permission)</p></figcaption></figure> ## Parkour State With this option, you can disable a parkour without removing it. A disabled parkour keeps all of its settings but cannot be played. <figure><img src="../../.gitbook/assets/parkour/parkour-state.png" alt="" width="563"><figcaption><p>Edit Parkour (Parkour State)</p></figcaption></figure> ## Clone Parkour With this option, you can duplicate the parkour under a new identifier, which is useful when you want a second parkour sharing the same palette and difficulty. <figure><img src="../../.gitbook/assets/parkour/clone-parkour.png" alt="" width="563"><figcaption><p>Edit Parkour (Clone Parkour)</p></figcaption></figure> ## Delete Parkour With this option, you can remove the parkour from the server. > **Danger:** Deleting a parkour cannot be undone. Use **Parkour State** instead if you only want to take it out of rotation for a while. <figure><img src="../../.gitbook/assets/parkour/delete-parkour.png" alt="" width="563"><figcaption><p>Edit Parkour (Delete Parkour)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/parkour/edit-parkour --- # 🔍 Placeholders ## Parkour Placeholders | Placeholders | Description | | -------------------------------------------- | --------------------------------------------- | | %phoenixlobby\_parkour\_count% | Returns the amount of playable parkours | | %phoenixlobby\_parkour\_playing% | Returns the amount of users playing | | %phoenixlobby\_parkour\_playing\_\<parkour>% | Returns the amount of users playing a parkour | The parkour is always the identifier you gave it in the editor, for example %phoenixlobby\_parkour\_playing\_lobbyjump%. ## Run Placeholders | Placeholders | Description | | ----------------------------------- | -------------------------------------- | | %phoenixlobby\_parkour\_score% | Returns the score of the current run | | %phoenixlobby\_parkour\_time% | Returns the time of the current run | | %phoenixlobby\_parkour\_name% | Returns the parkour of the current run | | %phoenixlobby\_parkour\_difficulty% | Returns the difficulty of the current run | > **Info:** These are empty while the user is not on a parkour. ## Statistic Placeholders | Placeholders | Description | | ------------------------------------------------ | --------------------------------------------------------- | | %phoenixlobby\_parkour\_gamesplayed% | Returns the amount of runs the user finished | | %phoenixlobby\_parkour\_gamesplayed\_\<parkour>% | Returns the amount of runs the user finished on a parkour | | %phoenixlobby\_parkour\_highscore% | Returns the best score of the user on all parkours | | %phoenixlobby\_parkour\_highscore\_\<parkour>% | Returns the best score of the user on a parkour | | %phoenixlobby\_parkour\_besttime% | Returns the best time of the user on all parkours | | %phoenixlobby\_parkour\_besttime\_\<parkour>% | Returns the best time of the user on a parkour | | %phoenixlobby\_parkour\_position% | Returns the leaderboard position of the user | | %phoenixlobby\_parkour\_position\_\<parkour>% | Returns the leaderboard position of the user on a parkour | ## Leaderboard Placeholders | Placeholders | Description | | ----------------------------------------------------------- | ---------------------------------------------- | | %phoenixlobby\_parkour\_top\_\<parkour>\_\<position>\_name% | Returns the name on that leaderboard position | | %phoenixlobby\_parkour\_top\_\<parkour>\_\<position>\_score% | Returns the score on that leaderboard position | | %phoenixlobby\_parkour\_top\_\<parkour>\_\<position>\_time% | Returns the time on that leaderboard position | For example, %phoenixlobby\_parkour\_top\_lobbyjump\_1\_name% returns the best player of that parkour. > **Info:** Leave the parkour out to use the global leaderboard, for example %phoenixlobby\_parkour\_top\_1\_name%. It ranks users by their best score on any parkour. The leaderboard holds the top 20 by default, which you can change with the leaderboard size. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/parkour/placeholders --- # 🏆 Rewards ## Rewards With this option, you can configure the rewards given for reaching a certain score. Left-click it to open the reward list of the parkour. <figure><img src="../../.gitbook/assets/parkour/rewards.png" alt="" width="563"><figcaption><p>Edit Parkour (Rewards)</p></figcaption></figure> ## Add Reward Inside the list, **Add Reward** creates a new score reward. Each reward is its own entry with its own score and actions, so a parkour can hand out several of them during a single run. <figure><img src="../../.gitbook/assets/parkour/add-reward.png" alt="" width="563"><figcaption><p>Rewards (Add Reward)</p></figcaption></figure> ## Required Score With this option, you can change the score a player has to reach before the reward is earned. <figure><img src="../../.gitbook/assets/parkour/required-score.png" alt="" width="563"><figcaption><p>Reward (Required Score)</p></figcaption></figure> ## Repeating With this option, you define whether the reward is given every time the score is a multiple of the required score. With a required score of 10 and repeating enabled, the player is rewarded at 10, 20, 30 and so on. With it disabled, the reward is given once at 10 only. <figure><img src="../../.gitbook/assets/parkour/repeating.png" alt="" width="563"><figcaption><p>Reward (Repeating)</p></figcaption></figure> ## Actions With this option, you can edit the actions executed when the reward is earned. The same action types used by npcs and hotbar items are available here, so a reward can give money, run a command, send a message or play a sound. <figure><img src="../../.gitbook/assets/parkour/actions.png" alt="" width="563"><figcaption><p>Reward (Actions)</p></figcaption></figure> > **Info:** A reward with no actions is still tracked, it simply does nothing when the score is reached. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/parkour/rewards --- # ⚙️ Parkour Settings > **Info:** These are configured in **modules/parkour.yml** inside the PhoenixLobby folder, above the `parkours` list. ## Parkour Settings Everything here applies to every parkour on the server at once, unlike the options on [Edit Parkour](edit-parkour.md) which belong to a single one. Open it from **Editor > Parkour > Parkour Settings**. <figure><img src="../../.gitbook/assets/parkour/parkour-settings.png" alt="" width="563"><figcaption><p>Parkour (Parkour Settings)</p></figcaption></figure> ## Blocks Ahead With this option, you can change how many jumps are generated in front of the player. A higher value shows more of the route coming up, and a value of 1 only ever shows the next block. <figure><img src="../../.gitbook/assets/parkour-settings/blocks-ahead.png" alt="" width="563"><figcaption><p>Parkour Settings (Blocks Ahead)</p></figcaption></figure> ## AFK Timeout With this option, you can change how many seconds a player may stand still before their run is ended for them, which stops an abandoned run from holding its blocks in the world forever. <figure><img src="../../.gitbook/assets/parkour-settings/afk-timeout.png" alt="" width="563"><figcaption><p>Parkour Settings (AFK Timeout)</p></figcaption></figure> ## Clear Inventory With this option, you can empty the player's inventory for the duration of a run and give it back when they finish, so nobody can ride a run out with an elytra or a pearl. <figure><img src="../../.gitbook/assets/parkour-settings/clear-inventory.png" alt="" width="563"><figcaption><p>Parkour Settings (Clear Inventory)</p></figcaption></figure> ## Action Bar With this option, you can show the running score above the hotbar while a player is on a run. <figure><img src="../../.gitbook/assets/parkour-settings/action-bar.png" alt="" width="563"><figcaption><p>Parkour Settings (Action Bar)</p></figcaption></figure> ## Titles With this option, you can show the titles that appear in the middle of the screen when a run starts, ends or beats a record. <figure><img src="../../.gitbook/assets/parkour-settings/titles.png" alt="" width="563"><figcaption><p>Parkour Settings (Titles)</p></figcaption></figure> ## Actions What runs on starting, jumping, failing and beating a record has its own page: [Actions](settings/actions.md). <figure><img src="../../.gitbook/assets/parkour-settings/actions.png" alt="" width="563"><figcaption><p>Parkour Settings (Actions)</p></figcaption></figure> ## Particles The marker drawn on the next block has its own page: [Particles](settings/particles.md). <figure><img src="../../.gitbook/assets/parkour-settings/particles.png" alt="" width="563"><figcaption><p>Parkour Settings (Particles)</p></figcaption></figure> ## Score The thresholds a progressive parkour ramps its difficulty at have their own page: [Score](settings/score.md). <figure><img src="../../.gitbook/assets/parkour-settings/score.png" alt="" width="563"><figcaption><p>Parkour Settings (Score)</p></figcaption></figure> ## Leaderboard How many entries `/parkour top` keeps and how often it is rebuilt has its own page: [Leaderboard](settings/leaderboard.md). <figure><img src="../../.gitbook/assets/parkour-settings/leaderboard.png" alt="" width="563"><figcaption><p>Parkour Settings (Leaderboard)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/parkour/settings --- # 🗨️ Actions ## Actions Four moments of a run can each fire their own actions, which is what gives a run its sounds and feedback. They apply to every parkour on the server. Open it from **Editor > Parkour > Parkour Settings > Actions**. Every [action type](../../../plugin-information/action-types.md) is available in all four. > **Info:** These are separate from a parkour's [Rewards](../rewards.md), which fire once at a chosen score rather than on every jump. ## Start Actions With this option, you can edit what runs the moment a player begins a run. <figure><img src="../../../.gitbook/assets/actions/start-actions.png" alt="" width="563"><figcaption><p>Actions (Start Actions)</p></figcaption></figure> ## Jump Actions With this option, you can edit what runs on every successful jump. Keep it light, since it fires once per block for as long as the run lasts. <figure><img src="../../../.gitbook/assets/actions/jump-actions.png" alt="" width="563"><figcaption><p>Actions (Jump Actions)</p></figcaption></figure> ## Fail Actions With this option, you can edit what runs when a player misses a jump and the run ends. <figure><img src="../../../.gitbook/assets/actions/fail-actions.png" alt="" width="563"><figcaption><p>Actions (Fail Actions)</p></figcaption></figure> ## New Record Actions With this option, you can edit what runs when a player beats their own best score. <figure><img src="../../../.gitbook/assets/actions/new-record-actions.png" alt="" width="563"><figcaption><p>Actions (New Record Actions)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/parkour/settings/actions --- # 🏆 Leaderboard ## Leaderboard The leaderboard is the ranking of best scores shown by `/parkour top` and by the [leaderboard placeholders](../placeholders.md). It is built on a timer rather than on every run, so a busy lobby is not re-sorting the whole table each time somebody falls. Open it from **Editor > Parkour > Parkour Settings > Leaderboard**. ## Leaderboard Size With this option, you can change how many places the leaderboard keeps. It also sets how far the position placeholders reach, so a size of 10 means nothing above tenth place can be shown. <figure><img src="../../../.gitbook/assets/leaderboard/leaderboard-size.png" alt="" width="563"><figcaption><p>Leaderboard (Leaderboard Size)</p></figcaption></figure> ## Leaderboard Refresh With this option, you can change how many seconds pass between two rebuilds. A new record does not appear until the next rebuild, so a low value keeps it current at the cost of running the query more often. <figure><img src="../../../.gitbook/assets/leaderboard/leaderboard-refresh.png" alt="" width="563"><figcaption><p>Leaderboard (Leaderboard Refresh)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/parkour/settings/leaderboard --- # ✨ Particles ## Particles The next block of a run can be marked with particles so the player can see where to jump, which matters most when the palette blends into the scenery behind it. Open it from **Editor > Parkour > Parkour Settings > Particles**. With this option, you can turn the marker on and off. <figure><img src="../../../.gitbook/assets/particles/particles.png" alt="" width="563"><figcaption><p>Particles (Particles)</p></figcaption></figure> ## Particle Type With this option, you can change which particle is drawn. Only the particles the server actually knows are offered, so nothing here can be set to a name the server cannot play. <figure><img src="../../../.gitbook/assets/particles/particle-type.png" alt="" width="563"><figcaption><p>Particles (Particle Type)</p></figcaption></figure> ## Particle Amount With this option, you can change how many particles are drawn on the block each time. A high value is easier to see and costs more to send, especially with several players running at once. <figure><img src="../../../.gitbook/assets/particles/particle-amount.png" alt="" width="563"><figcaption><p>Particles (Particle Amount)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/parkour/settings/particles --- # 📈 Score ## Score A parkour set to the Progressive [difficulty](../edit-parkour.md#difficulty) starts easy and gets harder the further a player gets. These three numbers are the scores it steps up at. Open it from **Editor > Parkour > Parkour Settings > Score**. A run begins on easy jumps and moves to the next tier each time the score passes one of these thresholds, so with the defaults a player has easy jumps for the first 10, medium up to 30, hard up to 70, and hardcore from there on. > **Info:** None of this applies to a parkour set to a fixed difficulty. Those keep the same jump gap for the whole run. ## Medium Score With this option, you can change the score at which the jumps step up from easy to medium. <figure><img src="../../../.gitbook/assets/score/medium-score.png" alt="" width="563"><figcaption><p>Score (Medium Score)</p></figcaption></figure> ## Hard Score With this option, you can change the score at which the jumps step up to hard. <figure><img src="../../../.gitbook/assets/score/hard-score.png" alt="" width="563"><figcaption><p>Score (Hard Score)</p></figcaption></figure> ## Hardcore Score With this option, you can change the score at which the jumps step up to hardcore, the widest gap the generator will produce. <figure><img src="../../../.gitbook/assets/score/hardcore-score.png" alt="" width="563"><figcaption><p>Score (Hardcore Score)</p></figcaption></figure> > **Warning:** Keep the three in ascending order. A hard score below the medium one skips a tier entirely. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/parkour/settings/score --- # 📋 Scoreboard > **Info:** This module is configured in **modules/scoreboard.yml** inside the PhoenixLobby folder. ## Scoreboard The scoreboard is the panel down the right side of the screen. Its title can be animated by cycling through a list of frames, and its lines are refreshed on a timer so placeholders stay current. Open it from **Editor > Modules > Scoreboard**. <figure><img src="../.gitbook/assets/modules/scoreboard.png" alt="" width="563"><figcaption><p>Modules (Scoreboard)</p></figcaption></figure> ## Refresh Rate With this option, you can change how many ticks pass between two refreshes of the lines. Lower redraws sooner and costs more, and 20 ticks is one second. <figure><img src="../.gitbook/assets/scoreboard/refresh-rate.png" alt="" width="563"><figcaption><p>Scoreboard (Refresh Rate)</p></figcaption></figure> ## Header Interval With this option, you can change how many ticks each title frame stays up before the next one is shown. A low value makes the animation run fast. <figure><img src="../.gitbook/assets/scoreboard/header-interval.png" alt="" width="563"><figcaption><p>Scoreboard (Header Interval)</p></figcaption></figure> ## Header Frames With this option, you can edit the frames the title cycles through. One entry is one frame, and the animation is built by repeating a frame to hold it and shifting colours between frames, which is how the default wave effect is made. A single frame leaves the title still. <figure><img src="../.gitbook/assets/scoreboard/header-frames.png" alt="" width="563"><figcaption><p>Scoreboard (Header Frames)</p></figcaption></figure> ## Lines With this option, you can edit the lines under the title, in the order they are listed. An empty entry leaves a blank line for spacing. PlaceholderAPI placeholders work here. <figure><img src="../.gitbook/assets/scoreboard/lines.png" alt="" width="563"><figcaption><p>Scoreboard (Lines)</p></figcaption></figure> ## Per World Scoreboards A board is a second scoreboard used only in the worlds you assign to it. A player standing in one of those worlds sees the board's title and lines instead of the default ones, and everybody else keeps the normal scoreboard. Open the list from **Editor > Modules > Scoreboard > Boards**. The green pane at the end of the row adds a board, and shift + right-clicking one deletes it. Each board is created with a generated name such as `board_2258`, which is only used to tell them apart in the config. <figure><img src="../.gitbook/assets/boards/add-board.png" alt="" width="563"><figcaption><p>Boards (Add Board)</p></figcaption></figure> ### Worlds With this option, you can pick the worlds this board applies to. Clicking it opens a list of the worlds currently loaded on the server, so there is nothing to type and no way to misspell a name. <figure><img src="../.gitbook/assets/edit-board/worlds.png" alt="" width="563"><figcaption><p>Edit Board (Worlds)</p></figcaption></figure> <figure><img src="../.gitbook/assets/edit-board/add-world.png" alt="" width="563"><figcaption><p>Worlds (Add World)</p></figcaption></figure> <figure><img src="../.gitbook/assets/edit-board/world-picker.png" alt="" width="563"><figcaption><p>Add World (Select World)</p></figcaption></figure> > **Warning:** A board with no worlds assigned never applies to anybody. It stays in the config doing nothing until you give it at least one world. ### Header Interval With this option, you can change how many ticks each title frame of this board stays up. It is separate from the default scoreboard's, so a board can animate at its own speed. <figure><img src="../.gitbook/assets/edit-board/header-interval.png" alt="" width="563"><figcaption><p>Edit Board (Header Interval)</p></figcaption></figure> ### Header Frames With this option, you can edit the title frames used in this board's worlds, which is how a world gets its own name at the top of the scoreboard. <figure><img src="../.gitbook/assets/edit-board/header-frames.png" alt="" width="563"><figcaption><p>Edit Board (Header Frames)</p></figcaption></figure> ### Lines With this option, you can edit the lines shown in this board's worlds. They replace the default lines outright rather than being added to them, so write out every line you want to see. <figure><img src="../.gitbook/assets/edit-board/lines.png" alt="" width="563"><figcaption><p>Edit Board (Lines)</p></figcaption></figure> > **Info:** A board carries a title and lines only. **Refresh Rate** and **Feature State** stay on the main scoreboard and apply everywhere. > **Info:** If a world ends up on more than one board, the first board that lists it wins. Keep a world on a single board to avoid guessing which one that is. ## Feature State With this option, you can turn the scoreboard off completely, for the default one and every board at once. <figure><img src="../.gitbook/assets/scoreboard/feature-state.png" alt="" width="563"><figcaption><p>Scoreboard (Feature State)</p></figcaption></figure> <figure><img src="../.gitbook/assets/image (2).png" alt="" width="563"><figcaption><p>Default Scoreboard</p></figcaption></figure> > **Info:** Players can hide the scoreboard for themselves with [`/togglescoreboard`](../featues/player-settings.md). Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/scoreboard --- # 🌍 Per World Scoreboards ## Per World Scoreboards A board is a second scoreboard used only in the worlds you assign to it. A player standing in one of those worlds sees the board's title and lines instead of the default ones, and everybody else keeps the normal scoreboard. Open the list from **Editor > Modules > Scoreboard > Boards**. The green pane at the end of the row adds a board, and shift + right-clicking one deletes it. Each board is created with a generated name such as `board_2258`, which is only used to tell them apart in the config. <figure><img src="../../.gitbook/assets/boards/add-board.png" alt="" width="563"><figcaption><p>Boards (Add Board)</p></figcaption></figure> ## Worlds With this option, you can pick the worlds this board applies to. Clicking it opens a list of the worlds currently loaded on the server, so there is nothing to type and no way to misspell a name. <figure><img src="../../.gitbook/assets/edit-board/worlds.png" alt="" width="563"><figcaption><p>Edit Board (Worlds)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/edit-board/add-world.png" alt="" width="563"><figcaption><p>Worlds (Add World)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/edit-board/world-picker.png" alt="" width="563"><figcaption><p>Add World (Select World)</p></figcaption></figure> > **Warning:** A board with no worlds assigned never applies to anybody. It stays in the config doing nothing until you give it at least one world. ## Header Interval With this option, you can change how many ticks each title frame of this board stays up. It is separate from the default scoreboard's, so a board can animate at its own speed. <figure><img src="../../.gitbook/assets/edit-board/header-interval.png" alt="" width="563"><figcaption><p>Edit Board (Header Interval)</p></figcaption></figure> ## Header Frames With this option, you can edit the title frames used in this board's worlds, which is how a world gets its own name at the top of the scoreboard. <figure><img src="../../.gitbook/assets/edit-board/header-frames.png" alt="" width="563"><figcaption><p>Edit Board (Header Frames)</p></figcaption></figure> ## Lines With this option, you can edit the lines shown in this board's worlds. They replace the default lines outright rather than being added to them, so write out every line you want to see. <figure><img src="../../.gitbook/assets/edit-board/lines.png" alt="" width="563"><figcaption><p>Edit Board (Lines)</p></figcaption></figure> > **Info:** A board carries a title and lines only. **Refresh Rate** and **Feature State** stay on the [Scoreboard](../scoreboard.md) page and apply everywhere. > **Info:** If a world ends up on more than one board, the first board that lists it wins. Keep a world on a single board to avoid guessing which one that is. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/scoreboard/per-world-scoreboards --- # 📑 Tablist > **Info:** This module is configured in **modules/tablist.yml** inside the PhoenixLobby folder. ## Tablist The tablist is the list of players shown while the tab key is held. This module replaces the header and footer around it, and can also restyle the player names inside it, sort them by rank and hide players in other worlds. Open it from **Editor > Modules > Tablist**. ## Refresh Rate With this option, you can change how many ticks pass between two refreshes, which is what keeps placeholders in the header and footer current. 20 ticks is one second. <figure><img src="../.gitbook/assets/tablist/refresh-rate.png" alt="" width="563"><figcaption><p>Tablist (Refresh Rate)</p></figcaption></figure> ## Header With this option, you can edit the lines shown above the player list. An empty entry leaves a blank line for spacing, and PlaceholderAPI placeholders work here. <figure><img src="../.gitbook/assets/tablist/header.png" alt="" width="563"><figcaption><p>Tablist (Header)</p></figcaption></figure> ## Footer With this option, you can edit the lines shown below the player list. <figure><img src="../.gitbook/assets/tablist/footer.png" alt="" width="563"><figcaption><p>Tablist (Footer)</p></figcaption></figure> ## Per World Playerlist With this option, you can hide players who are in a different world, so each world's tablist only lists the people actually around you. <figure><img src="../.gitbook/assets/tablist/per-world-playerlist.png" alt="" width="563"><figcaption><p>Tablist (Per World Playerlist)</p></figcaption></figure> ## Name Formatting With this option, you can restyle how each player's name appears inside the list, using the **Tab Format** of their [group](#groups). <figure><img src="../.gitbook/assets/tablist/name-formatting.png" alt="" width="563"><figcaption><p>Tablist (Name Formatting)</p></figcaption></figure> ## Nametags With this option, you can put a prefix and suffix around the name floating above a player's head in the world, again taken from their [group](#groups). <figure><img src="../.gitbook/assets/tablist/nametags.png" alt="" width="563"><figcaption><p>Tablist (Nametags)</p></figcaption></figure> ## Group Sorting With this option, you can order the list by each group's priority instead of alphabetically, which is what puts staff at the top. <figure><img src="../.gitbook/assets/tablist/group-sorting.png" alt="" width="563"><figcaption><p>Tablist (Group Sorting)</p></figcaption></figure> > **Warning:** **Name Formatting**, **Nametags** and **Group Sorting** all need [LuckPerms](https://luckperms.net/) installed, since that is where each player's group comes from. Without it they stay off no matter what is configured here. ## Groups > **Warning:** Groups need [LuckPerms](https://luckperms.net/) installed. Without it none of this applies, and **Name Formatting**, **Nametags** and **Group Sorting** above stay off. A group ties one of your LuckPerms ranks to how its players look in the tablist and above their heads, and to where they sit in the list. Open it from **Editor > Modules > Tablist > Groups**. <figure><img src="../.gitbook/assets/tablist/groups.png" alt="" width="563"><figcaption><p>Tablist (Groups)</p></figcaption></figure> The green pane at the end of the row adds a group, and shift + right-clicking one deletes it. A `default` group ships with the plugin so there is always something to fall back on. <figure><img src="../.gitbook/assets/groups/add-group.png" alt="" width="563"><figcaption><p>Groups (Add Group)</p></figcaption></figure> ### LuckPerms Group With this option, you can set which LuckPerms group this entry applies to. The name has to match the group in LuckPerms exactly. <figure><img src="../.gitbook/assets/edit-group/luckperms-group.png" alt="" width="563"><figcaption><p>Edit Group (LuckPerms Group)</p></figcaption></figure> ### Priority With this option, you can set where this group sits in the list. **Lower values are shown higher**, so a staff group on 1 appears above the default group on 100. It only has an effect while **Group Sorting** is on. <figure><img src="../.gitbook/assets/edit-group/priority.png" alt="" width="563"><figcaption><p>Edit Group (Priority)</p></figcaption></figure> ### Tab Format With this option, you can set how a player of this group is written inside the tablist, with %player% standing in for their name. It only has an effect while **Name Formatting** is on. <figure><img src="../.gitbook/assets/edit-group/tab-format.png" alt="" width="563"><figcaption><p>Edit Group (Tab Format)</p></figcaption></figure> ### Nametag Prefix With this option, you can set what goes in front of the name floating above a player's head. It only has an effect while **Nametags** is on. <figure><img src="../.gitbook/assets/edit-group/nametag-prefix.png" alt="" width="563"><figcaption><p>Edit Group (Nametag Prefix)</p></figcaption></figure> ### Nametag Suffix With this option, you can set what goes after that name. <figure><img src="../.gitbook/assets/edit-group/nametag-suffix.png" alt="" width="563"><figcaption><p>Edit Group (Nametag Suffix)</p></figcaption></figure> ## Per World Displays A display is a second header and footer used only in the worlds you assign to it. A player standing in one of those worlds sees the display's text instead of the default, and everybody else keeps the normal one. Open the list from **Editor > Modules > Tablist > Per World Displays**. <figure><img src="../.gitbook/assets/tablist/per-world-displays.png" alt="" width="563"><figcaption><p>Tablist (Per World Displays)</p></figcaption></figure> The green pane at the end of the row adds a display, and shift + right-clicking one deletes it. Each is created with a generated name such as `display_9490`, used only to tell them apart in the config. <figure><img src="../.gitbook/assets/displays/add-display.png" alt="" width="563"><figcaption><p>Displays (Add Display)</p></figcaption></figure> ### Worlds With this option, you can pick the worlds this display applies to. Clicking it opens a list of the worlds currently loaded on the server, so there is nothing to type. <figure><img src="../.gitbook/assets/edit-display/worlds.png" alt="" width="563"><figcaption><p>Edit Display (Worlds)</p></figcaption></figure> <figure><img src="../.gitbook/assets/edit-display/add-world.png" alt="" width="563"><figcaption><p>Worlds (Add World)</p></figcaption></figure> > **Warning:** A display with no worlds assigned never applies to anybody. It sits in the config doing nothing until you give it at least one world. ### Header With this option, you can edit the lines shown above the player list in this display's worlds. They replace the default header outright rather than being added to it. <figure><img src="../.gitbook/assets/edit-display/header.png" alt="" width="563"><figcaption><p>Edit Display (Header)</p></figcaption></figure> ### Footer With this option, you can edit the lines shown below the player list in this display's worlds. <figure><img src="../.gitbook/assets/edit-display/footer.png" alt="" width="563"><figcaption><p>Edit Display (Footer)</p></figcaption></figure> > **Info:** A display carries a header and footer only. **Refresh Rate**, the group options and **Feature State** stay on the main tablist and apply everywhere. > **Info:** If a world ends up on more than one display, the first one that lists it wins. Keep a world on a single display to avoid guessing which that is. ## Feature State With this option, you can turn the tablist off completely, which hands the header, footer and player names back to the server's own. <figure><img src="../.gitbook/assets/tablist/feature-state.png" alt="" width="563"><figcaption><p>Tablist (Feature State)</p></figcaption></figure> <figure><img src="../.gitbook/assets/image (1).png" alt="" width="563"><figcaption><p>Tablist - In-Game</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/tablist --- # 👑 Groups > **Warning:** Groups need [LuckPerms](https://luckperms.net/) installed. Without it none of this applies, and **Name Formatting**, **Nametags** and **Group Sorting** on the [Tablist](../tablist.md) page stay off. ## Groups A group ties one of your LuckPerms ranks to how its players look in the tablist and above their heads, and to where they sit in the list. Open it from **Editor > Modules > Tablist > Groups**. The green pane at the end of the row adds a group, and shift + right-clicking one deletes it. A `default` group ships with the plugin so there is always something to fall back on. <figure><img src="../../.gitbook/assets/groups/add-group.png" alt="" width="563"><figcaption><p>Groups (Add Group)</p></figcaption></figure> ## LuckPerms Group With this option, you can set which LuckPerms group this entry applies to. The name has to match the group in LuckPerms exactly. <figure><img src="../../.gitbook/assets/edit-group/luckperms-group.png" alt="" width="563"><figcaption><p>Edit Group (LuckPerms Group)</p></figcaption></figure> ## Priority With this option, you can set where this group sits in the list. **Lower values are shown higher**, so a staff group on 1 appears above the default group on 100. It only has an effect while **Group Sorting** is on. <figure><img src="../../.gitbook/assets/edit-group/priority.png" alt="" width="563"><figcaption><p>Edit Group (Priority)</p></figcaption></figure> ## Tab Format With this option, you can set how a player of this group is written inside the tablist, with %player% standing in for their name. It only has an effect while **Name Formatting** is on. <figure><img src="../../.gitbook/assets/edit-group/tab-format.png" alt="" width="563"><figcaption><p>Edit Group (Tab Format)</p></figcaption></figure> ## Nametag Prefix With this option, you can set what goes in front of the name floating above a player's head. It only has an effect while **Nametags** is on. <figure><img src="../../.gitbook/assets/edit-group/nametag-prefix.png" alt="" width="563"><figcaption><p>Edit Group (Nametag Prefix)</p></figcaption></figure> ## Nametag Suffix With this option, you can set what goes after that name. <figure><img src="../../.gitbook/assets/edit-group/nametag-suffix.png" alt="" width="563"><figcaption><p>Edit Group (Nametag Suffix)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/tablist/groups --- # 🌍 Per World Displays ## Per World Displays A display is a second header and footer used only in the worlds you assign to it. A player standing in one of those worlds sees the display's text instead of the default, and everybody else keeps the normal one. Open the list from **Editor > Modules > Tablist > Per World Displays**. The green pane at the end of the row adds a display, and shift + right-clicking one deletes it. Each is created with a generated name such as `display_9490`, used only to tell them apart in the config. <figure><img src="../../.gitbook/assets/displays/add-display.png" alt="" width="563"><figcaption><p>Displays (Add Display)</p></figcaption></figure> ## Worlds With this option, you can pick the worlds this display applies to. Clicking it opens a list of the worlds currently loaded on the server, so there is nothing to type. <figure><img src="../../.gitbook/assets/edit-display/worlds.png" alt="" width="563"><figcaption><p>Edit Display (Worlds)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/edit-display/add-world.png" alt="" width="563"><figcaption><p>Worlds (Add World)</p></figcaption></figure> > **Warning:** A display with no worlds assigned never applies to anybody. It sits in the config doing nothing until you give it at least one world. ## Header With this option, you can edit the lines shown above the player list in this display's worlds. They replace the default header outright rather than being added to it. <figure><img src="../../.gitbook/assets/edit-display/header.png" alt="" width="563"><figcaption><p>Edit Display (Header)</p></figcaption></figure> ## Footer With this option, you can edit the lines shown below the player list in this display's worlds. <figure><img src="../../.gitbook/assets/edit-display/footer.png" alt="" width="563"><figcaption><p>Edit Display (Footer)</p></figcaption></figure> > **Info:** A display carries a header and footer only. **Refresh Rate**, the group options and **Feature State** stay on the [Tablist](../tablist.md) page and apply everywhere. > **Info:** If a world ends up on more than one display, the first one that lists it wins. Keep a world on a single display to avoid guessing which that is. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/tablist/per-world-displays --- # 🔒 World Protection > **Info:** This module is configured in **modules/world.yml** inside the PhoenixLobby folder. ## World Protection World Protection turns off the parts of survival Minecraft that have no place in a lobby, from fall damage to redstone. There are 43 rules split across five types, and each one is a plain on or off. Open it from **Editor > Modules > World**. Every rule is named after what it stops, so turning one on disables that behaviour. <figure><img src="../.gitbook/assets/modules/world.png" alt="" width="563"><figcaption><p>Modules (World)</p></figcaption></figure> ## Player Rules Everything that can hurt, kill or inconvenience a player. <figure><img src="../.gitbook/assets/world-rules/player.png" alt="" width="563"><figcaption><p>World (Player Rules)</p></figcaption></figure> <details> <summary>All 10 player rules</summary> | Rule | Stops | Default | | ------------------------- | ---------------------------------------------- | ------- | | Disable Hunger Loss | The food bar draining | On | | Disable Player PvP | Players damaging each other | On | | Disable Fall Damage | Damage from landing | On | | Disable Fire Damage | Damage from fire and lava | On | | Disable Drowning | Damage from running out of air | On | | Disable Void Death | Dying to the void below the world | On | | Disable Explosion Damage | Damage to players from explosions | On | | Disable Projectile Damage | Damage from arrows and other projectiles | On | | Disable Berry Bush Damage | Damage from walking through sweet berry bushes | On | | Disable Death Message | The death message being broadcast to chat | On | </details> > **Info:** **Disable Player PvP** stays on even when the [PvP](lobby-pvp.md) module is in use. PvP mode allows damage between fighting players on its own. ## World Rules Everything the world does on its own while nobody touches it. <figure><img src="../.gitbook/assets/world-rules/world.png" alt="" width="563"><figcaption><p>World (World Rules)</p></figcaption></figure> <details> <summary>All 5 world rules</summary> | Rule | Stops | Default | | ----------------------- | --------------------------------------------------- | ------- | | Disable Weather Change | Rain and thunder starting | On | | Disable Mob Spawning | Mobs spawning naturally | On | | Disable Mob Griefing | Mobs changing blocks, such as endermen and creepers | On | | Disable Explosions | Explosions damaging the world | On | | Disable Hopper Transfer | Hoppers moving items between containers | Off | </details> ## Block Rules Everything to do with blocks changing, whether a player caused it or not. <figure><img src="../.gitbook/assets/world-rules/blocks.png" alt="" width="563"><figcaption><p>World (Block Rules)</p></figcaption></figure> <details> <summary>All 13 block rules</summary> | Rule | Stops | Default | | ------------------------- | ---------------------------------------------------- | ------- | | Disable Block Break | Players breaking blocks | On | | Disable Block Place | Players placing blocks | On | | Disable Block Interact | Using doors, buttons, levers and the like | On | | Disable Block Burn | Blocks being destroyed by fire | On | | Disable Block Fire Spread | Fire spreading to other blocks | On | | Disable Block Leaf Decay | Leaves decaying when their tree is cut | On | | Disable Block Physics | Sand and gravel falling, and similar physics updates | Off | | Disable Block Form | Ice and snow forming | On | | Disable Block Fade | Ice and snow melting away | On | | Disable Block Grow | Crops, saplings and vines growing | On | | Disable Liquid Flow | Water and lava spreading | On | | Disable Pistons | Pistons extending and retracting | Off | | Disable Redstone | Redstone circuits updating | Off | </details> > **Warning:** **Disable Pistons** and **Disable Redstone** are off by default because a lobby often has redstone builds in it. Turning either on stops those builds from working. ## Item Rules Everything a player can do with the items they are carrying. <figure><img src="../.gitbook/assets/world-rules/items.png" alt="" width="563"><figcaption><p>World (Item Rules)</p></figcaption></figure> <details> <summary>All 9 item rules</summary> | Rule | Stops | Default | | -------------------------- | --------------------------------------- | ------- | | Disable Item Drop | Dropping items on the ground | On | | Disable Item Pickup | Picking items up | On | | Disable Off Hand Swap | Swapping an item to the off hand | On | | Disable Crafting | Crafting anything | On | | Disable Inventory Interact | Moving items around the inventory | Off | | Disable Book Editing | Writing in a book and quill | On | | Disable Item Consume | Eating and drinking | Off | | Disable Fishing | Casting a fishing rod | On | | Disable Xp Pickup | Picking up experience orbs | On | </details> > **Warning:** **Disable Inventory Interact** is off by default so the [hotbar item](../featues/hotbar-items.md) menus still open. Turning it on stops players moving anything in their own inventory as well. ## Interaction Rules Everything a player can do with the world around them that is not a block. <figure><img src="../.gitbook/assets/world-rules/interactions.png" alt="" width="563"><figcaption><p>World (Interaction Rules)</p></figcaption></figure> <details> <summary>All 6 interaction rules</summary> | Rule | Stops | Default | | -------------------- | ------------------------------------------ | ------- | | Disable Armor Stands | Placing and posing armor stands | On | | Disable Vehicles | Riding boats and minecarts | On | | Disable Elytra | Gliding with an elytra | On | | Disable Riptide | Launching with a riptide trident | On | | Disable Bed Sleep | Sleeping in a bed | On | | Disable Portals | Being taken through nether and end portals | On | </details> ## World State Separate from the rules, this is what the world itself is set to: the time of day, the weather, the difficulty and the gamerules. Open it from **Editor > Modules > World > World State**. <figure><img src="../.gitbook/assets/world-rules/state.png" alt="" width="563"><figcaption><p>World (World State)</p></figcaption></figure> | Option | Description | | ---------------- | -------------------------------------------------------------- | | Lock Time | Holds the world at the time below instead of letting it run | | Time | The time of day to hold, in ticks | | Lock Weather | Holds the weather clear | | Force Difficulty | Sets the world difficulty to the one below | | Difficulty | Which difficulty to force | | Apply Gamerules | Whether the gamerules below are applied | | Gamerules | The gamerules to set, edited as a list of names and values | ## Per World Overrides Every rule above applies to all the worlds the plugin is active in. An override is a world that answers differently, so a hub can be fully locked down while a build world keeps block placing. Open it from **Editor > Modules > World > Per World Overrides**. <figure><img src="../.gitbook/assets/world/per-world-overrides.png" alt="" width="563"><figcaption><p>World (Per World Overrides)</p></figcaption></figure> An override only carries the rules you actually change in it. Anything you leave alone keeps following the values above, so there is no need to restate all 43. ## Players in Matches Players fighting in a PhoenixDuels match or an FFA arena are left alone by every rule above, so an arena inside a lobby world plays like normal survival. The lobby's own respawn and death handling skips them as well. It is on by default, has no editor button, and has no effect without PhoenixDuels. ```yaml ignore-players-in-matches: true ``` ## Protected Worlds By default the rules apply to every world except the ones you list under **disabled**. Switch to **ENABLED_WORLDS** if you would rather list the only worlds the plugin should work in. ## WorldGuard Regions If you use [WorldGuard](https://dev.bukkit.org/projects/worldguard), PhoenixLobby adds two region flags. | Flag | Description | | -------------------------- | ----------------------------------------------- | | `phoenixlobby-restrictpvp` | Players cannot enter PvP mode inside the region | | `phoenixlobby-restrictfly` | Players cannot fly inside the region | Set the flag to **allow** on the region you want to restrict, for example `/rg flag <region> phoenixlobby-restrictfly allow`. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/modules/world-protection --- # 🤖 Action Types In our system's configuration files, you can utilize various action types to perform different actions. These actions enable you to interact with players, broadcast messages, play sounds, set gamemodes, and much more. You can create interactive menus, NPC interactions, double jump, and other type of interactionsin your plugin using these action types. <figure><img src="../.gitbook/assets/actions/action-builder.png" alt="" width="563"><figcaption><p>Action Builder</p></figcaption></figure> ## Action Types | Action Type | Description | | ------------------- | -------------------------------------------- | | \[MESSAGE] | Display a custom message to the player | | \[BROADCAST] | Broadcast a message to every online player | | \[BROADCAST\_WORLD] | Broadcast a message to the player's world | | \[BROADCAST\_SOUND] | Play a sound for every online player | | \[BROADCAST\_SOUND\_WORLD] | Play a sound for the player's world | | \[TITLE] | Display a custom title message to the player | | \[ACTION\_BAR] | This is a custom action bar | | \[PROXY] | Redirect the player to a specific server | | \[TRANSFER] | Send the player to another network | | \[QUEUE] | Put the player in the queue for a server | | \[VISIBILITY] | Change the player's player-visibility state | | \[CLOSE\_INVENTORY] | Close the player's current inventory | | \[COMMAND] | Execute a command (console or player) | | \[GAMEMODE] | Set the player's gamemode | | \[POTION\_EFFECT] | Apply a potion effect to the player | | \[SOUND] | Play a sound for the player | | \[PLAY\_DISC] | Play a music disc for the player | | \[STOP\_DISC] | Stop the music disc the player is hearing | | \[MENU] | Open a custom menu | | \[DELAY] | A way to delay some actions | Explore each action type to learn more about its syntax and usage. Examples are provided to illustrate how to use these actions effectively in your system or application. ## **Send Chat Message** This action sends a custom message to the player. * **Syntax:** `[MESSAGE] <message>` * **Example:** `[MESSAGE] &aThis is a custom message` ## **Broadcast Message** This action sends a message to every player online. * **Syntax:** `[BROADCAST] <message>` * **Example:** `[BROADCAST] &a%player% just joined the lobby` ## **Broadcast Message to World** This action sends a message to every player in the world the player is in. * **Syntax:** `[BROADCAST_WORLD] <message>` * **Example:** `[BROADCAST_WORLD] &aThe event is starting` ## **Broadcast Sound** This action plays a sound for every player online. * **Syntax:** `[BROADCAST_SOUND] <sound>; <volume>; <pitch>` * **Example:** `[BROADCAST_SOUND] entity_player_levelup; 1; 1` ## **Broadcast Sound to World** This action plays a sound for every player in the world the player is in. * **Syntax:** `[BROADCAST_SOUND_WORLD] <sound>; <volume>; <pitch>` * **Example:** `[BROADCAST_SOUND_WORLD] entity_player_levelup; 1; 1` ## **Send Title Message** This action displays a custom title message to the player. * **Syntax:** `[TITLE] <title>; <subtitle>; <fadein>; <stay>; <fadeout>` * **Example:** `[TITLE] &aCustom title;&7Custom Subtitle; 20; 40; 20` ## **Send Action Bar Message** This action displays a custom action bar message to the player. * **Syntax:** `[ACTION_BAR] <message>` * **Example:** `[ACTION_BAR] This is a custom action bar` ## **Connect to Proxy server** This action redirects the player to a specified server using your proxy (BungeeCord & Velocity). * **Syntax:** `[PROXY] <serverName>` * **Example:** `[PROXY] lobby` > **Info:** `[BUNGEE]` is the old name for this action and still works, so an existing config does not need rewriting. It is hidden from the action builder, but you will meet it in the default **menus/servers.yml**. New actions should use `[PROXY]`. ## **Transfer to another Network** This action sends the player to a completely different server address, without a proxy. * **Syntax:** `[TRANSFER] <host>; <port>` * **Example:** `[TRANSFER] play.example.com; 25565` > **Info:** This one needs Paper 1.20.5 or newer, and the player has to be on 1.20.5 or newer as well. Two things can stop a transfer, and each tells the player why: * On a server too old to transfer at all, they are told transfers are not supported. * If the destination refuses them, they are told the transfer is unavailable. A server only accepts arrivals with `accepts-transfers` set to `true` in its **server.properties**, so that is the first thing to check. ## **Join Server Queue** This action puts the player in the queue for a server instead of connecting right away. Requires the proxy plugin with the queue enabled. * **Syntax:** `[QUEUE] <serverName>` * **Example:** `[QUEUE] skyblock` ## **Player Visibility** This action changes whether the player can see other players. * **Syntax:** `[VISIBILITY] <on/off/toggle>` * **Example:** `[VISIBILITY] toggle` ## **Close Inventory** This action closes the inventory the player has open. * **Syntax:** `[CLOSE_INVENTORY]` * **Example:** `[CLOSE_INVENTORY]` ## **Execute Command** This action executes a command either from the console or as a player. * **Syntax:** `[COMMAND] <target>; <command>` * **Example:** `[COMMAND] console; mvtp %player% world` * **Example**: `[COMMAND] player; warp spawn` `%player%` is replaced with the player's name, which is what lets a console command act on them. > **Info:** A `player` command is run the way the player typing it would be, so other plugins see it exactly as they see a real command. The queue commands are the one exception: behind a proxy, `queue`, `joinqueue` and `leavequeue` are forwarded to the proxy instead, so `[COMMAND] player; queue survival` works from a lobby even though the command only exists on the proxy. ## **Change Gamemode** This action sets the gamemode for the player. * **Syntax:** `[GAMEMODE] <gamemode>` * **Example:** `[GAMEMODE] adventure` ## **Give Potion Effect** This action gives the player a potion effect. * **Syntax:** `[POTION_EFFECT] <effect>; <duration>; <amplifier>` * **Example:** `[POTION_EFFECT] speed; 5; 2` ## **Play Sound** This action plays a sound for the player. * **Syntax:** `[SOUND] <sound>; <volume>; <pitch>` * **Example:** `[SOUND] entity_arrow_hit_player; 1; 1` ## **Play Music Disc** This action plays a music disc for the player. Any disc already playing is stopped first. * **Syntax:** `[PLAY_DISC] <disc>` * **Example:** `[PLAY_DISC] cat` * **Example:** `[PLAY_DISC] pigstep` ## **Stop Music Disc** This action stops the music disc the player is currently hearing. * **Syntax:** `[STOP_DISC]` * **Example:** `[STOP_DISC]` ## **Open Menu** This action opens a custom graphical user interface (GUI) menu. * **Syntax:** `[MENU] <menu_name>` * **Example:** `[MENU] servers` * **Example:** `[MENU] lobbies` The name is the file name of the menu, without the `.yml`. Building one of your own is covered on [Menus](../featues/menus.md). ## **Delay** This action will make a short pause until it continues executing actions. * **Syntax:** `[DELAY] <seconds>` * **Example:** `[DELAY] 3` Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/action-types --- # 🤖 Commands ## Commands Below, you will find information on various commands available, their functionalities, and how to use them effectively. **Command alias:** `/phoenixlobby`, `/plobby` **Backend Commands** | Command | Description | | -------------------------------- | ------------------------------------------- | | `/plobby spawn` | Teleport to spawn location | | `/plobby setspawn` | Set spawn location | | `/plobby createNpc <identifier>` | Create npc type | | `/plobby deleteNpc <identifier>` | Delete npc type | | `/plobby bypass` | Bypass world rules | | `/plobby holograms movehere <identifier>` | Move a hologram to where you stand | | `/plobby holograms teleportto <identifier>` | Teleport yourself to a hologram | | `/plobby setup <template>` | Allows you to setup a template of npcs | | `/plobby editor` | Allows you to edit the plugin in-game | | `/plobby editlayout <menu>` | Edit the layout of a menu in-game, see [Menu Layout Editor](../featues/menus/menu-layout-editor.md) | | `/plobby reload` | Reload all PhoenixLobby configuration files | | `/plobby changelog` | Open the list of released builds and their changes | | `/plobby doctor` | Run a health check of the license, proxy link, spawn, database and config files, see [Doctor and Dashboard](https://www.phoenixplugins.com/docs/phoenix-plugins/doctor-and-dashboard) | | `/plobby dashboard` | Show the state of the web dashboard, see [Doctor and Dashboard](https://www.phoenixplugins.com/docs/phoenix-plugins/doctor-and-dashboard) | | `/plobby dashboard link` | Get a code to show this server on phoenixplugins.com, see [Doctor and Dashboard](https://www.phoenixplugins.com/docs/phoenix-plugins/doctor-and-dashboard) | | `/plobby link` | Link a free server to your account for more holograms and NPCs, see [Licensing](licensing.md#linking-a-free-server) | | `/maintenance` | Close this server for maintenance | | `/alts` | Manage the accounts sharing an address | **Player Commands** | Command | Description | | ---------------------- | ---------------------------------------- | | `/spawn` | Teleport to spawn location | | `/lobbies` | Open the lobby selector | | `/servers` | Open the server selector | | `/visibility` | Show or hide the other players | | `/visibility <on/off>` | Set the state instead of toggling it | | `/music` | Open the music menu | | `/parkour` | Start a parkour run | | `/parkour <id>` | Start that parkour in particular | | `/parkour stop` | Leave the run | | `/parkour top [id]` | Show the parkour leaderboard | | `/playersettings` | Open the player settings menu | | `/toggleactionbar` | Turn the action bar on or off | | `/togglebossbar` | Turn the bossbar on or off | | `/togglescoreboard` | Turn the scoreboard on or off | | `/toggleannouncements` | Turn the chat announcements on or off | | `/plobby forms` | Switch between Bedrock forms and chest menus, see [GeyserMC (Bedrock)](../configurations/geysermc-bedrock.md) | **Proxy Commands** | Command | Description | | -------------------------- | ----------------------------------------------------- | | `/queue <server>` | Join the queue for a specific server | | `/server <server>` | Join the queue for a specific server (requires setup) | | `/leavequeue` | Leave current queue | | `/lobby` or `/hub` | Return back to the lobby | | `/lobbies` (lobby command) | Swap between lobbies | | `/<shortcut>` | Connect straight to a server (requires setup) | | `/maintenance` | Close a server or the network for maintenance | | `/alts` | Manage the accounts sharing an address | ## Aliases A few of the player commands accept more than one word for the same thing, so an action or a menu item can be written whichever way reads best. | Command | Also accepts | | ------------------- | ------------------------------------- | | `/parkour start` | `play`, `join` | | `/parkour stop` | `leave`, `quit` | | `/parkour top` | `leaderboard` | `/parkour <id>` and `/parkour start <id>` do the same thing, and both are handy on an [NPC](../featues/npcs/) or a [hotbar item](../featues/hotbar-items.md) that should drop the player straight into one parkour. ## Setup templates `/plobby setup` builds a set of NPCs for you rather than making you place them one by one. One template exists: | Template | Creates | | ----------- | ----------------------------------------------------------- | | `npcpackv1` | The five NPCs of the NPC Model Pack, using Model Engine | ``` /plobby setup npcpackv1 ``` It needs Model Engine installed with the pack's models already loaded, and it stops without changing anything if an NPC of the same name already exists. ## Enabling and renaming Every command apart from the root one can be switched off, and renamed to whatever suits your server. Both live on the same option, in **Editor > Settings > Commands**. Turning a command off unregisters it entirely, so it stops appearing in tab completion as well. Renaming it changes the name it is registered under, so setting the alternative of `/spawn` to **hub** means players type `/hub` and `/spawn` no longer exists. Both apply as soon as they are saved, and online players get the new command list straight away, so no restart is needed. <figure><img src="../.gitbook/assets/commands/command-servers.png" alt="" width="563"><figcaption><p>Commands (Command "/servers")</p></figcaption></figure> > **Info:** Renaming a command is the way to hand it over to another plugin. See [How to make Essentials overwrite /spawn](questions-and-answers/README.md#how-to-make-essentials-overwrite-spawn-command) for that case. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/commands --- # 🤖 Commands & Permissions ## Command List Below, you will find information on various commands available, their functionalities, and how to use them effectively. **Backend Commands** | Command | Description | | -------------------------------- | ------------------------------------------- | | `/plobby spawn` | Teleport to spawn location | | `/plobby setspawn` | Set spawn location | | `/plobby createNpc <identifier>` | Create npc type | | `/plobby deleteNpc <identifier>` | Delete npc type | | `/plobby bypass` | Bypass world rules | | `/plobby setup <template>` | Allows you to setup a template of npcs | | `/plobby editor` | Allows you to edit the plugin in-game | | `/plobby reload` | Reload all PhoenixLobby configuration files | **Player Commands** | Command | Description | | ---------------------- | ---------------------------------------- | | `/spawn` | Teleport to spawn location | | `/lobbies` | Open the lobby selector | | `/servers` | Open the server selector | | `/visibility` | Show or hide the other players | | `/music` | Open the music menu | | `/parkour` | Start a parkour run | | `/parkour stop` | Leave the run | | `/parkour top [id]` | Show the parkour leaderboard | | `/playersettings` | Open the player settings menu | | `/toggleactionbar` | Turn the action bar on or off | | `/togglebossbar` | Turn the bossbar on or off | | `/togglescoreboard` | Turn the scoreboard on or off | | `/toggleannouncements` | Turn the chat announcements on or off | **Proxy Commands** | Command | Description | | -------------------------- | ----------------------------------------------------- | | `/queue <server>` | Join the queue for a specific server | | `/server <server>` | Join the queue for a specific server (requires setup) | | `/leavequeue` | Leave current queue | | `/lobby` or `/hub` | Return back to the lobby | | `/lobbies` (lobby command) | Swap between lobbies | | `/<shortcut>` | Connect straight to a server (requires setup) | | `/maintenance` | Close a server or the network for maintenance | If you also don't want some commands to be accessible you can also disable them via the config.yml of the plugin. <details> <summary>Commands config.yml</summary> ```yaml commands: spawn: enabled: true set-spawn: enabled: true lobbies: enabled: true servers: enabled: true music: enabled: true ``` </details> You can also rename them. The **alternative** option is the name the command is registered with, so setting it to **hub** turns `/spawn` into `/hub`. <details> <summary>Command Names config.yml</summary> ```yaml commands: spawn: alternative: spawn set-spawn: alternative: setspawn lobbies: alternative: lobbies servers: alternative: servers music: alternative: music visibility: alternative: visibility playersettings: alternative: playersettings toggleactionbar: alternative: toggleactionbar togglebossbar: alternative: togglebossbar togglescoreboard: alternative: togglescoreboard toggleannouncements: alternative: toggleannouncements parkour: alternative: parkour ``` </details> ## Permissions Control access to features with granular permissions. Fine-tune user capabilities and define custom privileges. **General Permissions** | Permission | Description | | ----------------------------------- | ------------------------------------------------- | | phoenixlobby.admin | Grants access to all PhoenixLobby admin commands. | | phoenixlobby.colors.chat | Allows usage of colored chat messages. | | phoenixlobby.bypass.chat | Allows bypassing chat restrictions. | | phoenixlobby.bypass.antispam | Allows bypassing the anti-spam checks. | | phoenixlobby.bypass.chatfilter | Allows bypassing the chat filter. | | phoenixlobby.bypass.antiwdl | Allows bypassing anti-WDL restrictions. | | phoenixlobby.bypass.antivpn | Allows bypassing the anti-VPN check. | | phoenixlobby.bypass.commandblocker | Allows using the blocked commands. | | phoenixlobby.bypass.doublejump | Allows bypassing double jump restrictions. | | phoenixlobby.doublejump.use | Allows using the double jump, when required. | | phoenixlobby.parkour.use | Allows using the parkour. | | phoenixlobby.fly | Allows flying on join. | | phoenixlobby.alert.antiwdl | Receive alerts about anti-WDL violations. | | phoenixlobby.alert.antibot | Receive alerts about anti-bot lockdowns. | | phoenixlobby.alert.antivpn | Receive alerts about denied vpn connections. | | phoenixlobby.messages.\<name> | Uses the join and leave messages of that entry. | | phoenixlobby.spawns.\<name> | Uses the spawn points of that spawn group. | | phoenixlobby.parkour.\<name> | Plays a parkour that requires a permission. | **Proxy Permissions** | Permission | Description | | ------------------------------------- | ---------------------------------------------------- | | phoenixlobby.maintenance | Allows using the maintenance command. | | phoenixlobby.maintenance.bypass | Allows joining while a maintenance is running. | | phoenixlobby.queuepriority.\<number> | Places the player above everyone with a lower number. | | phoenixlobby.silentjoin | Hides the join and leave messages of that player. | **World Permissions** | Permission | Description | | ---------------------------- | ------------------------------------------------- | | phoenixlobby.item.drop | Allows dropping items in PhoenixLobby. | | phoenixlobby.item.pickup | Allows picking up items in PhoenixLobby. | | phoenixlobby.player.pvp | Enables PvP interactions in PhoenixLobby. | | phoenixlobby.block.interact | Allows interacting with blocks in PhoenixLobby. | | phoenixlobby.block.break | Allows breaking blocks in PhoenixLobby. | | phoenixlobby.block.place | Allows placing blocks in PhoenixLobby. | | phoenixlobby.entity.interact | Allows interacting with entities in PhoenixLobby. | Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/commands-and-permissions --- # 🧩 Developer API ## Getting started Add PhoenixLobby to your **plugin.yml** so your plugin loads after it. ```yaml depend: [PhoenixLobby] ``` Use `softdepend` instead if your plugin should still work when PhoenixLobby is not installed. In that case check `PhoenixLobbyAPI.isAvailable()` before calling anything. ## Events Four events are fired, and all of them are ordinary Bukkit events, so a normal listener picks them up. | Event | Fired when | | ------------------------- | ------------------------------------------------ | | `PlayerDoubleJumpEvent` | A player uses the [double jump](../modules/double-jump.md) | | `PlayerParkourStartEvent` | A player starts a [parkour](../modules/parkour/) run | | `PlayerParkourJumpEvent` | A player lands on the next parkour block | | `PlayerParkourEndEvent` | A parkour run ends | They all live in `com.phoenixplugins.phoenixlobby.api.events`. ### What each one carries | Event | Available on the event | Cancellable | | ------------------------- | ------------------------------------------------------------ | ----------- | | `PlayerDoubleJumpEvent` | `getPlayer()` | Yes | | `PlayerParkourStartEvent` | `getPlayer()`, `getParkourIdentifier()` | Yes | | `PlayerParkourJumpEvent` | `getPlayer()`, `getParkourIdentifier()`, `getScore()` | No | | `PlayerParkourEndEvent` | `getPlayer()`, `getParkourIdentifier()`, `getScore()`, `getElapsedSeconds()`, `isNewRecord()` | No | Cancelling `PlayerDoubleJumpEvent` stops the launch, and cancelling `PlayerParkourStartEvent` stops the run before it begins — which is how another plugin blocks either one in its own regions or during its own events. ```java @EventHandler public void onDoubleJump(PlayerDoubleJumpEvent event) { if (isInMyArena(event.getPlayer())) { event.setCancelled(true); } } ``` ```java public class ParkourListener implements Listener { @EventHandler public void onParkourEnd(PlayerParkourEndEvent event) { if (!event.isNewRecord()) { return; } Bukkit.broadcastMessage(event.getPlayer().getName() + " set a new record on " + event.getParkourIdentifier() + " with " + event.getScore() + " points."); } } ``` > **Info:** The parkour identifier is the one you gave the parkour in the editor, the same string the [parkour placeholders](../modules/parkour/placeholders.md) take. ## The API class `PhoenixLobbyAPI` answers questions about the lobby without going through placeholders. ```java if (!PhoenixLobbyAPI.isAvailable()) { return; } PhoenixLobbyAPI api = PhoenixLobbyAPI.get(); ``` | Method | Returns | | ------------------------------------------ | ---------------------------------------------------------- | | `getVersion()` | The version of PhoenixLobby that is running | | `getNpcTypes()` | Every NPC configured on this server | | `getNpcType(String identifier)` | One NPC by its identifier, as an `Optional` | | `isLobbyWorld(String worldName)` | Whether the plugin treats that world as a lobby | | `isInPvpMode(Player player)` | Whether the player is in [PvP mode](../modules/lobby-pvp.md) | | `getPlayingParkour(Player player)` | The parkour the player is running, as an `Optional` | | `getParkourHighScore(Player, String)` | That player's best score on a parkour | ```java PhoenixLobbyAPI.get().getPlayingParkour(player).ifPresent(parkour -> { player.sendMessage("You are running " + parkour + "."); }); ``` An `NpcType` gives you `isEnabled()`, `getIdentifier()`, `getDisplayName()` and `getEngineData()`, which in turn reports the [engine](../featues/npcs/npc-engines/) that NPC is drawn with. > **Warning:** `PhoenixLobbyAPI.get()` throws if the plugin has not finished loading. Call it from inside your own `onEnable` or later, never from a static initialiser, and guard it with `isAvailable()` when PhoenixLobby is only a soft dependency. ## Everything else Anything not on this page is internal and can change between versions. For values rather than behaviour, the [placeholders](placeholders.md) are the stable route and cover far more of the plugin than the API does. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/developer-events --- # 🎁 Item Options ## Item Options The plugin builds items in several places — the [hotbar items](../featues/hotbar-items.md), the entries of every [menu](../featues/menus.md), the two states of the PvP mode item and the teleport bow. They share most of their options, so what is on this page works in all of them unless a section says otherwise. ```yaml material: DIAMOND_SWORD amount: 1 custom-model-data: 0 item-model: '' glow: false hide-attributes: false display-name: '&bExample' lore: - '&7An example item.' ``` ## Where each option works Three groups of items exist, and the last two columns are the ones to check before writing an option that does nothing. | Option | Hotbar & custom items | Music & player settings menus | | --------------------- | --------------------- | ----------------------------- | | `material` | Yes | Yes | | `amount` | Yes | Yes | | `custom-model-data` | Yes | Yes | | `item-model` | Yes | Yes | | `glow` | Yes | Yes | | `hide-attributes` | Yes | Yes | | `display-name`, `lore`| Yes | Yes | | `enchantments` | Hotbar items only | No | | `hide-enchantments` | Hotbar items only | No | | The [extras](#extras) below | No | Yes | "Custom items" here means the entries of `servers.yml`, `lobbies.yml` and any [menu you create](../featues/menus.md#custom-menus). ### The two built-in items The [PvP mode item](../featues/hotbar-items.md#pvp-mode) and the [teleport bow](../featues/hotbar-items.md#teleport-bow) are written by hand rather than as normal entries, so they differ slightly: * The PvP mode item's two states take `material`, `custom-model-data`, `item-model`, `display-name`, `lore`, `enchantments` and `hide-enchantments`. They have no `glow` or `amount`. * The teleport bow takes everything the hotbar items do. Its `glow` option changes nothing, because the bow always carries Infinity to fire without ammo being consumed, and that gives it the shimmer regardless. ## Material The material is the Minecraft item name, such as `DIAMOND_SWORD` or `LIME_DYE`. A material your server version does not have leaves the slot empty, so check the name against the version you run. Player heads have two forms of their own, covered under [Player Heads](../featues/hotbar-items.md#player-heads). ## Amount How many of the item are in the stack. Anything below 1 is treated as 1. ## Resource Pack Options Two options point an item at a custom model, and which one you use depends on your server version. | Option | Description | | ------------------- | ------------------------------------------------------------- | | `custom-model-data` | The number your resource pack predicate matches on. Leave it at 0 for none. | | `item-model` | The model to draw, as a namespaced key such as `mypack:ruby_sword` | ```yaml material: DIAMOND_SWORD custom-model-data: 1001 ``` ```yaml material: DIAMOND_SWORD item-model: 'mypack:ruby_sword' ``` > **Info:** `item-model` is the newer of the two and needs Minecraft 1.21.2 or above. On an older server it is ignored and the item keeps its normal look, so a pack that has to cover both versions uses `custom-model-data`. ## Enchantments Each entry is an enchantment and a level, separated by a colon. A level left out counts as 1. ```yaml enchantments: - 'SHARPNESS:5' - 'UNBREAKING:3' - 'MENDING' ``` An enchantment name your server does not recognise is skipped and the rest of the list still applies, so a typo costs you one enchantment rather than all of them. ## Hide Enchantments Whether the enchantment lines are printed under the name. It is on by default, which is what keeps a decorated item looking clean in the hotbar. > **Warning:** This option hides more than the enchantments. With it on the item carries every hide flag, so attack damage, armour values, unbreakable and the rest are hidden too. Turning it off reveals the enchantment lines only — the attribute lines stay hidden either way. ## Glow Gives the item the enchanted shimmer without an enchantment on it. It is applied by adding a hidden Unbreaking I, so an item that already carries `enchantments` of its own keeps those and ignores `glow`. ## Hide Attributes Hides the attribute lines a weapon or a piece of armour prints, so a sword in a menu shows only the name and lore you wrote. On a hotbar item this changes nothing, because `hide-enchantments` already hides those lines. ## Display Name and Lore The name and the lines under it. Both accept the usual & colour codes, [MiniMessage](rich-text.md) tags and [PlaceholderAPI](placeholders.md) placeholders. Set `display-name` to `''` to leave the item with no name at all. ```yaml display-name: '&aGame Menu &7(Right Click)' lore: - '&7Click here to open the quick compass.' - '' - '&d%phoenixlobby_proxy_survival% &7currently playing!' ``` A lore line that reads a placeholder only updates when the item is rebuilt. In a menu that means turning on `refresh` in its [settings](../featues/menus.md#settings); in the hotbar it means the player rejoining or changing world. ## Extras The [music](../featues/music.md) and [player settings](../featues/player-settings.md) menus are built on the newer menu system, so their items take a few more options. These are ignored everywhere else. | Option | Description | | --------------------------- | -------------------------------------------------------------- | | `rgb` | Dyes leather armour, written as `255, 80, 0` | | `trim-material`, `trim-pattern` | Puts an armour trim on a piece of armour, both needed | | `banner-meta` | Banner patterns, each written as `COLOUR;PATTERN` | | `potion-effects` | Effects on a potion, each written as `effect;duration;amplifier` | | `enchantment-glint-override`| Forces the shimmer on or off, whatever the enchantments say | | `hide-tooltip` | Hides the tooltip of the item completely | | `tooltip-style` | The tooltip style to draw, as a namespaced key | ```yaml material: LEATHER_CHESTPLATE rgb: '255, 80, 0' trim-material: REDSTONE trim-pattern: SENTRY ``` ```yaml material: WHITE_BANNER banner-meta: - 'RED;STRIPE_SMALL' - 'BLACK;BORDER' ``` ```yaml material: POTION potion-effects: - 'speed;600;1' ``` > **Info:** A value these options cannot read — a trim material that does not exist, a malformed banner pattern — is skipped without an error, and the item is built without it. > **Warning:** `hide-tooltip`, `tooltip-style` and `enchantment-glint-override` are Minecraft 1.21.2 features and do nothing on an older server. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/item-options --- # 🌍 Languages & Translations ## Translations Every line the plugin can print lives in one file: ``` PhoenixLobby/translations/translations.en.yml ``` Messages to players, command replies, the words the [placeholders](placeholders.md) fall back on and the whole in-game editor are all in there. Edit it, run `/plobby reload`, and the new text is live. To stop a message from appearing at all, set it to `''` (empty quotes). > **Info:** Older versions kept this in **messages.yml**. On the first start after upgrading, the plugin moves your text across on its own and renames the old file to **old_messages.yml**. See [Where did my messages.yml go?](questions-and-answers/where-did-my-messages-file-go.md) ## Prefix Most messages start with the plugin prefix rather than spelling it out, so it can be changed in one place. ```yaml en: plugin-prefix: 'ౌa9&lPhoenixLobby &8»&7' ``` Anywhere `%prefix%` appears in a message it is replaced with that value, which means renaming the plugin across every message is a single edit. ## Language The language the plugin loads is set in **config.yml**, or from **Editor > Settings > Language**. ```yaml language: EN_US ``` <figure><img src="../.gitbook/assets/settings/language.png" alt="" width="563"><figcaption><p>Settings (Language)</p></figcaption></figure> The picker lists every language the plugin knows about: | Code | Language | Code | Language | | ------- | ----------------------- | ------- | ------------------------ | | `EN_US` | English (United States) | `AR_SA` | Arabic | | `PT_BR` | Portuguese (Brazil) | `PT_PT` | Portuguese (Portugal) | | `ES_ES` | Spanish | `FR_FR` | French | | `DE_DE` | German | `IT_IT` | Italian | | `NL_NL` | Dutch | `SV_SE` | Swedish | | `PL_PL` | Polish | `CS_CZ` | Czech | | `RU_RU` | Russian | `TR_TR` | Turkish | | `EL_GR` | Greek | `HI_IN` | Hindi | | `ID_ID` | Indonesian | `VI_VN` | Vietnamese | | `JA_JP` | Japanese | `KO_KR` | Korean | | `ZH_CN` | Chinese (Simplified) | | | > **Warning:** Only the languages included in the build you are running can be picked. The rest are greyed out in the editor. At the moment the plugin ships with English, so the way to run it in another language is to translate the file yourself. ## Translating the plugin The file is one flat list of keys, and the value is either a line or a list of lines. Translate the right-hand side and leave the keys and the placeholders alone. ```yaml en: spawn-not-set: '%prefix% Spawn has not been set.' spawn-teleportation: '%prefix% You have been teleported to spawn.' ``` Everything sits under the language code at the top of the file, and a value can be a single line or a list of them. ```yaml en: error-processing: - '&cAn error occurred while processing this action (Check console):' - '&7%message%' ``` Anything wrapped in `%` is filled in by the plugin, so `%prefix%`, `%player%` and `%identifier%` have to survive the translation to keep working. Colour codes can be moved around freely. > **Info:** English is always loaded first, and the chosen language is laid over the top of it. A key you have not translated yet falls back to its English line rather than printing blank, so a file can be translated a piece at a time. > **Info:** Keep a copy of your translated file before updating the plugin. New keys are added to it automatically, but it is the file your work lives in. ## The editor is translated too Everything under the `menus.editor` keys is the text of the in-game editor — the name and description of every option. Translating those is optional, and skipping them leaves the editor in English while your players see your language. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/languages --- # 🪪 Licensing > **Info:** License keys, sessions, startup messages, failures and the grace period work the same for every Phoenix plugin and are covered on the general [Licensing](https://www.phoenixplugins.com/docs/phoenix-plugins/licensing) page. ## Proxy and Lobby Servers Only the lobby servers validate. The same jar on BungeeCord or Velocity has no `product-license` option and never contacts our servers, so there is nothing to activate on the proxy. Every lobby server counts as its own [session](https://www.phoenixplugins.com/docs/phoenix-plugins/licensing#sessions), so running [Multiple Lobbies](../set-up/setup-with-proxy.md#multiple-lobbies) uses one session per lobby. The proxy does not count. ## When Validation Fails The plugin switches to a limited mode instead of turning off, so players can still join and move around the network. There is no time limit. | Keeps working | Turned off | | ------------- | ---------- | | The spawn and /spawn | Scoreboards, NPCs, holograms and parkour | | The server selector, /servers and /lobbies | The editors, /plobby editor and /plobby editlayout | | Joining and switching servers, including the queue | /plobby createNpc, /plobby deleteNpc, /plobby setup and /plobby holograms | | The join actions, portals, world protection, maintenance and the command blocker | The player settings, toggle, music and parkour commands, and every other module | A player who runs a turned off command is told it is off while PhoenixLobby runs in limited mode. Admins with `phoenixlobby.admin` get a message on join with the reason. Fix the cause and run /phoenixlobby reload: once the license is valid the full plugin loads without a restart. The causes and their console messages are listed under [When Validation Fails](https://www.phoenixplugins.com/docs/phoenix-plugins/licensing#when-validation-fails). ## Free Version Limits The free version needs no license and has these limits. Premium has none of them. | Feature | Free version | | ------- | ------------ | | Custom menus | 3 | | Holograms | 5, or 7 on a linked server | | NPCs | 10, or 12 on a linked server | | Parkour courses | 1 | | MOTD variants | 1 | The Flying Head and Huge Item NPC engines are Premium only, and so is the [waiting server](../set-up/setup-with-proxy.md#waiting-server-full-network-queue). A message names the limit when you reach one. If a server holds more than the free version loads, the first ones by name are loaded and the rest are named in the console. Their files are left untouched, so Premium loads all of them again. ### Linking a Free Server Link a free server to your Phoenix Plugins account for 2 more holograms and 2 more NPCs. Run /plobby link as a player with `phoenixlobby.admin`, then click the link or enter the code on the website. The console and online admins are told once it is active. Running it on a linked server says so. Unlink a server on the website under **Settings > Linked Lite Servers**. After unlinking, nothing new can be made past the base limit, but what was made while linked stays and keeps loading. The limit message of a server that is not linked also points to /plobby link. ## Version Notices Players holding `phoenixlobby.admin` are told on join when a newer build is out, and the first time they join after an update they can click to see what changed. /plobby changelog, or the Changelog button in the editor, lists every released build with its changes. `notify-if-new-version` in config.yml turns the notices off. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/licensing --- # 📁 Main Configuration ## Database The plugin also supports databases. The available options are mysql and sqlite. ```yaml database: type: sqlite address: localhost name: phoenixlobby_db port: 3306 username: phoenixuser password: phoenixpassword table-prefix: pl hikari: maximumPoolSize: 20 minimumIdle: 5 idleTimeout: 600000 maxLifetime: 1800000 connectionTimeout: 30000 fetch-timeout: 5000 performance: internal-pool-size: 5 ``` Set a different **table-prefix** on every server that shares the same database, so their tables do not mix. The **hikari** block is the connection pool, and it only matters on MySQL. The defaults suit a normal lobby; raise `maximumPoolSize` only if you are running a very large network off one database. **performance.internal-pool-size** is separate from that — it is the number of threads the plugin uses for its own background work, such as saving player data and looking addresses up. Leave it alone unless support asks you to change it. ## General Options | Option | Description | | ---------------------- | ------------------------------------------------------------------ | | `product-license` | Your license key, written by the plugin, see [Licensing](licensing.md) | | `notify-if-new-version` | Tells your admins when a new version is out | | `language` | The language the plugin speaks, see [Languages](languages.md) | | `debug` | Prints extra information in the console | | `bypass-required` | Requires `/plobby bypass` before an admin can build in the lobby | | `proxy.register-lobby` | Registers this server as a lobby on the proxy | | `npcs.render-radius` | The distance past which NPCs and their effects stop being drawn | ## Worlds This is the single most important option in the file. It decides which worlds the plugin treats as a lobby, and it covers every module at once — the scoreboard, the tablist, the hotbar items, the world protection and the inventory clearing. ```yaml worlds: should-use: DISABLED_WORLDS enabled: [] disabled: - world_nether ``` With DISABLED_WORLDS, every world is a lobby except the ones you list under `disabled`. With ENABLED_WORLDS, only the worlds under `enabled` are. > **Danger:** Out of the box the plugin treats every world as a lobby. A server that holds more than the lobby world should switch to `ENABLED_WORLDS` and name its lobby, which is [step one of the Multiverse setup](../set-up/setup-with-multiverse.md). > **Info:** The [hotbar items](../featues/hotbar-items.md#items-per-world) have a `worlds` block of their own in **lobby-items.yml**, which only decides where the items are handed out. That one is narrower and separate from this. ## Messages Configuration Every line the plugin can print lives in **translations/translations.en.yml** inside the PhoenixLobby folder — messages to players, command replies and the in-game editor alike. To prevent a message from appearing, set it to '' (empty quotes). > **Info:** Older versions kept this in **messages.yml**. On the first start after upgrading, your text is moved across on its own and the old file is renamed to **old_messages.yml**. See [Where did my messages.yml go?](questions-and-answers/where-did-my-messages-file-go.md) ## MiniMessage On top of the usual & colour codes, text accepts MiniMessage tags for gradients, hover text and clickable links. It has its own page: [Rich Text (MiniMessage)](rich-text.md). ## Translations The plugin can be run in another language, and the file above is the one you translate. How the language is picked, what falls back to English and how the `%prefix%` placeholder works are all on [Languages & Translations](languages.md). Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/main-configuration --- # 🔒 Permissions ## General Permissions **General Permissions** | Permission | Description | | -------------------------- | ------------------------------------------------- | | phoenixlobby.admin | Grants access to all PhoenixLobby admin commands. | | phoenixlobby.colors.chat | Allows usage of colored chat messages. | | phoenixlobby.fly | Allows flying on join. | | phoenixlobby.doublejump.use | Allows using the double jump, when required. | | phoenixlobby.parkour.use | Allows using the parkour. | | phoenixlobby.maintenance | Allows using the maintenance command. | | phoenixlobby.maintenance.bypass | Allows joining while a maintenance is running. | | phoenixlobby.alts | Allows using the alts command. | | phoenixlobby.alts.bypass | Allows joining over the alt account limit. | | phoenixlobby.alts.notify | Receive alerts about the accounts sharing an address. | ## Bypass Permissions **Bypass Permissions** | Permission | Description | | ---------------------------------- | ------------------------------------------ | | phoenixlobby.bypass.chat | Allows bypassing chat restrictions. | | phoenixlobby.bypass.antispam | Allows bypassing the anti-spam checks. | | phoenixlobby.bypass.chatfilter | Allows bypassing the chat filter. | | phoenixlobby.bypass.antiwdl | Allows bypassing anti-WDL restrictions. | | phoenixlobby.bypass.antivpn | Allows bypassing the anti-VPN check. | | phoenixlobby.bypass.commandblocker | Allows using the blocked commands. | | phoenixlobby.bypass.doublejump | Allows bypassing double jump restrictions. | ## Alert Permissions **Alert Permissions** | Permission | Description | | -------------------------- | -------------------------------------------- | | phoenixlobby.alert.antiwdl | Receive alerts about anti-WDL violations. | | phoenixlobby.alert.antibot | Receive alerts about anti-bot lockdowns. | | phoenixlobby.alert.antivpn | Receive alerts about denied vpn connections. | ## World Permissions These permissions let a player through the world protection rules that are enabled for the lobby. **World Permissions** | Permission | Description | | ---------------------------- | ------------------------------------------------- | | phoenixlobby.item.drop | Allows dropping items in PhoenixLobby. | | phoenixlobby.item.pickup | Allows picking up items in PhoenixLobby. | | phoenixlobby.player.pvp | Enables PvP interactions in PhoenixLobby. | | phoenixlobby.player.use | Allows using beds, portals, elytras and riptide. | | phoenixlobby.block.interact | Allows interacting with blocks in PhoenixLobby. | | phoenixlobby.block.break | Allows breaking blocks in PhoenixLobby. | | phoenixlobby.block.place | Allows placing blocks in PhoenixLobby. | | phoenixlobby.entity.interact | Allows interacting with entities in PhoenixLobby. | ## Proxy Permissions **Proxy Permissions** | Permission | Description | | ------------------------------------ | ----------------------------------------------------- | | phoenixlobby.queuepriority.\<number> | Places the player above everyone with a lower number. | | phoenixlobby.queuepriority.\<server>.\<number> | The same, for the queue of one server only. | | phoenixlobby.queueslots.\<server>.\<rank> | Gives the player the slot limit of that rank on that server. | | phoenixlobby.silentjoin | Hides the join and leave messages of that player. | ## Entry Permissions Each entry of these features carries its own permission node, which you set on the entry itself. **Entry Permissions** | Permission | Description | | ---------------------------- | ----------------------------------------------- | | phoenixlobby.messages.\<name> | Uses the join and leave messages of that entry. | | phoenixlobby.spawns.\<name> | Uses the spawn points of that spawn group. | | phoenixlobby.parkour.\<name> | Plays a parkour that requires a permission. | Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/permissions --- # 🔍 Placeholders PhoenixLobby supports **PlaceholderAPI**, allowing you to use player data from our plugin in other plugins that also support PlaceholderAPI. Below is a list of the available **PlaceholderAPI placeholders** as well as our **internal placeholders** that you can use in holograms. ## PlaceholderAPI Placeholders | Placeholders | Description | | ----------------------------------------- | ---------------------------------------------------------- | | %phoenixlobby\_playervisibility\_state% | Returns On/Off if the user has visibility | | %phoenixlobby\_playervisibility\_boolean% | Returns true/false if the user has visibility | | %phoenixlobby\_players\_online% | Returns the amount of users online, vanished ones excluded | ## Vanished players Every count on this page leaves vanished staff out, on this server and across the proxy alike. Any vanish plugin that marks a player the usual way is picked up, which covers Essentials, CMI, SuperVanish and PremiumVanish. The network-wide numbers are worked out on the proxy and handed to the backends, so every server reads the same figure instead of each one counting for itself. Vanished staff do not give themselves away in other ways either. Their double jump, launch pad, teleport bow and region trigger effects, join fireworks and broadcast actions only reach players who can see them, NPCs do not turn to face them, and the proxy join and leave messages skip them. > **Warning:** A backend without PhoenixLobby on it cannot report who is vanished there, so staff vanished on that server still count towards the network numbers. ## PvP Placeholders | Placeholders | Description | | --------------------------- | ---------------------------------------------- | | %phoenixlobby\_is\_pvp% | Returns true/false if the user is in pvp mode | | %phoenixlobby\_pvp\_kills% | Returns the pvp kills of the user | | %phoenixlobby\_pvp\_deaths% | Returns the pvp deaths of the user | See [PvP](../modules/lobby-pvp.md) for the mode these count. ## Proxy Placeholders | Placeholders | Description | | -------------------------------------- | -------------------------------------------------- | | %phoenixlobby\_proxy\_total% | Returns the total amount of users on the proxy. | | %phoenixlobby\_proxy\_\<server\_name>% | Returns the amount of users connected on a server. | > **Info:** These two only work if PhoenixLobby is installed on the proxy server. The proxy also reports the slots, the MOTD, the version and whether each server is up. * Proxy Placeholders - [Click Here](../set-up/setup-with-proxy/placeholders.md) ## Maintenance Placeholders The maintenance has its own placeholders for whether a server is closed and how long is left. * Maintenance Placeholders - [Click Here](../modules/maintenance.md#placeholders) ## Alt Protection Placeholders Alt Protection has its own placeholders for the accounts sharing an address, and for where that address is located. * Alt Protection Placeholders - [Click Here](../modules/alts/placeholders.md) ## Parkour Placeholders The parkour has its own placeholders for runs, statistics and leaderboards. * Parkour Placeholders - [Click Here](../modules/parkour/README.md#placeholders) ## Internal Placeholders The following work anywhere the plugin writes text of its own, such as the scoreboard, the tablist, holograms and its messages, on top of every PlaceholderAPI placeholder. | Placeholders | Description | | ----------------- | ------------------------------------------ | | %online% | Returns the amount of users on this server | | %max\_online% | Returns the slot count of this server | | %plugin\_version% | Returns the PhoenixLobby version | On the hologram of an NPC, `%proxy_online%` returns the amount of users connected on the NPC's linked server. > **Info:** The linked server is the one you pick with the compass while editing the NPC. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/placeholders --- # ⁉️ Questions & Answers ## Setup and compatibility <details id="why-isnt-the-newest-minecraft-version-supported-yet"> <summary>Why isn't the newest Minecraft version supported yet?</summary> A new release is added once it has settled, so there is a gap between launch and support. PhoenixLobby is usually one of the first of our plugins to get it. There is no ETA, and updates are free for life. The current list is on [Version Support](../../first-installation.md#version-support). </details> <details id="do-i-need-vault-or-viaversion"> <summary>Do I need Vault, ViaVersion or the other listed plugins?</summary> No. PhoenixLobby has no required dependencies and runs on a bare server. Every plugin it mentions is optional: | Plugin | What it adds | | --- | --- | | PlaceholderAPI | Every [placeholder](../placeholders.md) in this documentation | | LuckPerms | The [tablist groups](../../modules/tablist.md#groups), sorting and nametags | | WorldGuard | Region checks for [World Protection](../../modules/world-protection.md) and [PvP worlds](../../modules/lobby-pvp.md#enabled-worlds) | | Multiverse-Core | Managing the worlds, see [Setup with Multiverse](../../set-up/setup-with-multiverse.md) | | Citizens, Model Engine, Better Model, Fancy NPCs, PhoenixNPCs | The matching [NPC engines](../../featues/npcs/npc-engines/) | | Vault | Nothing today | | ViaVersion | Nothing today | Vault and ViaVersion are in the soft dependency list, which is why the console mentions them at startup. Nothing waits on either one. An NPC engine whose plugin is missing shows as **Not installed** in the editor and cannot be picked. </details> <details id="can-the-plugin-run-as-a-forge-or-fabric-mod"> <summary>Can the plugin run as a Forge or Fabric mod?</summary> No, there is no mod version. Hybrid servers such as Arclight or Mohist can load it, but we do not recommend them, and faults caused by the hybrid itself, such as its own teleport handling, are not plugin issues. </details> <details id="is-the-plugin-available-in-my-language"> <summary>Is the plugin available in my language?</summary> The plugin ships with English. The **Language** option in **Editor > Settings** lists twenty-one languages, but only the ones included in your build can be selected. Every line the plugin prints, editor included, is in `translations/translations.en.yml`. Translate the values and run `/plobby reload`. English is loaded first and your text is laid over it, so a key you have not translated yet falls back to English instead of printing blank. Keep a copy of the file before updating. The full guide is on [Languages & Translations](../../configurations/languages.md). </details> <details id="where-did-my-messages-file-go"> <summary>Where did my messages.yml go?</summary> Nothing was lost. On the first start after updating, every message you had customized in **messages.yml** is copied into **translations/translations.en.yml**, and **messages.yml** is renamed to **old_messages.yml**. From then on, edit the file in the **translations** folder. The editor text is left out of that copy, so the editor picks up the newer wording. **old_messages.yml** is never read again and can be deleted once you are happy with your messages. See [Languages & Translations](../../configurations/languages.md). </details> <details id="how-to-make-essentials-overwrite-spawn-command"> <summary>How do I make Essentials take over the /spawn command?</summary> Essentials gives way to other plugins when two register the same command. Add `spawn` to `overridden-commands` in the Essentials config.yml to make it keep the command, or alias `spawn` to `espawn` in the server's `commands.yml`, see the [Bukkit aliases guide](http://wiki.bukkit.org/Commands.yml#aliases). </details> ## Proxy and network <details id="why-proxy-command-is-not-working-on-velocity"> <summary>Why is the proxy command not working on Velocity?</summary> The plugin talks to the proxy over the BungeeCord plugin messaging channel, which Velocity has off by default. Turn it on in `velocity.toml` and restart the proxy: ```toml bungee-plugin-message-channel = true ``` </details> <details id="why-doesnt-my-lobby-have-a-queue-system"> <summary>Why doesn't my lobby have a queue system?</summary> The queue needs the plugin on both the proxy and the game server. If it is installed on both and still missing, make sure no other queue plugin is running alongside it. </details> <details id="why-does-lobby-do-nothing-in-a-lobby"> <summary>Why does /lobby do nothing when I am already in a lobby?</summary> That is intended. `/lobby` and `/hub` live on the proxy and connect a player on any other server to the lobby holding the fewest players. A player already on a registered lobby has nowhere to go, so the proxy replies that they are already in a lobby and stops. On a lobby, `/lobbies` opens the [lobby selector](../../set-up/setup-with-proxy.md#multiple-lobbies) instead. The reply is `already-in-lobby` in the proxy's [translations file](../../configurations/languages.md). Set it to `''` to say nothing. For a `/hub` that opens the selector, turn off the built-in one and point a [renamed command](../commands.md#enabling-and-renaming) or a hotbar item at `[MENU] lobbies`. </details> <details id="how-do-player-commands-reach-the-proxy"> <summary>How does a proxy command run from a lobby?</summary> The queue commands live on the proxy, so the lobby forwards them. When an action runs a command as the player and the lobby is linked to a proxy running PhoenixLobby, a command starting with `queue`, `joinqueue` or `leavequeue` is sent to the proxy instead of being run locally: ```yaml - '[COMMAND] player; queue survival' ``` The `[QUEUE]` action does the same more directly and is the better choice in a new config: ```yaml - '[QUEUE] survival' ``` Any other `player` command runs as if the player typed it, so other plugins see it as a real command. `console` commands always run on the lobby. Without PhoenixLobby on the proxy there is no bridge and the player is told the connection is unavailable, see [Setup with Proxy](../../set-up/setup-with-proxy.md). </details> <details id="why-doesnt-the-transfer-action-work"> <summary>Why doesn't the transfer action work?</summary> `[TRANSFER]` moves a player to a different network without a proxy, and both ends have to support it. The message the player gets tells you which end is the problem. **"Transfers are not supported".** The server the player is on cannot transfer. It needs Paper 1.20.5 or newer, Spigot does not have it, and the player needs a 1.20.5 or newer client. **"The transfer is unavailable".** The destination refused the player. Set `accepts-transfers=true` in its **server.properties** and restart it. Both messages are under `actions` in your [translations file](../../configurations/languages.md). To move players between servers of your own proxy, use `[PROXY]` or `[QUEUE]` instead, see [Action Types](../action-types.md). </details> ## In the lobby <details id="why-my-inventory-gets-cleared"> <summary>Why does my inventory get cleared?</summary> The plugin clears the inventory on the way into a lobby world, so the lobby items are all a player carries there. Turn on `restore-inventory` in the join module to store the inventory and hand it back when they leave for a world that is not a lobby, or turn off `clear-inventory` to skip the clearing. See [World Inventories](../../set-up/setup-with-multiverse.md#world-inventories). </details> <details id="why-my-compass-is-teleporting-me"> <summary>Why is my compass teleporting me?</summary> That is the WorldEdit navigation wand, and it only works for administrators. Set `navigation-wand` to `-1` in the WorldEdit config to turn it off. </details> <details id="why-my-npcs-keep-disappearing"> <summary>Why do my NPCs keep disappearing?</summary> **Near the spawn point.** Spawn protection stops them from spawning. Set `spawn-protection` to `0` in `server.properties` and restart. **Gone after every restart, in one world.** Look for this line in the console: ``` There was an attempt to add a npc with an invalid world: "your_world" ``` The world was not loaded yet when PhoenixLobby started, usually because a world manager such as Multiverse loads it later, so the NPC was skipped. Nothing is lost. Run `/plobby reload` once the world is up, or have the world manager load it at startup. Holograms are placed the same way, so they disappear with the NPCs. **Vanishing as players walk away.** NPCs and their [effects](../../featues/npcs/README.md#npc-effects) stop being drawn past the [Npc Despawn Range](../../featues/npcs/README.md#npc-despawn-range), 15 blocks by default. Raise it if they need to be visible from further off. </details> <details id="why-are-my-item-tooltips-empty"> <summary>Why is the attack damage missing from my items?</summary> Hotbar items are built with every hide flag on, so attack damage, attack speed, armor and the other attribute lines are hidden on purpose. **hide-enchantments** in **lobby-items.yml** only brings back the enchantment lines; attribute lines cannot be shown on a lobby item. Items inside a [menu](../../featues/menus.md) use `hide-attributes` instead, which starts off, so a sword in a menu shows its statistics. Every option is on [Item Options](../../configurations/item-options.md). </details> <details id="what-does-actiontype-not-implemented-mean"> <summary>What does "ActionType not implemented" mean?</summary> One of your actions uses a type that does not exist. Check it against [Action Types](../action-types.md). </details> ## Purchase <details id="do-you-offer-refunds"> <summary>Do you offer refunds?</summary> No. A downloaded product is not refundable. See point 7 of the [Terms and Conditions](https://www.phoenixplugins.com/terms-and-conditions). </details> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers --- # ⁉️ Can the plugin run as a Forge or Fabric mod? ## Answer No. It is a Java plugin and there is no mod version of it. Hybrid servers such as Arclight or Mohist can load it, but we do not recommend them. Faults caused by the hybrid itself, such as its own teleport handling, are not plugin issues. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/can-the-plugin-run-as-a-forge-or-fabric-mod --- # ❓ Do I need Vault, ViaVersion or the other listed plugins? ## Answer No. PhoenixLobby has no required dependencies. It runs on a bare server, and every plugin it mentions is optional. What each one is for, when you do install it: | Plugin | What it adds | | ---------------- | ------------------------------------------------------------------- | | PlaceholderAPI | Every [placeholder](../placeholders.md) on this documentation | | LuckPerms | The [tablist groups](../../modules/tablist/groups.md), sorting and nametags | | WorldGuard | Region checks used by the [world protection](../../modules/world-protection.md) and [PvP worlds](../../modules/lobby-pvp/enabled-worlds.md) | | Multiverse-Core | Managing the worlds, see [Setup with Multiverse](../../set-up/setup-with-multiverse.md) | | Citizens, Model Engine, Better Model, Fancy NPCs | The matching [NPC engines](../../featues/npcs/npc-engines/) | | Vault | Nothing today. It is loaded for economy support that is not used yet. | | ViaVersion | Nothing today. | > **Info:** Vault and ViaVersion appear in the plugin's soft dependency list, which is why the console mentions them at startup. That line is informational — no feature waits on either one, and there is nothing to fix if you never install them. An NPC engine whose plugin is missing shows as **Not installed** in the editor and cannot be picked, so nothing breaks — that engine is simply unavailable until the plugin is there. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/do-i-need-vault-or-viaversion --- # ⁉️ Do you offer refunds? ## Answer No. Once the product has been downloaded it is not refundable. See point 7 of our [Terms and Conditions](https://www.phoenixplugins.com/terms-and-conditions). Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/do-you-offer-refunds --- # ❓ How does a proxy command run from a lobby? ## Answer The queue commands live on the proxy, so a lobby has no idea what `/queue` means. The plugin bridges that gap for you. When an action runs a command as the player: ```yaml - '[COMMAND] player; queue survival' ``` the lobby checks whether it is linked to a proxy running PhoenixLobby. If it is, and the command starts with `queue`, `joinqueue` or `leavequeue`, the command is sent to the proxy to run instead of being attempted locally. That is why the example above works from an NPC or a menu item even though the command does not exist on the lobby. The `[QUEUE]` action does the same thing more directly, and is the better choice in a new config: ```yaml - '[QUEUE] survival' ``` ## Every other command Anything else with a `player` target is run the way the player typing it would be. Other plugins therefore see it exactly as they see a real command, which is what makes `[COMMAND] player;` work with plugins that only listen for chat. Commands with a `console` target are always run on the lobby itself. > **Warning:** Without PhoenixLobby installed on the proxy there is no bridge, and the player is told the connection is unavailable. See [Setup with Proxy](../../set-up/setup-with-proxy.md). Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/how-do-player-commands-reach-the-proxy --- # ❔ How to make Essentials overwrite /spawn command? ## Answer By default, when there is a command conflict between plugins, Essentials prioritizes the other plugin over itself. However, you can override this behavior by using the overridden-commands section in the Essentials config.yml file. Adding commands to this section tells Essentials to retain control of those commands. If you want Essentials to take precedence over our plugin, you can create an alias. For example, you can alias 'spawn' to 'espawn'. For more information and examples on creating aliases, refer to the Bukkit wiki page on commands.yml and aliases. Check: http://wiki.bukkit.org/Commands.yml#aliases for more information. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/how-to-make-essentials-overwrite-spawn-command --- # ❓ Is the plugin available in my language? ## Answer The plugin ships with English. The **Language** option in **Editor > Settings** lists twenty-one languages, but only the ones included in the build you are running can be selected — the rest are greyed out. That is not a dead end, because every line the plugin prints is in one file you can edit: ``` PhoenixLobby/translations/translations.en.yml ``` Translate the values, run `/plobby reload`, and your players read your language. The file covers messages, command replies and the in-game editor. > **Info:** You do not have to finish it in one sitting. English is loaded first and your text is laid over the top, so any key you have not reached yet falls back to its English line rather than printing blank. Keep a copy of the file before updating the plugin. New keys are added to it for you, but your translations live in it. The full guide, including the language codes and how the `%prefix%` placeholder works, is on [Languages & Translations](../../configurations/languages.md). Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/is-the-plugin-available-in-my-language --- # 🤔 What does "ActionType not implemented" mean? ## Answer One of your actions uses a type that does not exist, so the plugin cannot run it. Check the action against the supported list on the [Action Types](../action-types.md) page. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/what-does-actiontype-not-implemented-mean --- # ❓ Where did my messages.yml go? ## Answer Nothing was lost. The plugin now keeps its text in **translations/translations.en.yml**, and on the first start after updating it moves your messages there for you. What happens is: 1. Every message you had customised in **messages.yml** is copied into **translations/translations.en.yml**. 2. **messages.yml** is renamed to **old_messages.yml** so nothing is deleted. 3. From then on, the file to edit is the one in the **translations** folder. The editor text is deliberately left out of that copy, so the in-game editor picks up the newer wording rather than an old copy of it. > **Info:** **old_messages.yml** is only kept as a safety net. Once you are happy with your messages you can delete it, and the plugin will not read it again either way. Everything the file can do — the `%prefix%` placeholder, how a translation falls back to English, and running the plugin in another language — is on [Languages & Translations](../../configurations/languages.md). Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/where-did-my-messages-file-go --- # ❓ Why is the attack damage missing from my items? ## Answer The lobby items are built with every hide flag on, so the lines Minecraft normally adds under the name — attack damage, attack speed, armour, unbreakable, what the item can be placed on — are all hidden. Only the name and the lore you wrote are shown. That is deliberate. A compass or a sword sitting in the hotbar as a button looks wrong with a block of combat statistics under it. The switch is **hide-enchantments** in **lobby-items.yml**: ```yaml hide-enchantments: true ``` Turning it off brings back the enchantment lines, and only those. The attribute lines stay hidden either way, so there is currently no way to show attack damage on a lobby item. > **Info:** This applies to the hotbar items. Items inside a [menu](../../featues/menus.md) use `hide-attributes` instead, which starts off, so a sword in a menu does show its statistics until you turn that on. The full list of what each option covers is on [Item Options](../../configurations/item-options.md). Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/why-are-my-item-tooltips-empty --- # ❓ Why does /lobby do nothing when I am already in a lobby? ## Answer That is intended, and both halves of the plugin are working. `/lobby` and `/hub` are registered on the proxy so a player on any server can get back to a lobby. When the player running them is already on a registered lobby, the proxy has nothing to do — moving them would send them to the server they are standing on — so it replies that they are already in a lobby and stops there. Stopping is what lets the lobby side answer instead. On a lobby, `/lobbies` opens the [lobby selector](../../set-up/setup-with-proxy/multiple-lobbies.md) so the player can pick a different one, which is the useful thing to do from inside a lobby. ## Changing what the player is told The message is in your [translations file](../../configurations/languages.md) on the proxy, under `already-in-lobby`. Set it to `''` to say nothing at all. ## If you wanted a different command To give players a `/hub` that opens the selector rather than connecting, turn off the built-in one and point a [renamed command](../commands.md#enabling-and-renaming) or a hotbar item at `[MENU] lobbies` instead. > **Info:** A player who is on another server entirely — survival, minigames — is connected to the lobby holding the fewest players, which is what these commands are for. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/why-does-lobby-do-nothing-in-a-lobby --- # ❓ Why doesn't my lobby have a queue system? ## Answer The queue needs the plugin installed on both the proxy and the game server. Installing it on only one side leaves you without a queue. If it is installed on both and still missing, make sure no other queue plugin is running alongside it. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/why-doesnt-my-lobby-have-a-queue-system --- # ❓ Why doesn't the transfer action work? ## Answer `[TRANSFER]` moves a player to a completely different network without a proxy, and both ends have to support it. The message the player gets tells you which end is the problem. ## "Transfers are not supported" The server the player is on cannot transfer at all. This needs Paper 1.20.5 or newer — Spigot does not carry the method — and the player has to be on a 1.20.5 or newer client. ## "The transfer is unavailable" The player was refused by the destination. A server only accepts arriving transfers when this is set in its **server.properties**: ``` accepts-transfers=true ``` Change it there and restart that server. Nothing on the sending side needs to change. > **Info:** Both of those messages are in your [translations file](../../configurations/languages.md) under `actions`, so you can reword them for your players. > **Warning:** `[TRANSFER]` is for sending players off your network entirely. To move somebody between servers of your own proxy, use `[PROXY]` or `[QUEUE]` instead — see [Action Types](../action-types.md). Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/why-doesnt-the-transfer-action-work --- # ❓ Why isn't the newest Minecraft version supported yet? ## Answer A new Minecraft release is added once it has settled, so there is a gap between it launching and us supporting it. PhoenixLobby is normally one of the first of our plugins to get it. We do not give an ETA for it. Updates are free for life, so the update reaches you at no extra cost. Check the [Version Support](../version-support.md) page for what is supported right now. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/why-isnt-the-newest-minecraft-version-supported-yet --- # ❓ Why my compass is teleporting me? ## Answer If this is happening to you, it is very likely that you are using WorldEdit. WorldEdit has a feature in the compass that will teleport to where you are looking when right-clicking. You don't need to worry as this only happens for administrators. If you want to disable this go to the WorldEdit config file, look for the `navigation-wand` field and set it to `-1`. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/why-my-compass-is-teleporting-me --- # ❓ Why my inventory gets cleared? ## Answer The plugin clears the inventory on the way into a lobby world, so the lobby items are the only thing a user carries there. To keep what they were carrying, turn on `restore-inventory` in the join module. The inventory is put away before it is cleared and handed back when they leave for a world that is not a lobby. ```yaml restore-inventory: true ``` If you do not want the clearing at all, turn it off instead: ```yaml clear-inventory: false ``` See [World Inventories](../../set-up/setup-with-multiverse/world-inventories.md) for the full explanation. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/why-my-inventory-gets-cleared --- # ❓ Why my npcs keep disappearing? ## Spawn protection If your NPCs are close to the spawn point of your server, they are likely affected by spawn protection, as they are considered entities and are prevented from spawning. To fix that follow the steps below: 1. Open the `server.properties` from the main directory of your server. 2. Change the `spawn-protection= 16` to `0` in order to disable the protection. 3. Restart your server. ## The world was not loaded yet If instead they are gone after every restart, and only in one world, check your console for this line: ``` There was an attempt to add a npc with an invalid world: "your_world" ``` An NPC is placed in a world by name. If that world is not loaded at the moment PhoenixLobby starts, the location is skipped and the NPC is not placed — the file is untouched, so nothing is lost, it simply is not in the world. This normally means a world manager such as Multiverse is loading that world after the plugin. Two ways out: * Run `/plobby reload` once the world is up, which places every NPC again. * Load the world earlier, by listing it in your world manager so it is loaded at startup rather than on demand. > **Info:** Holograms are placed the same way and log the same kind of warning, so a world that loses its NPCs usually loses its holograms too. ## The player is too far away NPCs and their [effects](../../featues/npcs/npc-effects.md) stop being drawn past the **Npc Despawn Range** in **Editor > Settings**, which is 15 blocks by default. If they appear as players walk up to them and vanish as they walk away, that is the range doing its job — raise it if your lobby needs them visible from further off. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/why-my-npcs-keep-disappearing --- # ❓ Why proxy command is not working on Velocity? ## Answer If you're experiencing issues with proxy command functionality on Velocity, it's likely due to a configuration setting that facilitates communication between your plugins and the proxy. Specifically, our plugin relies on BungeeCord plugin messaging channel support to seamlessly interact with both BungeeCord and Velocity proxies. To resolve this, ensure that the following option is set to true in your `velocity.toml` configuration file: ```toml # Enables BungeeCord plugin messaging channel support on Velocity. bungee-plugin-message-channel = true ``` Enabling this option establishes the necessary communication channel, allowing our plugin to effectively communicate with the proxy and execute commands as intended. Failure to enable this option may result in our plugin being unable to interact with the proxy environment, leading to command functionality issues. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/questions-and-answers/why-proxy-command-is-not-working-on-velocity --- # 🎨 Rich Text (MiniMessage) ## Information Phoenix Lobby understands [MiniMessage](https://docs.advntr.dev/minimessage/format.html) tags, like `<red>`, `<bold>` or `<gradient:#ff5555:#5555ff>`, on top of the classic `&` colour codes. This lets you use gradients, hover text and clickable links, none of which `&` codes can do. ## Format | Example | Result | | -------------------------------------------------------- | -------------------------------------- | | `<red>Hello` | Red text | | `<#ff8800>Hello` | Any hex colour | | `<gradient:#5e4fa2:#f79459>Phoenix Lobby</gradient>` | Text fading from one colour to another | | `<bold><underlined>Warning` | Bold and underlined | | `<rainbow>Welcome back!</rainbow>` | Each letter a different colour | | `<hover:show_text:'Click me'>Hover</hover>` | Text with a tooltip | | `<click:open_url:'https://example.com'>Our site</click>` | Text that opens a link | A closing tag is optional. `<red>Hello` colours the rest of the line, while `<red>Hello</red> there` colours only the first word. ## Where it works | Place | Notes | | ---------------------------------------------------- | -------------------------------------------- | | [Holograms](../featues/holograms/) | Including `<font:...>` from a resource pack | | [Scoreboard](../modules/scoreboard.md) | Title and lines | | [MOTD](../modules/motd.md) | Message, and the player count on Paper | | [Tablist](../modules/tablist.md) | Header and footer | | [Join and quit messages](../modules/join-actions/join-quit-messages.md) | And the rest of the plugin's chat messages | | Menu titles, item names and lore | Anywhere the editor lets you write text | ## Where it doesn't work Nametag prefixes and suffixes are the exception. Minecraft draws those through the scoreboard team system, which only understands the old colour codes, so a tag there is reduced to the nearest legacy colour. ## Usage notes * Legacy `&` codes, including `&#RRGGBB` hex, keep working everywhere exactly as before. * In **chat messages**, use one style per line. A chat line is only sent as MiniMessage when it contains no legacy colour codes at all, so mixing `&c` and `<red>` in the same line falls back to legacy and prints the tag. * Everywhere else the two can be mixed freely. A scoreboard line or a hologram is read as MiniMessage as soon as it contains a tag, and any `&` codes in it are converted along with it. * A tag the server does not recognise is left in the text as written rather than being dropped, which is what keeps resource pack glyph tags working. > **Warning:** MiniMessage needs [Paper](https://papermc.io/) or a fork of it. On plain Spigot the tags are printed exactly as you typed them, so stay on `&` codes there. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/rich-text --- # 📒 Version Support ## Version Support The plugin supports Spigot, any Spigot forks, Paper, any Paper forks, Bungeecord, and Bungeecord forks, and Velocity. It should also work on any custom modded servers. > **Warning:** Folia is supported, but the support is still **experimental**. Test it on a staging server before putting it in front of your players, and report anything you run into. <table><thead><tr><th>Minecraft Version</th><th data-type="checkbox"></th></tr></thead><tbody><tr><td>26.x</td><td>true</td></tr><tr><td>1.21.x</td><td>true</td></tr><tr><td>1.20.4 - 1.20.6</td><td>true</td></tr><tr><td>1.20.3 and older</td><td>false</td></tr></tbody></table> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/plugin-information/version-support --- # 🏠 Homepage ## Introduction PhoenixLobby is a robust plugin with many features that was created especially for proxy-based servers, providing an improved lobby experience. Although we support single-server. It offers a wide range of features to improve the lobby atmosphere for your server. It is advised to install the plugin on both the Spigot server and, if applicable, the Proxy network for maximum performance and usefulness. ## Documentation This docs page includes every feature provided by the plugin. Be sure to take an in-depth look, and if you have any questions or suggestions, feel free to contact our team. ## Bug Reports <a href="#bug-reports" id="bug-reports"></a> Before reporting an issue to our team, make sure you have tested the latest available dev build. Issues present in the stable version may have already been fixed in the dev build. <figure><img src=".gitbook/assets/Phoenix Thumbnail Lobby.png" alt="" width="563"><figcaption><p>Phoenix Lobby</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-lobby --- # 🌎 Setup with Multiverse > **Warning:** The lobby should be in its own separate world, not in a world where players will be playing normally. > **Info:** We recommend using proxy integration as it offers more benefits for your server. ## Installation For the best experience with world integration, we recommend using [**Multiverse-Core**](https://www.spigotmc.org/resources/multiverse-core.390/), as it is the top choice for world management and ideal for this setup method. ## Step 1: The first step is to whitelist your lobby world so the plugin functions as a lobby only on that specific world. To achieve this, follow the steps below: 1. Open the `config.yml`of the plugin, and find the `worlds:` 2. Then make sure you have `should-use` as `ENABLED_WORLDS` and you put the name of your lobby. ```yaml worlds: should-use: ENABLED_WORLDS enabled: - your_lobby_name_here disabled: [] ``` > **Danger:** This step is required, not optional. Out of the box the plugin treats every world as a lobby, so your other worlds get the scoreboard, the tablist, the hotbar items, the world protection and the inventory clearing until you set this. > **Info:** This is the whole plugin, every module at once. The lobby items have a `worlds` block of their own in `lobby-items.yml` that only decides where the items are handed out, which is a separate and narrower setting. ## Step 2: The second step is to modify the commands that will be executed when a user clicks an item in the compass. 1. Open the `menus` folder, then the `servers.yml` file. Next, find your `servers` in the following example, we will use "survival". 2. Modify the current third line that teleports the user to use the Multiverse command, as shown in the example below: ```yaml survival: slot: '14' material: GRASS_BLOCK amount: 1 ... actions: - '[CLOSE_INVENTORY]' - '[MESSAGE] &7Sending you to &aSurvival&7.' - '[COMMAND] console; mvtp %player% your_server_world' ``` You might need to add the permission `multiverse.access.your_server_world` to the users, if they cant access that world. ## Step 3: Once you have done the steps above, make sure to reload the plugin with `/plobby reload` ## Step 4: If you want for the `/lobby` command to teleport the users to your lobby world, follow the method below. Go to your `commands.yml` (on your server's main directory) and add this: ```yaml command-block-overrides: [] ignore-vanilla-permissions: false aliases: hub: - mvtp $1 lobbyworldname lobby: - mvtp $1 lobbyworldname ``` ## World Inventories The plugin can hold the inventory for you. Turn it on in the join module: ```yaml restore-inventory: true ``` The inventory a user carries into a lobby world is saved to the database before it is cleared, and handed back when they leave for a world that is not a lobby. It survives a rejoin or a restart. If the database cannot save it, the inventory is not cleared, so nothing is lost. > **Danger:** While this is off, and it is off by default, the inventory is cleared on the way into a lobby world with no copy kept. Your users lose what they were carrying. > **Info:** One inventory is held, the one carried before entering the lobby, and it is handed back on the way out to any world that is not a lobby. ### Where the items are handed out Separately from the above, you can scope the lobby items so they are only given in your lobby world. This block lives in `lobby-items.yml`, not in `config.yml`: ```yaml worlds: should-use: ENABLED_WORLDS enabled: - your_lobby_name_here disabled: [] ``` This only decides where the items appear. Whether the plugin behaves as a lobby at all in a world is the `worlds` block in `config.yml`, covered in Step 1. ## Teleports and Respawning ### Fix the Spawning If you are using MultiverseCore and a player dies in the Nether or the End, they will respawn in the same world where they died. To fix this, run the following command while being on each world: ``` /mvm set respawnWorld lobbyworldname ``` ### For non Multiverse Users (Optional) If you don't use **Multiverse-Core**, you can replace the `/mvtp` command with the teleportation command specific to your server that teleports the user to another world. If you dont use any world management plugins, you can still use the vanilla teleport command as the following example. Make sure to replace the X Y Z to the location you want the user to get teleported. ```yaml execute as %player% in minecraft:your_server_world run teleport X_location Y_location Z_location ``` ## Limitations with Worlds * **Join Message Limitations:** The join message system cannot be limited exclusively to the lobby-reserved worlds. Additionally, there is a slight possibility of plugin conflicts if another plugin operates in a different game mode, although such occurrences are rare. * **Manual Configuration of Commands:** To avoid conflicts, users will need to manually configure the /lobby, /hub, and /spawn commands, especially if they have the Essentials plugin installed. * **Aliases for /lobby and /hub:** If you intend to use the /lobby and /hub commands, you can create aliases that redirect to `/plobby spawn`, which teleports the user to the spawn point set in the join module. It works without a proxy. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/set-up/setup-with-multiverse --- # 🚧 Limitations with Worlds * **Join Message Limitations:** The join message system cannot be limited exclusively to the lobby-reserved worlds. Additionally, there is a slight possibility of plugin conflicts if another plugin operates in a different game mode, although such occurrences are rare. * **Manual Configuration of Commands:** To avoid conflicts, users will need to manually configure the /lobby, /hub, and /spawn commands, especially if they have the Essentials plugin installed. * **Aliases for /lobby and /hub:** If you intend to use the /lobby and /hub commands, you can create aliases that redirect to `/plobby spawn`, which teleports the user to the spawn point set in the join module. It works without a proxy. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/set-up/setup-with-multiverse/limitations --- # 🌎 Setup with Multiverse > **Warning:** The lobby should be in its own separate world, not in a world where players will be playing normally. > **Info:** We recommend using proxy integration as it offers more benefits for your server. ## Installation For the best experience with world integration, we recommend using [**Multiverse-Core**](https://www.spigotmc.org/resources/multiverse-core.390/), as it is the top choice for world management and ideal for this setup method. ## Step 1: The first step is to whitelist your lobby world so the plugin functions as a lobby only on that specific world. To achieve this, follow the steps below: 1. Open the `config.yml`of the plugin, and find the `worlds:` 2. Then make sure you have `should-use` as `ENABLED_WORLDS` and you put the name of your lobby. ```yaml worlds: should-use: ENABLED_WORLDS enabled: - your_lobby_name_here disabled: [] ``` > **Danger:** This step is required, not optional. Out of the box the plugin treats every world as a lobby, so your other worlds get the scoreboard, the tablist, the hotbar items, the world protection and the inventory clearing until you set this. > **Info:** This is the whole plugin, every module at once. The lobby items have a `worlds` block of their own in `lobby-items.yml` that only decides where the items are handed out, which is a separate and narrower setting. ## Step 2: The second step is to modify the commands that will be executed when a user clicks an item in the compass. 1. Open the `menus` folder, then the `servers.yml` file. Next, find your `servers` in the following example, we will use "survival". 2. Modify the current third line that teleports the user to use the Multiverse command, as shown in the example below: ```yaml survival: slot: '14' material: GRASS_BLOCK amount: 1 ... actions: - '[CLOSE_INVENTORY]' - '[MESSAGE] &7Sending you to &aSurvival&7.' - '[COMMAND] console; mvtp %player% your_server_world' ``` You might need to add the permission `multiverse.access.your_server_world` to the users, if they cant access that world. ## Step 3: Once you have done the steps above, make sure to reload the plugin with `/plobby reload` ## Step 4: If you want for the `/lobby` command to teleport the users to your lobby world, follow the method below. Go to your `commands.yml` (on your server's main directory) and add this: ```yaml command-block-overrides: [] ignore-vanilla-permissions: false aliases: hub: - mvtp $1 lobbyworldname lobby: - mvtp $1 lobbyworldname ``` ## Additional Information The rest of the world integration setup is split across these pages: <table data-full-width="true"><thead><tr><th>Page</th><th>What it covers</th></tr></thead><tbody><tr><td><a href="world-inventories.md">World Inventories</a></td><td>Keep the inventory a user carries into the lobby and hand it back on the way out.</td></tr><tr><td><a href="teleports-and-respawning.md">Teleports and Respawning</a></td><td>Fix where a user respawns, and the teleport options without Multiverse.</td></tr><tr><td><a href="limitations.md">Limitations with Worlds</a></td><td>What world integration cannot do that a proxy can.</td></tr></tbody></table> Source: https://www.phoenixplugins.com/docs/phoenix-lobby/set-up/setup-with-multiverse --- # 🧭 Teleports and Respawning ## Fix the Spawning If you are using MultiverseCore and a player dies in the Nether or the End, they will respawn in the same world where they died. To fix this, run the following command while being on each world: ``` /mvm set respawnWorld lobbyworldname ``` ## For non Multiverse Users (Optional) If you don't use **Multiverse-Core**, you can replace the `/mvtp` command with the teleportation command specific to your server that teleports the user to another world. If you dont use any world management plugins, you can still use the vanilla teleport command as the following example. Make sure to replace the X Y Z to the location you want the user to get teleported. ```yaml execute as %player% in minecraft:your_server_world run teleport X_location Y_location Z_location ``` Source: https://www.phoenixplugins.com/docs/phoenix-lobby/set-up/setup-with-multiverse/teleports-and-respawning --- # 🎒 World Inventories The plugin can hold the inventory for you. Turn it on in the join module: ```yaml restore-inventory: true ``` The inventory a user carries into a lobby world is put away before it is cleared, and handed back when they leave for a world that is not a lobby. It is kept in the database, so it survives a rejoin or a restart. > **Danger:** While this is off, and it is off by default, the inventory is cleared on the way into a lobby world with no copy kept. Your users lose what they were carrying. > **Info:** One inventory is held, the one carried before entering the lobby, and it is handed back on the way out to any world that is not a lobby. ## Where the items are handed out Separately from the above, you can scope the lobby items so they are only given in your lobby world. This block lives in `lobby-items.yml`, not in `config.yml`: ```yaml worlds: should-use: ENABLED_WORLDS enabled: - your_lobby_name_here disabled: [] ``` This only decides where the items appear. Whether the plugin behaves as a lobby at all in a world is the `worlds` block in `config.yml`, covered in Step 1. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/set-up/setup-with-multiverse/world-inventories --- # ⛓️ Setup with Proxy ## Step 1: The first step is to install PhoenixLobby on both your proxy server and your lobby servers. ## Step 2: If you have set up your servers correctly and installed Phoenix Lobby on your proxy and lobby, the lobby server should automatically appear in the `config.yml` of the plugin on your proxy server. If it's not there, make sure to set it manually. ```yaml servers: lobby: {display-name: Lobby, maximum-slots: 100} registered-lobbies: [lobby] ``` ## Step 3: Turn on **Register Lobby In Proxy** from **Editor > Settings** on the lobby server, so it announces itself to the proxy on startup instead of you adding it by hand. <figure><img src="../.gitbook/assets/settings/register-lobby-in-proxy.png" alt="" width="563"><figcaption><p>Settings (Register Lobby In Proxy)</p></figcaption></figure> The option names the proxy it found in its title. **Proxy not found** means this server is not talking to one yet, so finish steps 1 and 2 first. The same switch is `register-lobby` in the lobby server's `config.yml` if you would rather set it there. The proxy's `registered-lobbies` list decides which servers are lobbies. Turning this option off does not remove a server that is already on it. To unregister a lobby, take it out of `registered-lobbies` on the proxy and restart the proxy. ## Advanced Features Every feature from [Multiple Lobbies](#multiple-lobbies) down needs the plugin installed on the proxy as well, and so do the network [Placeholders](setup-with-proxy/placeholders.md). * **Server Switch Logging:** Tells the lobby that a player is changing server, so a real disconnect is not logged as one. See the [Logger](../modules/logger.md) page. ## Configured on the Proxy Some features exist on both sides. As soon as the lobby is talking to a proxy, the proxy is the one in charge: the lobby module stands down and whatever is set on the lobby is ignored, so these have to be configured on BungeeCord or Velocity. <table data-full-width="true"><thead><tr><th>Feature</th><th>Why the proxy wins</th></tr></thead><tbody><tr><td><a href="../modules/alts.md">Alt Protection</a></td><td>The proxy sees every server at once, so accounts spread over two of them are still counted as one address. A lobby only ever sees its own players.</td></tr><tr><td><a href="../modules/join-actions.md#join-and-quit-messages">Join & Quit Messages</a></td><td>The proxy announces a player once for the whole network, through <a href="#join-and-leave-messages">Join and Leave Messages</a>, instead of once per backend.</td></tr><tr><td><a href="../modules/maintenance.md">Maintenance</a></td><td>The proxy denies the connection before it reaches a backend, and can close one server or the whole network.</td></tr><tr><td><a href="../modules/motd.md">MOTD</a></td><td>The ping never reaches a backend server, so the motd players see is always the one from the proxy.</td></tr></tbody></table> The lobby commands for those features answer that the proxy is in charge instead of doing nothing quietly. ## Additional Information ### Database Make sure your database is properly set up in the `config.yml` if you want to use multiple lobbies. If they aren’t connected to the same database, you may run into issues. ### Server Discovery Sets how many seconds a server may take to be discovered and become available. ```yaml server-discovery-seconds: 3 ``` 3 seconds is the recommended amount. Lowering it makes a server available faster but can cause performance issues. ### NPC Actions and Proxy Connectivity In addition to the queue system, PhoenixLobby offers convenient options for NPC actions. Administrators can use the following actions to connect players directly to specific Proxy servers: * `[COMMAND] player;queue your_server -` Triggers the queue system and adds the player to the waiting line before connecting them to the specified server. * `[PROXY] your_server` - Directly connects the player to the specified Proxy server without involving the queue system. > **Warning:** The `messages.yml` of the proxy is not updated on its own. If a message shows up as **Invalid Message** after an update, delete the file to get the new one, or copy the missing part into yours. ### Pre Installed Requirements Make sure your backend servers are connected to the proxy. If they aren’t, PhoenixLobby won’t detect them. If you're using Velocity or BungeeCord, check their documentation for proper setup. We encourage our users to install Velocity instead of Bungeecord. **Velocity Docs** - [Click Here](https://docs.papermc.io/velocity/getting-started) **Bungeecord Docs** - [Click Here](https://www.spigotmc.org/wiki/bungeecord-installation/) ## Multiple Lobbies With Proxy, you can set up and manage multiple lobbies, each with its own settings, themes, and features. All of the lobbies have to point at the same database, otherwise you may run into issues. ### Automatic Lobby Redirection PhoenixLobby can send players to lobbies with fewer players, keeping the server balanced. ### Forced Hosts A player who joins through one of your proxy's forced hosts goes straight to that host's server instead of being sent to a lobby. A forced host that points at a lobby is still balanced across all of your lobbies. ```toml [forced-hosts] "opencreative.yourserver.com" = ["opencreative"] "play.yourserver.com" = ["lobby"] ``` With this in `velocity.toml`, joining through `opencreative.yourserver.com` lands on **opencreative**, while `play.yourserver.com` goes to whichever lobby has the fewest players. On BungeeCord the same mapping is `forced_hosts` in its `config.yml`. A forced server under [maintenance](../modules/maintenance.md) still sends a player who is not allowed in to a lobby. ### Seamless Lobby Networking Players can move between lobbies easily, making the experience smooth across the network. ### Lobby Auto Registration Registers a new server as a lobby on its own when its name matches your pattern. This is meant for lobbies that are created automatically, so they join the lobby selector without you adding them by hand. ```yaml lobby-auto-registration: enabled: false pattern: '^lobby-[a-z0-9]{5}-[a-z0-9]{5}$' ``` ## Queue System Helps manage high player traffic by placing players in a waiting line, preventing server overload. ```yaml queue: enabled: true forward-time: 5 reminder-time: 5 disable-between-lobbies: true ``` `forward-time` is how long it takes to dispatch a player from the queue, and `reminder-time` is how often the position message is sent. ```yaml queue: reminder-display: both persistent-actionbar: true ``` `reminder-display` is where the position reminder shows: `chat`, `actionbar` or `both`. With `persistent-actionbar` on, the action bar is refreshed every second instead of only every `reminder-time`, so it does not fade away between reminders. ### Queue Priority Gives your ranks a better place in the queue. A player holding `phoenixlobby.queuepriority.<number>` is placed above everyone queued with a lower number, and players sharing the same number keep the order they joined in. Players without the permission count as 0. ```yaml queue: priority: enabled: true max-priority: 100 ``` `max-priority` is the highest number that is looked up when a player joins a queue, so lower it if you only hand out small priority numbers. With `per-server` on, `phoenixlobby.queuepriority.<server>.<number>` gives that priority for one server only, and is checked before the general permission. The server name is lowercase. ### Slot Limits Keeps free slots on a server for your higher ranks, so a full server still lets a rank in while everyone else waits. ```yaml queue: slot-limits: enabled: true servers: survival: default: 90% vip: 95% mvp: max ``` Each rank is the number of players the server may hold before that rank has to wait: a number, a percentage of the server's `maximum-slots`, or `max` for every slot. A player holding `phoenixlobby.queueslots.<server>.<rank>` gets that rank's limit, for example `phoenixlobby.queueslots.survival.vip`. A rank named `default` applies to everyone. A player holding several ranks gets the highest limit, and a server without a matching rank has no limit. A player who has to wait because of a limit is told no slots are free for their rank yet. A value that is not a number, a percentage or `max` is skipped with a warning in the proxy console. ### Waiting Server (Full Network Queue) When every lobby is full, a joining player is normally kicked. With a waiting server they are sent there instead, join the lobby queue with their [priority](#queue-priority), and are forwarded to a lobby as soon as a slot frees up. ```yaml lobby: full-queue: enabled: true server: limbo ``` * `queue.enabled` has to be on. * `server` is a server of your proxy, and it must not be one of your lobbies. Use a separate lightweight server such as NanoLimbo added to the proxy. PhoenixLobby is not needed on it. * It is not available in the free version. `/leavequeue` leaves the lobby queue but keeps the player on the waiting server, where they stay until they disconnect or join another server with `/queue <server>`. If the waiting server is offline, players are kicked as before. The proxy console warns when it is enabled but `queue.enabled` is off, `server` is empty, `server` is not a server of the proxy, or `server` is also a registered lobby. ## Server Shortcuts Registers one command per server, so `/survival` sends the player to the `survival` server instead of them having to type `/queue survival`. Each entry accepts extra `aliases` and an optional `permission` (leave empty for everyone). With `use-queue: true` the player goes through the queue system, otherwise they are connected right away. ```yaml server-shortcuts: enabled: true use-queue: true commands: survival: server: survival aliases: [smp] permission: '' ``` Command names that PhoenixLobby already uses (`lobby`, `hub`, `queue`, `leavequeue`, `maintenance`) are skipped, and a shortcut overrides any backend server command with the same name. ## Join and Leave Messages Announces on every server when a player joins or leaves the network, instead of once per backend server. Players holding the silent permission are never announced. The lobby's own [Join & Quit Messages](../modules/join-actions.md#join-and-quit-messages) stand down while the proxy runs PhoenixLobby, so turn this on to keep announcing joins and leaves. ```yaml join-messages: enabled: false silent-permission: phoenixlobby.silentjoin join: enabled: true leave: enabled: true ``` ## Kick-Forward PhoenixLobby offers a kick-forward mechanism that ensures players are redirected to the lobby server after being kicked from another game server. ```yaml lobby: connect-on-join: true reconnect: enabled: true blacklisted-reasons: [] blacklisted-servers: [] ``` ## MOTD Behind a proxy the server list ping never reaches the lobby, so the message, the logo and the player count are served by PhoenixLobby on the proxy instead. There is no editor for it there, everything lives in the proxy's **config.yml**. ```yaml motds: enabled: true motd: motds: '0': - ' &d&lYOUR NETWORK' - ' &8Learn more at &7&nwww.example.com' server-icon: 'logo' player-count: text: '' hover: [] online-players: '' max-players: '' extra-players: 0 hide-players: false hide-players-hover: false maintenance: enabled: true motd: - ' &c&lUNDER MAINTENANCE' - ' &8We will be back in &7{timer}' player-count-message: enabled: true enable-timer-specific-message: true message: '<dark_red>Maintenance' timer-message: '<dark_red>Come back in: <yellow>{timer}' player-list-hover-message: enabled: true enable-timer-specific-message: true message: '<red>Currently under<br><red>maintenance' timer-message: '<red>Come back in:<br><yellow>{timer}' maintenance-icon: enabled: false ``` Every option means the same as on the [MOTD](../modules/motd.md) and [Player Count](../modules/motd.md#player-count) pages, and the [placeholders](../modules/motd.md#proxy) work here too. Unlike a lobby on Spigot, every player count option works on any proxy. ### Server Icon To use your own logo: 1. Put a png in the **servericons** folder inside the PhoenixLobby folder on the proxy, for example `logo.png`. The folder is created on the first start. 2. Write its name in `server-icon`, with or without the `.png`. 3. Restart the proxy. Any size works, it is scaled to 64x64, but a square image keeps its shape. Leaving `server-icon` empty keeps the proxy's own icon. A missing or unreadable file is reported once in the proxy console and then skipped until the next restart. > **Warning:** The proxy reads this section only on startup, so every change, including a new png, needs a restart. The icon and the player count are only sent while `enabled` is `true`. With it off, only the maintenance options are still applied. The maintenance player count, hover and icon options are explained on the [Maintenance](../modules/maintenance.md#player-count-message) page, and **maintenance-icon.png** goes in the proxy's PhoenixLobby folder. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/set-up/setup-with-proxy --- # 📢 Join and Leave Messages Announces on every server when a player joins or leaves the network, instead of once per backend server. Players holding the silent permission are never announced. The lobby's own [Join & Quit Messages](../../modules/join-actions/join-quit-messages.md) stand down while the proxy runs PhoenixLobby, so turn this on to keep announcing joins and leaves. ```yaml join-messages: enabled: false silent-permission: phoenixlobby.silentjoin join: enabled: true leave: enabled: true ``` Source: https://www.phoenixplugins.com/docs/phoenix-lobby/set-up/setup-with-proxy/join-and-leave-messages --- # 🪃 Kick-Forward PhoenixLobby offers a kick-forward mechanism that ensures players are redirected to the lobby server after being kicked from another game server. ```yaml lobby: connect-on-join: true reconnect: enabled: true blacklisted-reasons: [] blacklisted-servers: [] ``` Source: https://www.phoenixplugins.com/docs/phoenix-lobby/set-up/setup-with-proxy/kick-forward --- # 🖼️ MOTD Behind a proxy the server list ping never reaches the lobby, so the message, the logo and the player count are served by PhoenixLobby on the proxy instead. There is no editor for it there, everything lives in the proxy's **config.yml**. ```yaml motds: enabled: true motd: motds: '0': - ' &d&lYOUR NETWORK' - ' &8Learn more at &7&nwww.example.com' server-icon: 'logo' player-count: text: '' hover: [] online-players: '' max-players: '' extra-players: 0 hide-players: false hide-players-hover: false maintenance: enabled: true motd: - ' &c&lUNDER MAINTENANCE' - ' &8We will be back in &7{timer}' player-count-message: enabled: true enable-timer-specific-message: true message: '<dark_red>Maintenance' timer-message: '<dark_red>Come back in: <yellow>{timer}' player-list-hover-message: enabled: true enable-timer-specific-message: true message: '<red>Currently under<br><red>maintenance' timer-message: '<red>Come back in:<br><yellow>{timer}' maintenance-icon: enabled: false ``` Every option means the same as on the [MOTD](../../modules/motd.md) and [Player Count](../../modules/motd/player-count.md) pages, and the [placeholders](../../modules/motd/placeholders.md#proxy) work here too. Unlike a lobby on Spigot, every player count option works on any proxy. ## Server Icon To use your own logo: 1. Put a png in the **servericons** folder inside the PhoenixLobby folder on the proxy, for example `logo.png`. The folder is created on the first start. 2. Write its name in `server-icon`, with or without the `.png`. 3. Restart the proxy. Any size works, it is scaled to 64x64, but a square image keeps its shape. Leaving `server-icon` empty keeps the proxy's own icon. A missing or unreadable file is reported once in the proxy console and then skipped until the next restart. > **Warning:** The proxy reads this section only on startup, so every change, including a new png, needs a restart. The icon and the player count are only sent while `enabled` is `true`. With it off, only the maintenance options are still applied. The maintenance player count, hover and icon options are explained on the [Maintenance](../../modules/maintenance.md#player-count-message) page, and **maintenance-icon.png** goes in the proxy's PhoenixLobby folder. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/set-up/setup-with-proxy/motd --- # 🏘️ Multiple Lobbies ## Multiple Lobbies Support With Proxy, you can set up and manage multiple lobbies, each with its own settings, themes, and features. All of the lobbies have to point at the same database, otherwise you may run into issues. ## Automatic Lobby Redirection PhoenixLobby can send players to lobbies with fewer players, keeping the server balanced. ## Forced Hosts A player who joins through one of your proxy's forced hosts goes straight to that host's server instead of being sent to a lobby. A forced host that points at a lobby is still balanced across all of your lobbies. ```toml [forced-hosts] "opencreative.yourserver.com" = ["opencreative"] "play.yourserver.com" = ["lobby"] ``` With this in `velocity.toml`, joining through `opencreative.yourserver.com` lands on **opencreative**, while `play.yourserver.com` goes to whichever lobby has the fewest players. On BungeeCord the same mapping is `forced_hosts` in its `config.yml`. A forced server under [maintenance](../../modules/maintenance.md) still sends a player who is not allowed in to a lobby. ## Seamless Lobby Networking Players can move between lobbies easily, making the experience smooth across the network. ## Lobby Auto Registration Registers a new server as a lobby on its own when its name matches your pattern. This is meant for lobbies that are created automatically, so they join the lobby selector without you adding them by hand. ```yaml lobby-auto-registration: enabled: false pattern: '^lobby-[a-z0-9]{5}-[a-z0-9]{5}$' ``` Source: https://www.phoenixplugins.com/docs/phoenix-lobby/set-up/setup-with-proxy/multiple-lobbies --- # 🔍 Placeholders These are [PlaceholderAPI](https://www.spigotmc.org/resources/placeholderapi.6245/) placeholders, so they work anywhere PlaceholderAPI is read, including the [scoreboard](../../modules/scoreboard.md), the [tablist](../../modules/tablist.md) and holograms. Every one of them takes a backend's name, the same name the proxy **config.yml** lists under `servers`. > **Info:** PhoenixLobby has to be installed on the proxy as well. Without it the lobby is never told about the other servers, and every placeholder here answers with its empty value. ## Player count | Placeholder | Returns | | ------------------------------------ | -------------------------- | | `%phoenixlobby_proxy_total%` | Everyone on the network | | `%phoenixlobby_proxy_<server>%` | Players on that backend | | `%phoenixlobby_proxy_max_<server>%` | Slot count of that backend | Both counts leave vanished staff out. The proxy works them out itself and hands the same figure to every backend, so two lobbies never disagree about how busy the network is. > **Warning:** A backend without PhoenixLobby on it cannot report who is vanished there, so staff vanished on that server are still counted. ## Is it up | Placeholder | Returns | | --------------------------------------- | ---------------------------------------- | | `%phoenixlobby_proxy_online_<server>%` | Online or Offline | Both words come from your translations file under `proxy`, so they follow whatever language you have set, colours included. ## MOTD and version | Placeholder | Example result | | -------------------------------------------- | -------------------- | | `%phoenixlobby_proxy_motd_<server>%` | `A Minecraft Server` | | `%phoenixlobby_proxy_gameversion_<server>%` | `1.21.4` | | `%phoenixlobby_proxy_pingversion_<server>%` | `769` | The MOTD arrives with its colours intact and with the line break the server put in it, so a two-line MOTD needs somewhere that can hold two lines. `gameversion` is the version name the backend reports, which it may have rewritten to something like `Paper 1.21.4`, while `pingversion` is the protocol number behind it. ## When there is no answer A server the proxy has not reported yet, one that is offline, or a name that does not exist at all, answers with an empty value rather than the placeholder text. | Placeholder | Empty value | | ------------- | ---------------------------------------- | | `motd` | Nothing at all | | `gameversion` | Nothing at all | | `max` | `0` | | `pingversion` | `-1` | | `online` | Offline | The two player counts are the exception. Until the first report arrives they fall back to the proxy's plain number, the same one any BungeeCord player count gives, which still has vanished staff in it, and to `0` when even that is missing. ## How fresh the numbers are The proxy already checks each backend on the [Server Discovery](../setup-with-proxy.md#server-discovery) interval, and the report rides along with it. Everything on this page is therefore at most `server-discovery-seconds` old, three seconds by default. Lowering that makes the placeholders react faster at the cost of pinging every backend more often. A lobby with nobody on it is not sent the report, since the message travels with a player. The first player to join fills it in within one interval. > **Warning:** The server name starts after the first underscore, so `%phoenixlobby_proxy_max_survival_1%` is the slot count of `survival_1`. A backend whose own name begins with one of the words above, such as a server literally named `max_1`, cannot be counted with the plain `%phoenixlobby_proxy_max_1%`, because that reads as the slot count of `1`. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/set-up/setup-with-proxy/placeholders --- # 🚦 Queue System ## Queue System Helps manage high player traffic by placing players in a waiting line, preventing server overload. ```yaml queue: enabled: true forward-time: 5 reminder-time: 5 disable-between-lobbies: true ``` `forward-time` is how long it takes to dispatch a player from the queue, and `reminder-time` is how often the position message is sent. ## Queue Priority Gives your ranks a better place in the queue. A player holding `phoenixlobby.queuepriority.<number>` is placed above everyone queued with a lower number, and players sharing the same number keep the order they joined in. Players without the permission count as 0. ```yaml queue: priority: enabled: true max-priority: 100 ``` `max-priority` is the highest number that is looked up when a player joins a queue, so lower it if you only hand out small priority numbers. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/set-up/setup-with-proxy/queue-system --- # ⛓️ Setup with Proxy ## Step 1: The first step is to install PhoenixLobby on both your proxy server and your lobby servers. ## Step 2: If you have set up your servers correctly and installed Phoenix Lobby on your proxy and lobby, the lobby server should automatically appear in the `config.yml` of the plugin on your proxy server. If it's not there, make sure to set it manually. ```yaml servers: lobby: {display-name: Lobby, maximum-slots: 100} registered-lobbies: [lobby] ``` ## Step 3: Make sure that `register-lobby` is enabled in the lobby server’s `config.yml` ```yaml proxy: register-lobby: true ``` ## Advanced Features Each of these needs the plugin installed on the proxy as well, and has its own page: <table data-full-width="true"><thead><tr><th>Feature</th><th>What it does</th></tr></thead><tbody><tr><td><a href="multiple-lobbies.md">Multiple Lobbies</a></td><td>Run several lobbies, balance the users between them, and register new ones on their own.</td></tr><tr><td><a href="queue-system.md">Queue System</a></td><td>Hold the users in a waiting line, and let your ranks skip ahead.</td></tr><tr><td><a href="server-shortcuts.md">Server Shortcuts</a></td><td>Register one command per server, such as <code>/survival</code>.</td></tr><tr><td><a href="join-and-leave-messages.md">Join and Leave Messages</a></td><td>Announce a join or a leave once for the whole network.</td></tr><tr><td><a href="kick-forward.md">Kick-Forward</a></td><td>Send the users back to a lobby after a kick from another server.</td></tr></tbody></table> Two more proxy features are covered on their own pages: * **Server Switch Logging:** Tells the lobby that a player is changing server, so a real disconnect is not logged as one. See the [Logger](../../featues/logger.md) page. * **Maintenance:** Closes a server, or the whole network, for everyone except the people you allow. See the [Maintenance](../../featues/maintenance.md) page. ## Additional Information ### Database Make sure your database is properly set up in the `config.yml` if you want to use multiple lobbies. If they aren’t connected to the same database, you may run into issues. ### Server Discovery Sets how many seconds a server may take to be discovered and become available. ```yaml server-discovery-seconds: 3 ``` 3 seconds is the recommended amount. Lowering it makes a server available faster but can cause performance issues. ### NPC Actions and Proxy Connectivity In addition to the queue system, PhoenixLobby offers convenient options for NPC actions. Administrators can use the following actions to connect players directly to specific Proxy servers: * `[COMMAND] player;queue your_server -` Triggers the queue system and adds the player to the waiting line before connecting them to the specified server. * `[PROXY] your_server` - Directly connects the player to the specified Proxy server without involving the queue system. > **Warning:** The `messages.yml` of the proxy is not updated on its own. If a message shows up as **Invalid Message** after an update, delete the file to get the new one, or copy the missing part into yours. ### Pre Installed Requirements Make sure your backend servers are connected to the proxy. If they aren’t, PhoenixLobby won’t detect them. If you're using Velocity or BungeeCord, check their documentation for proper setup. We encourage our users to install Velocity instead of Bungeecord. **Velocity Docs** - [Click Here](https://docs.papermc.io/velocity/getting-started) **Bungeecord Docs** - [Click Here](https://www.spigotmc.org/wiki/bungeecord-installation/) Source: https://www.phoenixplugins.com/docs/phoenix-lobby/set-up/setup-with-proxy --- # 🔗 Server Shortcuts Registers one command per server, so `/survival` sends the player to the `survival` server instead of them having to type `/queue survival`. Each entry accepts extra `aliases` and an optional `permission` (leave empty for everyone). With `use-queue: true` the player goes through the queue system, otherwise they are connected right away. ```yaml server-shortcuts: enabled: true use-queue: true commands: survival: server: survival aliases: [smp] permission: '' ``` Command names that PhoenixLobby already uses (`lobby`, `hub`, `queue`, `leavequeue`, `maintenance`) are skipped, and a shortcut overrides any backend server command with the same name. Source: https://www.phoenixplugins.com/docs/phoenix-lobby/set-up/setup-with-proxy/server-shortcuts === # Phoenix Shop documentation > GUI shop plugin for Spigot and Paper: admin GUI shops, sell menus, player chest shops, sign shops and NPC shopkeepers, built and priced in-game, with or without Vault. Docs: https://www.phoenixplugins.com/docs/phoenix-shop Supported Minecraft versions: 1.20.4 – 26.3 (Paper, Folia (experimental), Spigot) --- # 💸 AutoSell ## Information The AutoSell add-on sells what a player is carrying on a timer, so they can keep mining or farming without opening a shop. Players run on autosell time that an admin hands out, and the add-on also adds placeable sell chests that empty themselves into your shops for as long as they have time left. <figure><img src="../../.gitbook/assets/autosell/autosell.png" alt="" width="563"><figcaption><p>Editor (Autosell)</p></figcaption></figure> Every sale goes through the normal sell path, so prices, currencies, stock, conditions, actions and sell multipliers such as the Sell Boosters add-on all apply exactly as they do in the shop menu. ## Installation To install this add-on, drag and drop the jar file into the PhoenixShop/addons folder, then restart your server. > **Info:** The add-on requires the Premium edition. On Lite it does not load and the console says why. ## Files | File | What it holds | | ---- | ------------- | | `PhoenixShop/addons/AutoSell/config.yml` | The add-on settings and the sell chest types. | | Plugin database | Each player's autosell time, toggle and earnings, and every placed sell chest. An old `autosell.yml` is moved there on first start. | | `PhoenixShop/translations/translations.<lang>.yml` | The add-on messages, under the `autosell` and `sellchest` sections. | ## How it works Once autosell is on, the player's main inventory is sold every few seconds into the shops set in the [settings](#settings). Armor and the off-hand slot are left alone. Items a shop does not buy stay in the inventory. Autosell time only counts down while the player is online with autosell on. When it runs out, autosell turns itself off and the player is told. A player with the unlimited permission never runs out. Turning autosell on resets the earnings of the current session, which is what the action bar and the session placeholders show. ## Commands | Command | Description | | ------- | ----------- | | `/autosell` | Turns autosell on or off. Same as `/autosell toggle`. Refused when the player has no time left. | | `/pshop autosell add <player> <time>` | Gives a player autosell time. The player is told when they are online. | | `/pshop autosell remove <player> <time>` | Takes autosell time away, down to zero. | | `/pshop autosell set <player> <time>` | Sets a player's autosell time. | | `/pshop autosell check [player]` | Shows how much autosell time is left. Without a player it shows your own. | | `/pshop sellchest give <player> <type> [amount]` | Gives placeable sell chests of a type. The amount goes from 1 to 64. | Times are written as a number and a unit: `30s`, `30m`, `6h` or `1d`. Units can be combined, such as `1h30m`. A player has to have joined once, while the add-on was installed, before an offline name is accepted. ## Permissions | Permission | What it allows | Default | | ---------- | -------------- | ------- | | `phoenixshop.autosell` | Using `/autosell`. | Nobody | | `phoenixshop.autosell.infinite` | Autosell never runs out of time. | Nobody | | `phoenixshop.command.autosell` | Adding, removing, setting and checking other players' autosell time. | Operators | | `phoenixshop.command.sellchest` | Giving sell chests. | Operators | | `phoenixshop.sellchest.unlimited` | Placing any number of sell chests. | Nobody | | `phoenixshop.sellchest.limit.<n>` | Placing up to `<n>` sell chests, such as `phoenixshop.sellchest.limit.10`. With several, the highest counts. Without one, Chests per Player applies. | Nobody | `phoenixshop.admin` grants all of the above. A shop with its own permission is only sold into for players who have it. ## Settings > **Info:** These settings live in addons/AutoSell/config.yml. **Editor > Add-ons > AutoSell** opens two screens: **Autosell**, with the settings below, and **Sell Chests**, covered on the [Sell Chests](sell-chests.md) page. Without the add-on, that button shows that the add-on is required. ### Action Bar Shows the time left, the money earned this session and the current sell multiplier on the action bar of every player with autosell on. On by default. <figure><img src="../../.gitbook/assets/autosell/action-bar.png" alt="" width="563"><figcaption><p>Settings (Action Bar)</p></figcaption></figure> ### Sell Interval How many seconds pass between one sale and the next, for both a player's inventory and their sell chests. The default is 30, and the value goes from 1 to 3600. A lower value empties inventories sooner but runs more sales. <figure><img src="../../.gitbook/assets/autosell/sell-interval.png" alt="" width="563"><figcaption><p>Settings (Sell Interval)</p></figcaption></figure> ### Shops The shops autosell may sell into, in order. When an item sells in more than one of them, the shop higher in the list gets it. A shop that is turned off, or that has a permission the player lacks, is skipped for that player. <figure><img src="../../.gitbook/assets/autosell/shops.png" alt="" width="563"><figcaption><p>Settings (Shops)</p></figcaption></figure> Clicking it opens the list, where shops can be added to the bottom and two shops can swap places. ## Placeholders | Placeholder | Description | | ----------- | ----------- | | %phoenixshop_autosell_enabled% | `true` when the player has autosell on, otherwise `false`. | | %phoenixshop_autosell_earned_total% | Everything the player has earned from autosell and their sell chests, formatted per currency. | | %phoenixshop_autosell_earned_total_raw% | The same total as a plain number, with every currency added together. | | %phoenixshop_autosell_earned_session% | What the player has earned since autosell was last turned on, formatted per currency. | | %phoenixshop_autosell_earned_session_raw% | The same session total as a plain number. | | %phoenixshop_autosell_multiplier% | The player's current sell multiplier. `1.0` while offline. | | %phoenixshop_autosell_time_remaining% | The autosell time the player has left. | | %phoenixshop_autosell_time_remaining_hours% | The whole hours left. | | %phoenixshop_autosell_time_remaining_minutes% | The minutes left past the whole hours. | | %phoenixshop_autosell_time_remaining_seconds% | The seconds left past the whole minutes. | The time placeholders show the unlimited label for a player with `phoenixshop.autosell.infinite`. > **Info:** The session earnings only count the player's inventory. Sell chest earnings go into the total and into each chest's own hologram. Source: https://www.phoenixplugins.com/docs/phoenix-shop/add-ons/autosell --- # 📜 Placeholders ## PlaceholderAPI Placeholders | Placeholder | Description | | ----------- | ----------- | | %phoenixshop_autosell_enabled% | `true` when the player has autosell on, otherwise `false`. | | %phoenixshop_autosell_earned_total% | Everything the player has earned from autosell and their sell chests, formatted per currency. | | %phoenixshop_autosell_earned_total_raw% | The same total as a plain number, with every currency added together. | | %phoenixshop_autosell_earned_session% | What the player has earned since autosell was last turned on, formatted per currency. | | %phoenixshop_autosell_earned_session_raw% | The same session total as a plain number. | | %phoenixshop_autosell_multiplier% | The player's current sell multiplier. `1.0` while offline. | | %phoenixshop_autosell_time_remaining% | The autosell time the player has left. | | %phoenixshop_autosell_time_remaining_hours% | The whole hours left. | | %phoenixshop_autosell_time_remaining_minutes% | The minutes left past the whole hours. | | %phoenixshop_autosell_time_remaining_seconds% | The seconds left past the whole minutes. | The time placeholders show the unlimited label for a player with `phoenixshop.autosell.infinite`. > **Info:** The session earnings only count the player's inventory. Sell chest earnings go into the total and into each chest's own hologram. Source: https://www.phoenixplugins.com/docs/phoenix-shop/add-ons/autosell/placeholders --- # 📦 Sell Chests > **Info:** The sell chest settings and types live in addons/AutoSell/config.yml, and every one of them can be changed from **Sell Chests**, behind **Editor > Add-ons > AutoSell**. ## Sell Chests A sell chest is a container a player places that sells whatever is put inside it. It is handed out as an item with `/pshop sellchest give` or with shift + right-click on a type in the editor, and each type sells for its own duration. <figure><img src="../../.gitbook/assets/sell-chests/sell-chests.png" alt="" width="563"><figcaption><p>Autosell (Sell Chests)</p></figcaption></figure> A sell chest does not need autosell time or the autosell permission. It has its own time, which starts from the type's duration when first placed. ## When it sells Every sell interval, the chest's contents are sold into the same shops as autosell, checked against the owner's shop permissions. The earnings go to the owner. The chest only sells, and its time only counts down, while the owner is online and the chest's chunk is loaded. When the time runs out, the owner is told and it turns into a normal chest: it stops selling, its hologram goes and its contents stay inside. ## Protection | Action | Result | | ------ | ------ | | Opening | Only the owner and players with `phoenixshop.admin` can open it. | | Breaking | Only the owner and admins can break it. With time left, it drops as a sell chest item that keeps the remaining time and its name. Without time left, it breaks like a normal chest. Either way its contents drop like a normal chest's, except in a shulker box sell chest, whose item keeps them inside. | | Explosions and fire | The chest is never destroyed. | | Pistons | Pistons cannot push or pull it. | | Hoppers | Hoppers cannot pull items out of it, but can still fill it. | | Claims | With Require Claim on, a sell chest can only be placed inside a WorldGuard, GriefPrevention, Lands or Towny claim the player can build in. Admins are not limited. | | Placing a chest next to it | The two never join into a double chest. | ## Chest Menu The owner opens the chest's menu by shift + right-clicking it. A normal right-click opens the chest as usual. Admins can open the menu of any chest, the same way or from [Placed Chests](#placed-chests). ### Hologram Shows the chest's name, time left and total earnings above it. On for a new chest. The lines come from the translations file. <figure><img src="../../.gitbook/assets/sell-chests/hologram.png" alt="" width="563"><figcaption><p>Sell Chest (Hologram)</p></figcaption></figure> ### Information Shows the chest's owner, time left and total earnings. Time left and earnings update every second while the menu is open. <figure><img src="../../.gitbook/assets/sell-chests/information.png" alt="" width="563"><figcaption><p>Sell Chest (Information)</p></figcaption></figure> ### Filter Mode Decides what the **Items** list means. **Blacklist**, the default, never sells the listed items. **Whitelist** sells only the listed items. Clicking it swaps between the two. <figure><img src="../../.gitbook/assets/sell-chests/filter-mode.png" alt="" width="563"><figcaption><p>Sell Chest (Filter Mode)</p></figcaption></figure> ### Items The items the filter mode applies to. Left-click adds the item in your hand, right-click removes the last one and shift + right-click clears the list. A custom item from a supported item plugin is told apart from its base material, so filtering a custom fish leaves plain cod alone. <figure><img src="../../.gitbook/assets/sell-chests/items.png" alt="" width="563"><figcaption><p>Sell Chest (Items)</p></figcaption></figure> ## Enabled Turns sell chests on or off for the whole server. While off, a sell chest cannot be placed and the ones already placed stop selling and keep their time. On by default. <figure><img src="../../.gitbook/assets/sell-chests/enabled.png" alt="" width="563"><figcaption><p>Sell Chests (Enabled)</p></figcaption></figure> ## Chests per Player How many sell chests one player can have placed at the same time. The default is 3, and the value goes from 0 to 1000. Players with `phoenixshop.sellchest.unlimited` or `phoenixshop.admin` are not limited, and `phoenixshop.sellchest.limit.<n>` gives a player their own limit instead. <figure><img src="../../.gitbook/assets/sell-chests/chests-per-player.png" alt="" width="563"><figcaption><p>Sell Chests (Chests per Player)</p></figcaption></figure> ## Require Claim Only lets a sell chest be placed inside a claim the player can build in, checked with WorldGuard, GriefPrevention, Lands or Towny, whichever are installed. Off by default. With none of them installed, it has no effect. Players with `phoenixshop.admin` are not limited. <figure><img src="../../.gitbook/assets/sell-chests/require-claim.png" alt="" width="563"><figcaption><p>Sell Chests (Require Claim)</p></figcaption></figure> ## Types Lists every sell chest type by name and id, with its duration and whether it is enabled. Left-click edits a type, right-click deletes it after a confirmation and shift + left-click gives you one. A type with a duration that cannot be read is marked with an error and cannot be handed out. <figure><img src="../../.gitbook/assets/sell-chests/types.png" alt="" width="563"><figcaption><p>Sell Chests (Types)</p></figcaption></figure> **New Type** creates a chest that sells for one hour with the next free id, such as `sell_chest_1`, which is what `/pshop sellchest give` takes, and opens its editor straight away. | Option | What it does | | ------ | ------------ | | Identifier | The id `/pshop sellchest give` takes. Placed chests follow a new id; chests already handed out keep the old one and can no longer be placed. | | Display Name | The name of the chest item, and the name a placed chest uses in its hologram and messages. A placed chest keeps the name it was placed with. | | Material | The block that is placed: a chest, a trapped chest or a barrel. Chests already handed out keep their block. | | Duration | How long a chest sells for, written like `30m`, `6h`, `1d` or `1h30m`. A chest takes it when first placed, so placed and picked-up chests keep their time. | | Lore | The item lore. `%time%` shows the time left. Chests already handed out keep their lore. | | Enabled | Turns the type on or off. While off, it cannot be given or placed, and placed chests of it stop selling and keep their time. | | Delete | Deletes the type. Chests of it already handed out can no longer be placed, and placed ones keep selling but break like a normal chest. | ## Placed Chests Lists every sell chest placed on the server with its owner, type, time left, earnings and location. Left-click opens the chest's menu, shift + left-click teleports you in front of it and right-click removes it after a confirmation. Removing only stops it being a sell chest: the block and its items stay as a normal container. <figure><img src="../../.gitbook/assets/sell-chests/placed-chests.png" alt="" width="563"><figcaption><p>Sell Chests (Placed Chests)</p></figcaption></figure> The search keeps the chests whose owner or type contains the text, and `-` clears it. The sort shows the newest or the oldest first, or orders them by owner. A chest that is out of time, or whose type was deleted, is marked. Source: https://www.phoenixplugins.com/docs/phoenix-shop/add-ons/autosell/sell-chests --- # ⚙️ Settings > **Info:** These settings live in addons/AutoSell/config.yml. The **Autosell** button on the main editor menu opens two screens: **Autosell**, with the settings below, and **Sell Chests**, covered on the [Sell Chests](sell-chests.md) page. Without the add-on, that button shows that the add-on is required. ## Action Bar Shows the time left, the money earned this session and the current sell multiplier on the action bar of every player with autosell on. On by default. <figure><img src="../../.gitbook/assets/autosell/action-bar.png" alt="" width="563"><figcaption><p>Settings (Action Bar)</p></figcaption></figure> ## Sell Interval How many seconds pass between one sale and the next, for both a player's inventory and their sell chests. The default is 30, and the value goes from 1 to 3600. A lower value empties inventories sooner but runs more sales. <figure><img src="../../.gitbook/assets/autosell/sell-interval.png" alt="" width="563"><figcaption><p>Settings (Sell Interval)</p></figcaption></figure> ## Shops The shops autosell may sell into, in order. When an item sells in more than one of them, the shop higher in the list gets it. A shop that is turned off, or that has a permission the player lacks, is skipped for that player. <figure><img src="../../.gitbook/assets/autosell/shops.png" alt="" width="563"><figcaption><p>Settings (Shops)</p></figcaption></figure> Clicking it opens the list, where shops can be added to the bottom and two shops can swap places. Source: https://www.phoenixplugins.com/docs/phoenix-shop/add-ons/autosell/settings --- # 🆕 Custom Add-ons Custom add-ons are jars you write yourself that PhoenixShop loads from its addons folder, the same way it loads its own add-ons. Like every add-on, they load on Premium only. ## Maven Dependency ```xml <repositories> <repository> <id>phoenix</id> <url>https://repo.phoenixplugins.com/repository/maven-public/</url> </repository> </repositories> ``` ```xml <dependency> <groupId>com.phoenixplugins.sdk</groupId> <artifactId>api</artifactId> <version>1.0.0-SNAPSHOT</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.phoenixplugins.phoenixshop</groupId> <artifactId>api</artifactId> <version>1.0.0-SNAPSHOT</version> <scope>provided</scope> </dependency> ``` The first gives you the add-on base class, the second the shop API. ## Relocation The PhoenixShop jar relocates the SDK, so your add-on has to point at the same package or it will not find the base class. Add the shade plugin with this relocation, without bundling anything: ```xml <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <artifactSet> <includes> <include>${project.groupId}:${project.artifactId}</include> </includes> </artifactSet> <relocations> <relocation> <pattern>com.phoenixplugins.sdk</pattern> <shadedPattern>com.phoenixplugins.phoenixshop.sdk</shadedPattern> </relocation> </relocations> </configuration> </execution> </executions> </plugin> ``` ## addon.yml Create an `addon.yml` file in your project resources folder. ```yaml name: AddonName main: your.path.AddonExample version: 1.0.0 description: Small description (optional) color: "#3fb950" ``` | Field | Required | What it does | | ----- | -------- | ------------ | | `name` | Yes | The name of the add-on. Spaces are turned into underscores, and it names the add-on's data folder. | | `main` | Yes | The full path to your class that extends `Addon`. | | `version` | Yes | The version of your add-on. | | `description` | No | A short description. | | `color` | No | A hex color for the add-on's name in the console. | ## Main Class ```java package your.path; import com.phoenixplugins.phoenixshop.api.PhoenixShopAPI; import com.phoenixplugins.sdk.api.plugin.addons.Addon; public class AddonExample extends Addon { @Override public void init() { } @Override public void load() throws Exception { } @Override public void unload() { } @Override public void reload() throws Exception { unload(); load(); } @Override public String getRequiredPluginVersion() { return "1.0.0"; } } ``` | Method | When it runs | | ------ | ------------ | | `init` | Once, when the jar is read, before the plugin registers its hooks. Throwing here stops the add-on from loading. | | `load` | When the plugin starts, and again on every `/pshop reload`. Register commands, listeners and tasks here. | | `unload` | When the plugin stops, and before every reload. Undo everything `load` did. | | `reload` | Not called by the plugin, which runs `unload` and then `load` instead. Point it at the same two so the add-on behaves the same either way. | | `getRequiredPluginVersion` | The lowest PhoenixShop version the add-on runs on. On an older version it refuses to load. | `getDataFolder()` returns the add-on's own folder, and `getResource(name)` reads a file out of your jar, which is how an add-on writes its default config on first start. `PhoenixShopAPI.getShopsManager()` gives you the shops. ## Events The API module also carries Bukkit events, which any plugin can listen to, add-on or not, on Lite and Premium. | Event | Fired | Cancellable | | ----- | ----- | ----------- | | `ShopPreTransactionEvent` | Before a buy or sell in a shop menu. The price can be changed. | Yes | | `ShopTransactionEvent` | After a buy or sell in a shop menu went through. | No | | `ShopEditEvent` | After a change made in the editor. | No | | `PlayerShopCreateEvent` | When a chest shop is made. | No | | `PlayerShopRemoveEvent` | When a chest shop is removed. | No | | `PlayerShopPreTradeEvent` | Before a chest shop trade, once every check has passed and right before money or items move. | Yes | | `PlayerShopTradeEvent` | After a chest shop trade went through. | No | Cancelling `PlayerShopPreTradeEvent` stops the trade with nothing moved and nothing said to the player, so send your own message if they should know why. With [Click Confirm](../main-features/player-shops/settings.md#click-confirm) on, it also fires on the click that only asks the player to confirm, and cancelling it there skips the question. Both chest shop trade events fire on the server thread (the shop's region thread on Folia) and carry: | Getter | What it holds | | ------ | ------------- | | `getPlayer()` | The customer. | | `getOwner()`, `getOwnerName()` | The shop's owner. | | `getShopId()`, `getLocation()` | The shop's id and its sign. | | `getKind()` | `BUY` when the customer buys, `SELL` when they sell. | | `getItem()` | A copy of one of the traded item. | | `getAmount()` | How many items change hands. | | `getPrice()` | The total, in the currency or in payment items. | | `getCurrency()` | The currency id, or `null` on a shop paid in an item. | | `getPaymentItem()`, `paysInItems()` | A copy of the payment item on a shop paid in an item, otherwise `null`. | | `isAdmin()` | Whether it is an admin shop. | | `isRemote()` | Whether the customer traded from the shop list or find menu instead of at the sign. | | `getMode()`, `getBuyPrice()`, `getSellPrice()` | The shop's mode and its prices per Amount. | ## Install 1. Build the jar with your usual build command. 2. Move it into the PhoenixShop/addons folder. 3. Restart the server. 4. Check the console for `Enabling addon` followed by your add-on's name. Source: https://www.phoenixplugins.com/docs/phoenix-shop/add-ons/custom-addons --- # 🧑‍🌾 NPC Shops ## Information The NPC Shops add-on puts a shop on an NPC. Players right-click the NPC to open the shop, with the same permission and currency checks as opening it by command. The NPC can be any entity, and a villager opens a vanilla trade menu instead of the shop menu. <figure><img src="../../.gitbook/assets/npc-shops/npc-shops.png" alt="" width="563"><figcaption><p>Editor (NPC Shops)</p></figcaption></figure> ## Installation To install this add-on, drag and drop the jar file into the PhoenixShop/addons folder, then restart your server. Without the add-on, its editor screens can still be browsed from the main editor as a locked preview. Nothing in the preview can be changed. > **Info:** The add-on is free, but it requires the Premium edition. On Lite it does not load and the console says why. > **Warning:** Without any NPC plugin, NPCs are plain mobs. [Citizens](https://www.spigotmc.org/resources/citizens.13811/), [FancyNpcs](https://modrinth.com/plugin/fancynpcs), ModelEngine and BetterModel add their own [engines](#engines). An NPC set to an engine that is not installed is not spawned. ## Files | File | What it holds | | ---- | ------------- | | Plugin database | Every placed NPC. An old `npcs.yml` is moved there on first start and renamed `npcs.yml.migrated`. | | `PhoenixShop/translations/translations.<lang>.yml` | The add-on messages, under the `npc` section. | ## Commands | Command | Description | | ------- | ----------- | | `/shopnpc create <shop> [engine] [entity]` | Places an NPC for a shop on the block you are looking at. | | `/shopnpc remove` | Removes the NPC you are looking at. | | `/shopnpc list` | Lists every placed NPC with its shop, engine and position. An NPC whose shop no longer exists is marked as missing. | `/npcshop` works as an alias. The commands have to be run by a player. ## Permissions | Permission | What it allows | | ---------- | -------------- | | `phoenixshop.npcshops.manage` | Creating, removing and listing shop NPCs. | Using an NPC needs no permission of its own. A shop with a permission only opens for players who have it. ## Creating an NPC ### Placing an NPC **Editor > NPC Shops > New NPC** asks for a shop, then spawns the NPC where you stand, facing the way you face. It uses Citizens if it is installed, then FancyNpcs, and otherwise a plain villager. <figure><img src="../../.gitbook/assets/npc-shops/placing-an-npc.png" alt="" width="563"><figcaption><p>NPC Shops (New NPC)</p></figcaption></figure> The same can be done with a command. Look at the block the NPC should stand on, within 6 blocks, and run: ``` /shopnpc create <shop> [engine] [entity] ``` | Argument | What it does | | -------- | ------------ | | `shop` | The identifier of the shop the NPC opens. | | `engine` | `citizens`, `fancynpcs`, `entity`, `modelengine` or `bettermodel`. Citizens when left out. | | `entity` | Any living entity type, such as `villager` or `zombie`. A player when left out, or a villager on the `entity` engine. | The NPC spawns on top of that block, facing you, with the shop's display name above it. It is named after the shop with a number, such as `shop-1`. ### Engines | Engine | Requires | What it draws | | ------ | -------- | ------------- | | Entity | Nothing | A real mob with its AI turned off. Any living entity. | | Citizens | Citizens | Any living entity, or a player with a skin. | | FancyNpcs | FancyNpcs | Any living entity, or a player with a skin. | | Model Engine | ModelEngine 4.0.9+ | A model, with an idle and an interaction animation. | | BetterModel | BetterModel | A model, with an idle and an interaction animation. | <figure><img src="../../.gitbook/assets/npc-shops/engines.png" alt="" width="563"><figcaption><p>Edit NPC (Engine)</p></figcaption></figure> The add-on keeps its own record of every NPC and spawns them again on each start, so they are not saved in the Citizens or FancyNpcs files. Changes made to them through those plugins are lost on the next restart. An NPC that is moved or pushed is put back in place. ### Editing an NPC **Editor > NPC Shops** lists every NPC, and marks the ones whose shop is gone or whose engine is not installed. Every change respawns the NPC straight away. <figure><img src="../../.gitbook/assets/npc-shops/editing-an-npc.png" alt="" width="563"><figcaption><p>NPC Shops (rotating-1)</p></figcaption></figure> | Field | What it does | | ----- | ------------ | | Shop | The shop the NPC opens. | | Nameplate | The lines shown above the NPC. | | Engine | Swaps between the installed engines. Its settings are listed below. | | Scale | Makes the NPC bigger or smaller, 0.1 to 10. | | Glow | A coloured outline around the NPC. | | Position | Click a block: the NPC moves on top of it, facing you. | #### Engine settings | Setting | Engines | What it does | | ------- | ------- | ------------ | | Entity Type | Entity, Citizens, FancyNpcs | What the NPC is. A villager opens the [trade menu](#villager-trades). | | Skin | Citizens, FancyNpcs | The skin of a player NPC, looked up from a Mineskin link, a player name or a UUID. | | Look Close | All | Turns the NPC towards the nearest player within 8 blocks. | | Model | Model Engine, BetterModel | The model the NPC shows. Until one is picked, nothing spawns. | | Idle Animation | Model Engine, BetterModel | Loops while nobody is clicking. | | Interaction Animation | Model Engine, BetterModel | Plays once each time a player clicks the NPC. | ### Removing an NPC Delete it in the editor, or look at the block the NPC stands on and run `/shopnpc remove`. <figure><img src="../../.gitbook/assets/npc-shops/removing-an-npc.png" alt="" width="563"><figcaption><p>Edit NPC (Delete)</p></figcaption></figure> > **Info:** Deleting the shop an NPC points at does not remove the NPC. Clicking it tells the player the shop is gone, and `/shopnpc list` marks it as missing. ## Villager Trades An NPC with the `villager` entity type opens the vanilla trade menu instead of the shop menu. Every item of the shop that can be bought is listed as a trade, with the price that player pays, sales and discounts included, added to the bottom of its lore. Clicking the result buys one purchase of the item, charged in the shop's currency like any other purchase. The cost slot shows a paper named after the currency, since money cannot be a vanilla trade item. The player cannot move items into the menu. ### What is left out | Left out | Why | | -------- | --- | | Selling | A villager only sells to the player. Items can only be sold through the shop menu or the sell commands. | | Disabled categories and items | They are hidden from the trade list, as in the shop menu. | When the shop has nothing that can be bought, the menu does not open and the player is told. Source: https://www.phoenixplugins.com/docs/phoenix-shop/add-ons/npc-shops --- # ➕ Creating an NPC ## Placing an NPC **Editor > NPC Shops > New NPC** asks for a shop, then spawns the NPC where you stand, facing the way you face. It uses Citizens if it is installed, then FancyNpcs, and otherwise a plain villager. <figure><img src="../../.gitbook/assets/npc-shops/placing-an-npc.png" alt="" width="563"><figcaption><p>NPC Shops (New NPC)</p></figcaption></figure> The same can be done with a command. Look at the block the NPC should stand on, within 6 blocks, and run: ``` /shopnpc create <shop> [engine] [entity] ``` | Argument | What it does | | -------- | ------------ | | `shop` | The identifier of the shop the NPC opens. | | `engine` | `citizens`, `fancynpcs`, `entity`, `modelengine` or `bettermodel`. Citizens when left out. | | `entity` | Any living entity type, such as `villager` or `zombie`. A player when left out, or a villager on the `entity` engine. | The NPC spawns on top of that block, facing you, with the shop's display name above it. It is named after the shop with a number, such as `shop-1`. ## Engines | Engine | Requires | What it draws | | ------ | -------- | ------------- | | Entity | Nothing | A real mob with its AI turned off. Any living entity. | | Citizens | Citizens | Any living entity, or a player with a skin. | | FancyNpcs | FancyNpcs | Any living entity, or a player with a skin. | | Model Engine | ModelEngine 4.0.9+ | A model, with an idle and an interaction animation. | | BetterModel | BetterModel | A model, with an idle and an interaction animation. | <figure><img src="../../.gitbook/assets/npc-shops/engines.png" alt="" width="563"><figcaption><p>Edit NPC (Engine)</p></figcaption></figure> The add-on keeps its own record of every NPC and spawns them again on each start, so they are not saved in the Citizens or FancyNpcs files. Changes made to them through those plugins are lost on the next restart. An NPC that is moved or pushed is put back in place. ## Editing an NPC **Editor > NPC Shops** lists every NPC, and marks the ones whose shop is gone or whose engine is not installed. Every change respawns the NPC straight away. <figure><img src="../../.gitbook/assets/npc-shops/editing-an-npc.png" alt="" width="563"><figcaption><p>NPC Shops (rotating-1)</p></figcaption></figure> | Field | What it does | | ----- | ------------ | | Shop | The shop the NPC opens. | | Nameplate | The lines shown above the NPC. | | Engine | Swaps between the installed engines. Its settings are listed below. | | Scale | Makes the NPC bigger or smaller, 0.1 to 10. | | Glow | A coloured outline around the NPC. | | Position | Click a block: the NPC moves on top of it, facing you. | ### Engine settings | Setting | Engines | What it does | | ------- | ------- | ------------ | | Entity Type | Entity, Citizens, FancyNpcs | What the NPC is. A villager opens the [trade menu](villager-trades.md). | | Skin | Citizens, FancyNpcs | The skin of a player NPC, looked up from a Mineskin link, a player name or a UUID. | | Look Close | All | Turns the NPC towards the nearest player within 8 blocks. | | Model | Model Engine, BetterModel | The model the NPC shows. Until one is picked, nothing spawns. | | Idle Animation | Model Engine, BetterModel | Loops while nobody is clicking. | | Interaction Animation | Model Engine, BetterModel | Plays once each time a player clicks the NPC. | ## Removing an NPC Delete it in the editor, or look at the block the NPC stands on and run `/shopnpc remove`. <figure><img src="../../.gitbook/assets/npc-shops/removing-an-npc.png" alt="" width="563"><figcaption><p>Edit NPC (Delete)</p></figcaption></figure> > **Info:** Deleting the shop an NPC points at does not remove the NPC. Clicking it tells the player the shop is gone, and `/shopnpc list` marks it as missing. Source: https://www.phoenixplugins.com/docs/phoenix-shop/add-ons/npc-shops/creating-an-npc --- # 🔁 Villager Trades ## Villager Trades An NPC with the `villager` entity type opens the vanilla trade menu instead of the shop menu. Every item of the shop that can be bought is listed as a trade, with the price that player pays, sales and discounts included, added to the bottom of its lore. Clicking the result buys one purchase of the item, charged in the shop's currency like any other purchase. The cost slot shows a paper named after the currency, since money cannot be a vanilla trade item. The player cannot move items into the menu. ## What is left out | Left out | Why | | -------- | --- | | Selling | A villager only sells to the player. Items can only be sold through the shop menu or the sell commands. | | Disabled categories and items | They are hidden from the trade list, as in the shop menu. | When the shop has nothing that can be bought, the menu does not open and the player is told. Source: https://www.phoenixplugins.com/docs/phoenix-shop/add-ons/npc-shops/villager-trades --- # 🎑 Customize Menus > **Info:** Most of what is on this page can also be done in-game, without touching a file. See [In-Game Menu Editor](../features/in-game-menu-editor.md). ## Shop Menus Every shop has its own set of menus, in menus/shops/\<shop> inside the plugin folder. They are created the first time the shop loads, so two shops can look completely different. | File | Menu | | --- | --- | | main.yml | The categories of the shop, the first menu players see. | | categories/\<category>.yml | The items of one category. There is one file per category. | | buy.yml | Picking how many of an item to buy. | | sell.yml | Picking how many of an item to sell. | | bulk-buy.yml | Buying up to nine stacks in one click. | | bulk-sell.yml | Selling up to nine stacks in one click. | | sell-menu.yml | The menu of `/sell menu`, where items are dropped in to be sold. | | confirm.yml | The confirm screen shown before a purchase goes through. | | confirm-sell.yml | The confirm screen shown before Sell All goes through. | The Premium search and preview menus are shared by every shop, so they sit on their own at menus/search.yml and menus/preview.yml. The chest shop menus are shared the same way: menus/chest-shops/list.yml, menus/chest-shops/find.yml, menus/chest-shops/market.yml, menus/chest-shops/notifications.yml, menus/chest-shops/edit.yml, menus/chest-shops/history.yml, menus/chest-shops/trade.yml and menus/chest-shops/preview.yml, plus the Premium menus/chest-shops/limits.yml, menus/chest-shops/discount.yml, menus/chest-shops/staff.yml, menus/chest-shops/logs.yml and menus/chest-shops/remove-staff.yml. The chest shop menus are laid out in game from **Editor > Chest Shops > Menus**, and the Premium search and preview menus from **Editor > Menus**, the same way a shop's own menus are from its editor. Renaming a shop or a category renames its menu files, and deleting one deletes them. `/pshop reload` reads every menu file again. ## Menu Settings Every menu starts with the same settings block: the title, the number of rows, how often the menu refreshes and the actions run when it opens. ```yaml settings: type: SHOP title: '%shop%' rows: 4 refresh: enabled: false rate: 20 on-open-actions: [] ``` Leave `type` as it is, it tells the plugin which menu the file belongs to. The `rate` is in ticks, and a refreshing menu redraws its placeholders on that interval. The buy and sell menus refresh by default, so the balance they show stays current. Titles, names and lore accept color codes and MiniMessage tags. ## Slots Slots are counted from 0, starting at the top left of the menu, so the first row is 0 to 8 and the second is 9 to 17. A `slot` takes a single slot (`'4'`), a range (`'0-8'`), or a comma separated mix of both (`'0, 8, 36-44'`). ## Items The `items` section holds the decoration of the menu: glass borders, info items, anything that is not one of the plugin's own buttons. Add as many entries as you want, with any name. ```yaml items: info: slot: '4' material: NETHER_STAR amount: 1 custom-model-data: 0 glow: true hide-attributes: true display-name: '&6&lPhoenix Shop' lore: - '&7Pick a category below to start.' actions: - '[SOUND] BLOCK_AMETHYST_BLOCK_CHIME; 1; 1.4' hide-tooltip: false ``` Two more options are available on any entry and are not in the example above: * **item-model** - The item model identifier to use, on server versions that support it. * **tooltip-style** - The tooltip style of the item, such as `minecraft:blue` or one from a resource pack. > **Warning:** Placeholders are not filled in on entries under `items`. They only work in the title and in the plugin's own buttons described below. ## Buttons The plugin's own buttons, such as `close`, `back` or `confirm`, sit at the top level of the file rather than under `items`. They take `slot`, `material`, `amount`, `custom-model-data`, `display-name`, `lore` and `actions`. Their click does what the button is for, and its `actions` run on top of that. A button cannot be deleted from the file, but it can be moved anywhere or restyled. ## Menu Actions The `actions` of an item or button, and the `on-open-actions` of a menu, are written as `[TYPE] arguments`, with the arguments separated by `;`. | Action | Arguments | Edition | | --- | --- | --- | | `[SOUND]` | `sound; volume; pitch` | Lite | | `[TITLE]` | `title; subtitle; fade in; stay; fade out` | Lite | | `[ACTION_BAR]` | `message` | Lite | | `[CLOSE_INVENTORY]` | None | Lite | | `[MESSAGE]` | `message` | Premium | | `[COMMAND]` | `console` or `player`; `command` | Premium | | `[GAMEMODE]` | `gamemode` | Premium | | `[PARTICLE]` | `particle; count; spread x; spread y; spread z` | Premium | ## Main Menu main.yml shows one tile per enabled category, in the order the categories are sorted. They fill the category slots in that order. * `category-slots` - The slots the category tiles fill. * `category` - The look of a category tile. It has no slot of its own, and its material is replaced by the category's icon. * `previous-page` and `next-page` - Shown only when the shop has more categories than `category-slots` holds. * `close` - Closes the menu. > **Warning:** A shop with more categories than slots and no `next-page` button hides the extra categories. The console warns about it when it happens. | Placeholder | Where | Description | | --- | --- | --- | | %shop% | Everywhere | The display name of the shop, without colors. | | %shop\_colored% | Everywhere | The display name of the shop. | | %category% | `category` | The display name of the category, without colors. | | %category\_colored% | `category` | The display name of the category. | | %items% | `category` | How many items the category holds. | | %items\_word% | `category` | The word item or items, to match %items%. | | %category\_lore% | `category` | The category's [lore](../main-features/categories/edit-category.md#lore), or its icon item's own lore when none is set, one line each. A category without either drops the line. | | %sale% | `category` | The [category sale](../main-features/categories/edit-category.md#sale) badge while the sale runs, empty otherwise. ⭐ | | %sale_ends% | `category` | A line with the time left on the sale, counting down every second. Left out while no sale with an end is running. ⭐ | | %page% | Page buttons | The page the button leads to. | | %pages% | Page buttons | How many pages there are. | ## Category Menu Each categories/\<category>.yml lists the items of one category, page by page. * `pagination` - The `slots` the items fill, how they are aligned, the `fill-item` for empty item slots, and the `previous-item` and `next-item` page buttons. * `item-lore` - The lines added under every item's own lore, see below. * `back` - Goes back to the main menu. ```yaml item-lore: buy: - '&7Buy: &c%buy_price%%sale%' sell: - '&7Sell: &a%sell_price%' stock: - '&7Stock: &f%stock%' hint: '&6%click%: &e%action%.' ``` The `buy` lines are added only when the item and its category can be bought from, the `sell` lines only when both can be sold to, and the `stock` lines only when the item has limited stock. The `hint` is repeated once per click in the `click-mappings` of config.yml, skipping clicks that do nothing and actions the item does not allow. > **Warning:** Category files created before the Premium category sale keep their old `buy` line. Add `%sale%` to it by hand for the badges to show, and `%sale%` to the `category` name in main.yml. The countdown needs `%sale_ends%` added to the `category` lore the same way. | Placeholder | Where | Description | | --- | --- | --- | | %shop% | Everywhere | The display name of the shop, without colors. | | %shop\_colored% | Everywhere | The display name of the shop. | | %category% | Everywhere | The display name of the category, without colors. | | %category\_colored% | Everywhere | The display name of the category. | | %player% | Everywhere | The name of the player viewing the menu. | | %item% | `item-lore` | The name of the item, without colors. | | %item\_colored% | `item-lore` | The name of the item. | | %buy\_price% | `item-lore` | The buy price of the item. | | %sell\_price% | `item-lore` | The sell price of the item. | | %buy\_price\_base%, %sell\_price\_base% | `item-lore` | The price before any [price modifier](../add-ons/sell-boosters/README.md#price-modifiers). ⭐ | | %stock% | `item-lore` | The stock left of the item. | | %sale% | `item-lore` | The [category sale](../main-features/categories/edit-category.md#sale) badge while the sale runs, empty otherwise. ⭐ | | %click% | `hint` | The name of the click, such as Left-Click. | | %action% | `hint` | What that click does, such as buy. | | %page% | Page buttons | The page the button leads to. | ## Buy and Sell Menus buy.yml and sell.yml open when a player picks an item, and let them choose the amount before confirming. * `remove-64`, `remove-16`, `remove-1`, `add-1`, `add-16` and `add-64` - The step buttons. The `amount` of a step button is how far it moves the amount, so the names are only defaults: set `add-16` to an amount of 10 and it adds 10. * `preview` - Shows the item itself, with the button's lore added under the item's own. * `max` - Fill Inventory on the buy menu, Sell All on the sell menu. It buys as many as fit in the inventory and off-hand, or sells as many as the player carries, after the confirm screen. It needs `phoenixshop.buy.fill-inventory` or `phoenixshop.sell.all`, and without it the button shows `no-permission-material` and `no-permission-lore` instead. * `confirm` - Buys or sells the chosen amount, then goes back to the category. * `bulk` - Opens the bulk menu. * `back` - Goes back to the category. Steps are counted in lots, a lot being the item's own amount. On an item sold in 16s, a step of 1 adds 16 items. The amount never goes below one lot or above nine full stacks. | Placeholder | Description | | --- | --- | | %amount% | How many items are chosen. | | %lots% | How many lots are chosen. | | %price% | The price of the chosen amount. | | %unit\_price% | The price of one lot. | | %price\_base%, %unit\_price\_base% | The price before any [price modifier](../add-ons/sell-boosters/README.md#price-modifiers). ⭐ | | %max% | The most the player can buy or sell right now. | | %max\_price% | The price of %max%. | | %item% | The name of the item, without colors. | | %item\_colored% | The name of the item. | | %shop% | The display name of the shop, without colors. | | %shop\_colored% | The display name of the shop. | | %balance% | The player's balance in the item's currency. | | %stock% | The stock left of the item, or Unlimited. | ## Bulk Menus bulk-buy.yml and bulk-sell.yml offer whole stacks in one click. * `option-slots` - The first slot offers one stack, the second two stacks, and so on up to nine. Slots past the ninth are left empty. An item that does not stack, such as armour or tools, is bought one at a time, so bulk buying offers only the first option. * `option` - The look of each offer. Its material is replaced by the item, stacked to show how many stacks it is. * `back` - Goes back to the buy or sell menu. | Placeholder | Where | Description | | --- | --- | --- | | %item% | Everywhere | The name of the item, without colors. | | %item\_colored% | Everywhere | The name of the item. | | %shop% | Everywhere | The display name of the shop, without colors. | | %shop\_colored% | Everywhere | The display name of the shop. | | %stacks% | `option` | How many stacks the offer is. | | %amount% | `option` | How many items the offer is. | | %price% | `option` | The price of the offer. | | %price\_base% | `option` | The price before any [price modifier](../add-ons/sell-boosters/README.md#price-modifiers). ⭐ | ## Confirm Menu confirm.yml is the screen that asks before a purchase goes through: every Bulk Buy, every Fill Inventory, and any other purchase above [Confirm Above](settings-file.md). confirm-sell.yml asks the same way before Sell All, with the same buttons. Each shop has its own. * `disable` - Set to `true` to never ask in this shop, Bulk Buy included. * `decline` - Cancels and goes back to the menu the purchase came from. Closing the menu does the same. * `accept` - Buys it. * `item` - The item being bought. Its material is replaced by the item, stacked to the amount bought up to one stack. | Placeholder | Where | Description | | --- | --- | --- | | %amount% | Everywhere | How many items are being bought. | | %item% | Everywhere | The name of the item. | | %price% | Everywhere | The total price. | ## Sell Menu sell-menu.yml is the menu of `/sell menu`. Players drop items into it, and everything a shop buys is sold, while the rest is given back. It is read from the first shop in the sell shop list that the player can open. * `drop-slots` - The slots players can drop items into. Keep decoration and buttons out of them. * `confirm` - Sells the contents and closes the menu. | Placeholder | Where | Description | | --- | --- | --- | | %shop% | Everywhere | The display name of the shop, without colors. | | %shop\_colored% | Everywhere | The display name of the shop. | | %total% | `confirm` | What the dropped items are worth. | | %close\_hint% | `confirm` | A line saying closing the menu also sells, shown only when it does. | ## Search Menu ⭐ > **Info:** The search menu is available in the Premium plan of Phoenix Shop. menus/search.yml is the menu of `/pshop search`. It is paginated like a category menu. * `terms` - Left-click types a search, right-click clears it. * `filter` - Click with an item on the cursor to search for that item, or with an empty cursor to clear it. See [Search by Item](../features/search.md#search-by-item). * `sort` - Changes the order of the results. * `close` - Closes the menu. * `result-lore` - The `buy`, `sell` and `footer` lines added under every result. | Placeholder | Where | Description | | --- | --- | --- | | %player% | Everywhere | The name of the player viewing the menu. | | %terms% | `terms`, `sort` | What is being searched for. | | %order% | `terms`, `sort` | The current order. | | %filter% | `filter` | The name of the item searched for, or none. | | %item% | `result-lore` | The name of the result. | | %shop% | `result-lore` | The shop the result is in. | | %category% | `result-lore` | The category the result is in. | | %buy\_price% | `result-lore` | The buy price of the result. | | %sell\_price% | `result-lore` | The sell price of the result. | | %buy\_price\_base%, %sell\_price\_base% | `result-lore` | The price before any [price modifier](../add-ons/sell-boosters/README.md#price-modifiers). | ## Preview Menu ⭐ > **Info:** The preview menu is available in the Premium plan of Phoenix Shop. menus/preview.yml opens with the `PREVIEW` [click action](main-configuration.md#click-mappings). Its list shows every purchase item, paginated like a category menu. * `info` - The shop item. When the item runs purchase commands, the `preview.commands` translation lines are added under it. * `back` - Goes back to the category. * `empty` - Shown when the item gives no items and only runs commands. * `item-lore` - The lines added under every purchase item. | Placeholder | Where | Description | | --- | --- | --- | | %player% | Everywhere | The name of the player viewing the menu. | | %item%, %item\_colored% | Everywhere | The name of the shop item, without and with colors. | | %shop%, %shop\_colored% | Everywhere | The display name of the shop, without and with colors. | | %price% | Everywhere | The price of one purchase for the player. | | %count% | Everywhere | How many items one purchase gives. | | %commands% | Everywhere | How many purchase commands the item runs. | | %amount% | `item-lore` | How many of that item one purchase gives. | ### Chest Shop Item Preview menus/chest-shops/preview.yml opens when a player clicks **\[Item Preview]** in a chest shop's info panel. It shows the shop's item with its full tooltip, framed with gray glass and titled **Item Preview**. * `item` - The chest shop's item. Its own name and lore are kept; a `display-name` replaces the name and `lore` lines are added under it. | Placeholder | Description | | --- | --- | | %player% | The name of the player viewing the menu. | | %item%, %item\_colored% | The name of the chest shop's item, without and with colors. | | %owner% | The owner of the chest shop. | ### Chest Shop Trade menus/chest-shops/trade.yml opens when a player asks for an amount on a Buy & Sell chest shop, or trades with any shop through [Remote Trading](../main-features/player-shops/settings.md#remote-trading). Clicking Buy or Sell asks how many. * `close` - Closes the menu. * `item` - The chest shop's item. Its own name and lore are kept; a `display-name` replaces the name and `lore` lines are added under it. * `buy`, `sell` - Ask how many to buy or sell. * `buy-unavailable`, `sell-unavailable` - Shown in their place when the shop does not sell or buy, or has no price set for that side. * `items` - The black glass bar on the bottom row. Remove it for a menu without the bar. | Placeholder | Where | Description | | --- | --- | --- | | %player% | Everywhere | The name of the player viewing the menu. | | %item%, %item\_colored% | Everywhere | The name of the chest shop's item, without and with colors. | | %owner% | Everywhere | The owner of the chest shop. | | %amount% | Everywhere | How many items one trade moves. | | %price% | `buy`, `sell` | The shop's buy or sell price for that amount. | ### Remove Staff menus/chest-shops/remove-staff.yml opens when a chest shop owner clicks a player in their shop's [Staff](../main-features/player-shops/edit-player-shop.md#staff) menu. Closing it keeps the player as staff. Set `disable` to `true` to remove staff on the click, without asking. * `decline` - Keeps the player as staff. * `accept` - Removes the player from the staff. * `item` - The player's head. | Placeholder | Description | | --- | --- | | %player% | The staff member being removed. | ### Your Shop menus/chest-shops/edit.yml is the menu a player sees when they open their own chest shop to [edit it](../main-features/player-shops/edit-player-shop.md). Admin signs opened with the edit command use it too. Each button keeps its own way of changing the value; the file sets its slot, material, name and lore. Set a button's `slot` to `-1` to hide it. * `close` - Closes the menu. * `item` - Where the owner drops the item the shop trades. * `amount`, `mode`, `buy-price`, `sell-price` - How many items one trade moves, whether players buy, sell or both, and the two prices. * `glow`, `display`, `hologram` - How the item is shown on the chest. Hidden when displays are turned off in the chest shop settings. * `teleport` - Whether players can teleport to the shop from the list and find menus. * `enabled` - Stops every trade without removing the shop. * `name` - The shop's name in the shop list. * `admin` - Turns the shop into an admin shop. Only shown to players with `phoenixshop.sign.admin`. * `history` - The shop's latest trades. * `currency`, `player-currency`, `payment`, `limit`, `discount`, `staff` - Premium The currency of admin and player shops, paying with an item, player limits, discounts and staff. * `currency-filler` - Premium Drawn in the `player-currency` slot when players can pick only one currency. | Placeholder | Where | Description | | --- | --- | --- | | %max% | `name` | The longest name allowed. | | %count% | `history`, `staff` | How many trades are kept, or how many staff the shop has. | | %buy%, %sell%, %window% | `limit` | The shop's buy limit, sell limit and time window. | | %status% | `discount` | Whether a discount is running and when it ends. | The screens behind the buttons have their own files. Each has a `back` button that returns to the screen it was opened from, and the `items` section draws the filler bar. Set a button's `slot` to `-1` to hide it. The lists use the `pagination` section for the entry slots and the page arrows. * menus/chest-shops/history.yml - `empty` when no trade is kept yet, `bought` and `sold` for each trade's entry. * menus/chest-shops/limits.yml Premium - `buy-limit`, `window` and `sell-limit`. * menus/chest-shops/discount.yml Premium - `percent`, `length`, and the start and stop button as `running` while a discount runs and `stopped` otherwise. * menus/chest-shops/staff.yml Premium - `entry` for each staff member, `add` for the add button at the end of the list and `logs` for the [Logs](../main-features/player-shops/edit-player-shop.md#logs). A `PLAYER_HEAD` entry shows the member's own head. * menus/chest-shops/logs.yml Premium - `empty` when nothing is logged yet, `added` and `removed` for each entry. An entry shows the logged item; its material is only used when that item is unknown. | Placeholder | Where | Description | | --- | --- | --- | | %max% | `percent` | The highest discount allowed. | | %status% | `running`, `stopped` | Whether a discount is running and when it ends. | | %count% | `logs` | How many log entries are kept. | | %player% | `entry`, `bought`, `sold`, `added`, `removed` | The staff member or the trading player. | | %amount%, %item%, %time% | `bought`, `sold`, `added`, `removed` | How many items, which item and when. | | %price% | `bought`, `sold` | What the trade paid. | | %page% | `pagination` arrows | The page the arrow leads to. | ### Chest Shop Notifications menus/chest-shops/notifications.yml opens with [/chestshop notifications](../main-features/player-shops/trading.md#owner-notices). * `close` - Closes the menu. * `buy`, `sell`, `teleport`, `out-of-stock`, `chest-full` - Turn each kind of notice on or off for the player. * `choice`, `choice-selected`, `enabled`, `disabled` - How the On and Off choices are listed where a button's lore has a `%choices%` line. ### Chest Shop List and Find menus/chest-shops/list.yml is the menu of [/chestshop list](../main-features/player-shops/README.md#shop-list) and menus/chest-shops/find.yml the one of [/chestshop find](../main-features/player-shops/README.md#find-a-shop). Both files have the same options, so the two menus can look alike or different. The `pagination` section places the shops and the page arrows. <figure><img src="../.gitbook/assets/chest-shop-list/chest-shop-list.png" alt="" width="563"><figcaption><p>Chest Shops (Entry)</p></figcaption></figure> <figure><img src="../.gitbook/assets/chest-shop-list/filter.png" alt="" width="563"><figcaption><p>Chest Shops (Filter)</p></figcaption></figure> * `close` - Closes the menu. * `filter` - Switches between all shops, the ones selling and the ones buying. * `order` - Switches between the default order and price low to high or high to low. * `choice`, `choice-selected` - How each choice is listed on those two buttons, where their lore has a `%choices%` line. The current one uses `choice-selected`. * `empty` - Shown in place of the shops when none match the filter. * `entry.name`, `entry.named` - The name of a shop's entry, the second one for a shop with a name. * `entry.lore` - The lines under the item's own enchantments and lore. * `entry.stock`, `entry.room` - Added under them: how many items a selling shop holds (`%stock%`) and how many more a buying shop has room for (`%room%`). * `entry.unknown`, `entry.unlimited` - Shown in place of the number when it is not known yet, and on admin shops. * `entry.teleport-lore`, `entry.trade-lore` - Added only for a player who can teleport to shops or trade with them from afar. * `prices.buy`, `prices.sell`, `prices.both` - What `%prices%` shows for a Buy, Sell or Buy & Sell shop. The names of the filter and order choices are in the translation file. | Placeholder | Where | Description | | --- | --- | --- | | %player% | Everywhere | The name of the player viewing the menu. | | %item% | Title of `chest-shops/find.yml` | What was searched for. | | %item%, %name%, %owner%, %amount%, %prices% | Entries | The shop's item, its name, its owner, how many trade per click and its prices. | | %price% | `prices.buy`, `prices.sell` | The price of the side shown. | | %buy%, %sell% | `prices.both` | The two prices of a Buy & Sell shop. | | %currency% | `stats` | The currency the overview is counted in. | | %sellers%, %lowest-buy%, %average-buy% | `stats` | How many shops sell the item, and the lowest and average price for one. | | %buyers%, %highest-sell%, %average-sell% | `stats` | How many shops buy the item, and the best and average offer for one. | | %trades%, %average-traded% | `stats` | Trades in the last 30 days and their average price for one. | * `stats` - The [Price Overview](../main-features/player-shops/README.md#find-a-shop), only drawn in the find menu. * `stats-none` - Shown in place of a price no shop has. ### Chest Shop Market menus/chest-shops/market.yml is the menu of [/chestshop market](../main-features/player-shops/README.md#market). The `pagination` section places the items and the page arrows. * `close` - Closes the menu. * `order` - Switches between most shops, name and cheapest first. * `choice`, `choice-selected` - How each order is listed where the button's lore has a `%choices%` line. * `empty` - Shown when no chest shop trades an item. * `entry.name`, `entry.lore` - The name and lines of an item's entry. * `entry.seller`, `entry.no-seller` - What `%seller%` shows, with or without a shop selling the item. * `entry.buyer`, `entry.no-buyer` - What `%buyer%` shows, with or without a shop buying it. | Placeholder | Where | Description | | --- | --- | --- | | %player% | Everywhere | The name of the player viewing the menu. | | %item%, %sellers%, %buyers% | Entries | The item, and how many shops sell and buy it. | | %seller%, %buyer% | `entry.lore` | The cheapest seller and the best buyer lines. | | %price%, %owner% | `entry.seller`, `entry.buyer` | The price for one item and the shop's owner. | Source: https://www.phoenixplugins.com/docs/phoenix-shop/configurations/customize-menus --- # 🗂️ File Structure ## Overview Everything the plugin writes lives in plugins/PhoenixShop. ``` plugins/PhoenixShop/ ├── shops/ │ ├── shop.yml │ └── shop/ │ ├── blocks.yml │ └── valuables.yml ├── menus/ ├── translations/ ├── addons/ ├── exports/ ├── backups/ ├── layout-sessions/ ├── data/ │ └── database.db ├── config.yml ├── settings.yml ├── chest-shops.yml ├── auction-house.yml ├── discord.yml └── pricing.yml ``` ## Folders | Folder | Contents | | ------------------- | -------------------------------------------------------------------------------------------------- | | **shops** | One file per shop, plus a folder of the same name holding one file per category. See [Shop Configuration File](shop-configuration-file.md). | | **menus** | The menu layouts: one folder per shop under `shops`, the Auction House menus under `auction-house`, and the shared menus. See [Customize Menus](customize-menus.md). | | **translations** | The language file. See [Languages & Translations](languages.md). | | **addons** | Add-on jars, and a folder per add-on with its own settings. Drop a new add-on here and restart. | | **admin\_signs** | Sign shops from an older version. They are moved into the database on first start and the folder is renamed **admin\_signs.migrated**. | | **exports** ⭐ | Purchase history exported with `/pshop history export`. | | **backups** | A copy of a file taken before the plugin rewrote it. See the note below. | | **layout-sessions** | The inventory of an admin editing a menu layout, kept so it is given back after a crash. Never edit this by hand. | | **data** | The SQLite database, `database.db`, when SQLite is used. It holds every player shop, sign shop and shop stand. While the server runs, SQLite keeps two more files next to it, `database.db-wal` and `database.db-shm`, with the latest changes. Older versions kept it in the main folder; it is moved here on the first start. | ## Files | File | Contents | | --------------------- | --------------------------------------------------------------------------------------- | | **config.yml** | The main settings and the database connection. See [Main Configuration](main-configuration.md). | | **settings.yml** | Transactions, menus, locked categories, the IP limit and sign shops. See [Settings File](settings-file.md). | | **chest-shops.yml** | The chest shop settings. See [Player Shops Settings](../main-features/player-shops/settings.md). | | **auction-house.yml** | The Auction House settings. See [Auction House](../features/auction-house.md). | | **discord.yml** ⭐ | The Discord webhooks. | | **pricing.yml** | The last 10 price generator runs, so they can be undone. | > **Info:** When a file is missing settings, the plugin rewrites it and keeps what you had in backups, under the same path. A shop or category file that is not valid YAML is never rewritten: it is skipped, reported in the console, and left exactly as it is until you fix it and run /pshop reload. ## What Lives in the Database Transactions, remaining stock, per-player purchase limits and restock timers are **not** in these files, and neither are restock alert choices ⭐. They are stored in the database configured in `config.yml`, which is SQLite (`data/database.db`) by default and MySQL or MariaDB ⭐ if you set it up. ## Moving to Another Server To carry your setup across: * **Configuration** - copy `shops/`, `menus/`, `translations/`, `config.yml`, `settings.yml` and the add-on folders inside `addons/`. * **Sign and chest shops** - sign shops, shop stands and player shops are in the database, so they come across with it, but only if the worlds come across too. * **Transactions and stock** - point the new server at the same MySQL database, or stop the server and copy the `data` folder across. ## What to Back Up The whole plugins/PhoenixShop folder, plus your database if you use MySQL or MariaDB. The editor writes changes to the files as you make them, so those can be backed up while the server runs. For the SQLite database, stop the server first, or copy all three files in `data` together: `database.db` alone can miss the latest changes. ## Reporting a Problem Turning on `debug` in `config.yml` adds verbose console logging, which is useful to attach when you report an issue to us. Source: https://www.phoenixplugins.com/docs/phoenix-shop/configurations/file-structure --- # 🛠️ GeyserMC (Bedrock) > **Info:** These options are in the bedrock section of config.yml. They have no editor option. ## Overview Bedrock players joining through Geyser can use the shop as native Bedrock forms instead of chest menus: a list of buttons for the categories and the items, a slider to pick the amount, and a toggle list to sell from the inventory. Forms need Floodgate or Geyser to be installed on the same server as the plugin. Without either, everyone gets the chest menus. **Please note:** This guide will not cover the installation process of Geyser itself. Refer to the Geyser wiki for comprehensive installation instructions: [Geyser Wiki Setup](https://wiki.geysermc.org/geyser/setup/) ```yaml bedrock: forms: true input-modes: [] allow-opt-out: true resize-chest-menus: true after-transaction: CATEGORY confirm-above: 0 custom-amount: true show-balance: true sell-form: true icons: enabled: true fallback-url: "" head-url: "https://mc-heads.net/head/%texture%" ``` ## How the Forms Work | Menu | Bedrock form | | --- | --- | | Main menu | A button per enabled category, showing how many items it holds. | | Category menu | A button per item, showing its buy and sell price. An item that can be both bought and sold asks which one first. | | Buy and sell menus | A slider from one lot up to as many as fit in the inventory when buying, or as many as the player carries when selling, capped at nine stacks. Items that do not stack are bought one at a time. | | Bulk menus | Replaced by the slider form, which already covers up to nine stacks. | | Sell menu | A toggle per kind of item in the inventory that a shop buys, all on by default. | | Auction House | 20 listings per page, with buttons for Filters, Sell, My Listings, Collection, Watchlist and History. Filters is one form with the category, type, order and search. | | Auction listing | The item's price, bids, seller and time left, with a button for each action: buy, buy part, bid, custom bid, see contents, watch, cancel or remove. Every buy, bid, cancel and removal asks for confirmation first. | | Auction sell menu | One form with the amount, buy now or auction, price, duration and currency, plus the price guide when it is on. | | Auction collection | A button per waiting item or payment, plus Collect All. Each one can be collected or relisted. | Creating a bundle stays a chest menu on Bedrock, since the items are picked by moving them into it. Buttons use the display names of the shop, the categories and the items, with colors kept and hex colors removed, since forms cannot show them. The text around them, such as the balance line, the back button and the confirmation, comes from the bedrock section of the translations file. The actions of the category tile and the open and close actions of a category still run. Everything else about the chest menu layout does not apply to forms. If a form cannot be sent, the player gets the chest menu instead and the console says so. ## Forms Turns Bedrock forms on or off for the whole server. When off, Bedrock players get the chest menus like everyone else. ## Input Modes Limits forms to Bedrock players on certain devices, by their input mode: `TOUCH`, `CONTROLLER`, `KEYBOARD_MOUSE` or `VR`. Players on any other input get chest menus. Leave the list empty to give forms to every Bedrock player. ```yaml bedrock: input-modes: - TOUCH - CONTROLLER ``` ## Allow Opt Out Lets Bedrock players choose chest menus for themselves. The main shop form gets a button to switch to chest menus, and `/pshop forms` switches between the two. The choice is remembered per player. When this is off, every Bedrock player gets forms and the command is refused. ## Resize Chest Menus Bedrock only draws chest menus of 3 or 6 rows cleanly. With this on, a menu of 1 or 2 rows is opened with 3 rows and a menu of 4 or 5 rows with 6, for Bedrock players who get chest menus. Java players always see the rows the menu is set to. ## After Transaction Where a Bedrock player goes after a purchase or sale on the slider form goes through. | Value | Goes to | | --- | --- | | `CATEGORY` | Back to the category, to pick another item. | | `TRANSACTION` | The same slider form again, to buy or sell more of the item. | | `CLOSE` | Nowhere, the form closes. | A refused transaction always opens the slider form again. ## Confirm Above A total price from which a purchase or sale asks for confirmation before going through. Anything cheaper goes through straight away. Set it to 0 to never ask. Also set from Editor > Settings > Bedrock Confirm Above. ## Custom Amount Adds a text field under the slider where the player can type an exact amount. A typed amount wins over the slider, and shorthands such as `1.5k` are accepted. An amount that is not a number reopens the form with a message. ## Show Balance Shows the player's balance at the top of the shop, category and slider forms, in the currency that applies there. ## Sell Form Replaces the `/sell menu` chest, where items are dragged in, with a form listing every item in the inventory that a shop buys. The player turns off what they want to keep and submits. When off, Bedrock players get the chest version. ## Icons Adds an icon to form buttons. * **enabled** - Turns icons on or off. * **fallback-url** - An image URL for materials the built-in icon table does not know. `%material%` is replaced by the material name in lower case. Leave it empty for no icon. * **head-url** - An image URL for player heads. `%texture%` is replaced by the head's texture id, or the owner's name when it has no texture. Leave it empty for no head icons. Vanilla items use the Bedrock texture of the same item, which every Bedrock client already has. Custom items, meaning items from another plugin, items with custom model data and items with an item model, get no icon, since their texture only exists in a resource pack. Player heads always use the head URL. Source: https://www.phoenixplugins.com/docs/phoenix-shop/configurations/geysermc-bedrock --- # 🌍 Languages & Translations ## Translations Every line the plugin can print lives in one file: ``` PhoenixShop/translations/translations.en.yml ``` Messages to players, command replies, the menus and the whole in-game editor are all in there. Edit it and run /pshop reload to apply the new text. Player shop signs show it after their next trade or restock. ## Language The plugin ships with English only, and there is no language option. To run it in another language, translate the file yourself. ## Translating the plugin Everything sits under `en` at the top of the file, and the value is either a line or a list of lines. Translate the right-hand side and leave the keys and the placeholders alone. ```yaml en: cannot-buy: "%prefix%&f%item% &cis not for sale here." shop-currency-missing: - "%prefix%&cThe shop &f%shop%&c cannot open: it is priced in &f%currency%&c." - "&7Install &f%plugin%&7 and run &f/pshop reload&7." ``` Anything wrapped in `%` is filled in by the plugin, so `%item%`, `%shop%` and `%price%` have to survive the translation to keep working. Colour codes can be moved around freely. ## The Prefix `%prefix%` at the start of a message is replaced with the `plugin-prefix` line, so the prefix of every message is changed in one place. ```yaml en: plugin-prefix: "ẬA9&lPhoenixShop &8» &7" ``` Remove `%prefix%` from a message to send that one without it. Set `plugin-prefix` to `''` to drop it everywhere. ## Updating the plugin New keys reach your file on their own. On start, any key the plugin ships that your file does not have is written into it with its English default, and the console prints `Missing value for key "..."` for each one. Keys you already have are never touched. A message whose default wording changed in an update keeps your old text, so compare with the file inside the new jar if you want the new wording. > **Info:** Keep a copy of your translated file before updating the plugin. New keys are added to it automatically, but it is the file your work lives in. ## The editor is translated too Everything under the `editor` keys is the text of the in-game editor, the name and description of every option. Translating those is optional, and skipping them leaves the editor in English while your players see your language. ## Rich Text (MiniMessage) Phoenix Shop understands [MiniMessage](https://docs.advntr.dev/minimessage/format.html) tags, like `<red>`, `<bold>` or `<gradient:#ff5555:#5555ff>`, on top of the classic `&` colour codes and `&#RRGGBB` hex colours. ### Format | Example | Result | | ----------------------------------------------------- | -------------------------------------- | | `&aHello` | Green text | | `&#ff8800Hello` | Any hex colour | | `<#ff8800>Hello` | Any hex colour, MiniMessage style | | `<gradient:#FF9A00:#E52D27>Phoenix Shop</gradient>` | Text fading from one colour to another | | `<bold><underlined>Warning` | Bold and underlined | | `<rainbow>Rare!</rainbow>` | Each letter a different colour | A closing tag is optional. `<red>Hello` colours the rest of the line, while `<red>Hello</red> there` colours only the first word. ### Where it works | Place | Notes | | ---------------------------------- | --------------------------------------------------- | | Shop and category names | The shop's display name and the category's title | | Item names and lore | Including purchase items | | Menu titles, item names and lore | Everything in the `menus` files | | Sign shops | The lines of chest shops and server-owned sign shops | | Message, title and action bar actions ⭐ | Actions run by requirements and categories | In these places `&` codes and tags can be mixed freely in the same line. ### Where it doesn't work Messages in the translation file, such as the bought and sold messages, only understand `&` codes and `&#RRGGBB` hex. A tag in one of them is shown to the player exactly as you typed it. Hover text and clickable links are not supported anywhere, since every text is turned into plain coloured text before it is shown. ### Usage notes * A tag the server does not recognise is left in the text as written rather than being dropped, which is what keeps resource pack glyph tags working. * Bedrock forms drop hex colours and gradients, and keep the standard `&` colours. > **Warning:** MiniMessage needs [Paper](https://papermc.io/) or a fork of it. On plain Spigot the tags are printed exactly as you typed them, so stay on `&` codes there. Source: https://www.phoenixplugins.com/docs/phoenix-shop/configurations/languages --- # 📁 Main Configuration > **Info:** Changes made by hand in config.yml apply with /pshop reload, except the Internal Pool Size and the Database settings, which need a restart. The console names any of those that changed. Options changed from the editor are saved straight away. ## General Configuration * **Internal Pool Size** - The number of threads the plugin keeps for its own background work, such as database reads. The default of `10` suits almost every server. * **Debug** - Adds verbose logging to the console, useful when reporting an issue. * **Notify If New Version** - Whether the console and players with `phoenixshop.admin` are told when a newer build is out, and admins are offered the changelog after an update. * **Send Server Statistics** - Lite only. Sends the server version, software, join domains and player count to our servers so the server shows on the website. See [Server Statistics](../plugin-information/licensing.md#server-statistics). * **Error Reports** - Sends errors thrown by the plugin's own code to us so we can fix them without asking for your logs: the error and its stack trace, the plugin, server and Java versions, and your plugin list. Player names, UUIDs, IP addresses and your server's folder path are removed first, and each kind of error is sent once with a count. On by default on Premium and off on Lite. ```yaml performance: internal-pool-size: 10 debug: false notify-if-new-version: true send-server-statistics: true error-reports: true ``` Update notices, and on Lite the Premium reminder admins see on join, can also be turned off from **Editor > Settings > General**. ## Database Transactions, stock counts and restock timers are stored in the database. The available types are sqlite, mysql and mariadb. ```yaml database: type: sqlite address: localhost name: phoenixshop_db port: 3306 username: phoenixuser password: phoenixpassword table-prefix: ps jdbc-url-options: createDatabaseIfNotExist=true&useSSL=false&characterEncoding=UTF-8 ``` `jdbc-url-options` is added to the MySQL or MariaDB connection URL. Change it when your database host needs other options, such as `allowPublicKeyRetrieval=true` for a MySQL 8 user that has no SSL. It takes effect after a restart. On MySQL and MariaDB the plugin creates its tables in the utf8mb4 character set, so names, lore and messages can hold emoji and any symbol. Tables made in another character set by an older version are converted once at startup, with one console line per table. If a table cannot be converted, a console warning names it. > **Warning:** ⭐ MySQL and MariaDB are Premium only. The Lite version uses SQLite whatever the type says, prints a warning in the console and leaves your settings in the file untouched. ### Moving from SQLite to MySQL ⭐ Premium only. Your old data stays in `plugins/PhoenixShop/data/database.db` when you switch. To bring it over: 1. Stop the server and set `type` to `mysql` or `mariadb`, with the connection details. 2. Start the server. PhoenixShop creates its empty tables in the new database. 3. Before anyone joins, run `/pshop database import sqlite` from the console. 4. Restart the server when it says it is done. The import only runs from the console while nobody is online, and nobody can join until the restart. It copies every PhoenixShop table that exists in both databases. If a table in the new database holds data already, it stops and lists those tables; add `confirm` to replace their contents with the SQLite data. Each table is copied in one go, so a table that fails is left as it was and you can run the command again. ## History How many days a transaction is kept in the database before it is deleted. `0` or less keeps every transaction forever. ```yaml history: keep-days: 7 ``` It can also be set from **Editor > Settings > General**. The history itself can be browsed with /pshop history, and exported with /pshop history export ⭐. ## Undo ⭐ Lets a player reverse their last transaction with /pshop undo, as long as it happened within the window. ```yaml undo: enabled: true window-seconds: 30 ``` ## Player Shops Chest shops that players build themselves with a sign. Their settings are in chest-shops.yml, not config.yml; the full list is on [Player Shops Settings](../main-features/player-shops/settings.md). | Option | Description | | ------------------ | ---------------------------------------------------------------------------------------------------- | | **enabled** | Turns chest shops on or off. While off, nobody can trade on one, the owner included, and none can be made. On Lite, admin shops ignore it. | | **creation-cost** | Charged once, in money (Vault), when the shop is made. `0` makes it free. | | **max-per-player** | How many chest shops one player can own. `0` removes the limit. | | **sign-material** | The sign placed on new shops, such as `SPRUCE_SIGN` or `SPRUCE_WALL_SIGN`. Any other material falls back to oak, and hanging signs are not supported. | | **short-prices** | Shows prices of 1,000 and up as `$250k`, `$1.5m` and so on in chat, menus and holograms. Signs always do. | | **click-confirm** | `enabled` makes the first sign click on a shop ask to click again; `minutes` is how long a confirmed shop trades without asking. | | **protected-names** | Names only real plugin items may carry; `*` matches anything. Renamed items with these names cannot be sold. | | **trade-click** ⭐ | `INSTANT` (default) trades the shop's fixed amount on every click, `PROMPT` asks the customer how many to trade. See [Trade Click](../main-features/player-shops/settings.md#trade-click). | | **teleport** ⭐ | Lets `/chestshop list` and `/chestshop find` teleport to a shop, for players with `phoenixshop.sign.teleport`. | | **remote-trading** ⭐ | Lets players with `phoenixshop.sign.remote` trade with a shop from `/chestshop list` and `/chestshop find` without walking to it. See [Remote Trading](../main-features/player-shops/settings.md#remote-trading). | ```yaml enabled: false creation-cost: 0 max-per-player: 0 sign-material: OAK_SIGN protected-names: [] short-prices: true click-confirm: enabled: true minutes: 5 trade-click: INSTANT teleport: true remote-trading: false ``` ## Commands Every command of the plugin except `/phoenixshop`, and of its add-ons: `chest-shop`, `sell`, `auction-house`, and `autosell`, `rotating-shop`, `sell-boosters` and `sell-wands` while that add-on is installed. Each one can be renamed, given other names and have its subcommands renamed, for example into your own language. They can also be changed in game from **Editor > Settings > Commands**, where changes apply right away. | Option | Description | | --- | --- | | **enabled** | Registers the command. Turning it off removes it. | | **alternative** | The command's name. | | **aliases** | Other names for the same command. | | **subcommands** | A new name per subcommand, such as `collect: recoger`. Messages that mention the subcommand use the new name, and the old name keeps working. Permissions do not change. | ```yaml commands: chest-shop: enabled: true alternative: chestshop aliases: - cs subcommands: {} auction-house: enabled: true alternative: ah aliases: - auction - auctionhouse subcommands: collect: recoger ``` Changes made in the file apply with /pshop reload. If another plugin already owns one of these names, PhoenixShop takes it over, and that plugin's command stays reachable with its prefix, such as `/worldedit:cs`. ## Settings File Transactions, menus, locked categories, the IP limit and sign shops are set in settings.yml. See [Settings File](settings-file.md). ## Click Mappings What each click on an item in a category does. The key is the click and the value is the action. ```yaml click-mappings: LEFT: BUY RIGHT: SELL SHIFT_LEFT: BUY SHIFT_RIGHT: SELL_ALL ``` | Action | Description | | ---------- | --------------------------------------------------------------- | | BUY | Opens the buy menu, where the player picks the amount. | | SELL | Opens the sell menu, where the player picks the amount. | | BUY\_ONE | Buys one purchase straight away. | | SELL\_ONE | Sells one purchase straight away. | | BUY\_STACK | Buys as many purchases as fit in one stack, straight away. | | SELL\_ALL | Sells every matching item the player carries, straight away. Needs `phoenixshop.sell.all`. | | PREVIEW ⭐ | Opens the [preview](../features/preview.md#preview) of what one purchase gives. Needs `phoenixshop.preview`. | | NONE | Does nothing. | A click left out of the list does nothing. The keys are Bukkit click types, so `DROP` (Q) and `CONTROL_DROP` (Ctrl + Q) can be mapped too. `MIDDLE` is left out, as the game only sends a middle-click in creative mode. An action name that does not exist is reported in the console and skipped. `PREVIEW` is not mapped by default. Swap it in for a click to use it, such as `SHIFT_RIGHT: PREVIEW`. On Lite it does nothing and is left out of the item's hint lines. ## Search ⭐ Shops left out of [/pshop search](../features/search.md#search), by identifier. ```yaml search: excluded-shops: [] ``` ## Restock and Sale Alerts ⭐ How players are told that an item is back or on sale, see [Restock & Sale Alerts](../features/restock-and-sale-alerts.md). | Option | Description | | --- | --- | | **enabled** | Turns restock and sale alerts on or off for everyone. | | **chat** | Sends the alert in chat. | | **title** | Shows the alert as a title and subtitle. | | **sound** | Played with the alert, as `SOUND, volume, pitch`. Empty plays no sound. | ```yaml alerts: enabled: true chat: true title: true sound: 'BLOCK_NOTE_BLOCK_PLING, 1, 1' ``` ## Sell The settings of /sell and the sell menu. <figure><img src="../.gitbook/assets/sell-command/sell-command.png" alt="" width="563"><figcaption><p>Settings (Sell Command)</p></figcaption></figure> | Option | Description | | -------------------- | --------------------------------------------------------------------------------------------- | | **shops-whitelisted** | The shops `/sell` sells to. A shop the player cannot open is skipped. | | **sell-on-close** | Closing the sell menu sells what is in it. When off, the items are given back unless the player confirms. | | **shulker-boxes** | `/sell inventory`, `/sell hand` and the sell menu also sell what is inside shulker boxes. See [Shulker Boxes](../main-features/selling/README.md#shulker-boxes). | | **sounds.sold** | Played after a sale, as `SOUND, volume, pitch`. | | **sounds.deny** | Played when nothing could be sold. | | **sold.message** | Sends the sold message in chat. | | **sold.title** | Shows the sold title, with its fade-in, stay and fade-out in ticks. | ```yaml sell: shops-whitelisted: - shop sell-on-close: true shulker-boxes: true sounds: sold: 'ENTITY_PLAYER_LEVELUP, 1, 1' deny: 'BLOCK_NOTE_BLOCK_BASS, 1, 1' sold: message: true title: enabled: true fade-in: 5 stay: 40 fade-out: 10 ``` Most of these can also be changed from **Editor > Settings > Sell**. ## Bedrock How Bedrock players using Geyser or Floodgate see the shops. Every option is explained on [GeyserMC / Bedrock](geysermc-bedrock.md). ```yaml bedrock: forms: true input-modes: [] allow-opt-out: true resize-chest-menus: true after-transaction: CATEGORY confirm-above: 0 custom-amount: true show-balance: true sell-form: true icons: enabled: true fallback-url: "" head-url: "https://mc-heads.net/head/%texture%" ``` ## Currency Symbols The symbol shown next to each price in the editor's item list. The key is the currency's identifier, and a PlaceholderAPI placeholder can be used as the symbol. A currency with no entry shows its own name. ```yaml currency-symbols: money: "$" points: "Points" experience: "XP" levels: "Levels" votepoints: "Vote Points" ``` > **Info:** There is no list of currencies in this file. The currency of a shop, category or item is picked in the editor and saved in that shop's own file. See [Shop Configuration File](shop-configuration-file.md#currency). ## Messages & Translations Every message the plugin sends lives in the translation file rather than in config.yml. Editing the wording and silencing a message are on [Languages & Translations](languages.md). ## MiniMessage On top of the usual `&` colour codes, shop names, item names, lore and menus accept MiniMessage tags for gradients and hex colours. See [Rich Text (MiniMessage)](languages.md#rich-text-minimessage). Source: https://www.phoenixplugins.com/docs/phoenix-shop/configurations/main-configuration --- # 🎨 Rich Text (MiniMessage) ## Information Phoenix Shop understands [MiniMessage](https://docs.advntr.dev/minimessage/format.html) tags, like `<red>`, `<bold>` or `<gradient:#ff5555:#5555ff>`, on top of the classic `&` colour codes and `&#RRGGBB` hex colours. ## Format | Example | Result | | ----------------------------------------------------- | -------------------------------------- | | `&aHello` | Green text | | `&#ff8800Hello` | Any hex colour | | `<#ff8800>Hello` | Any hex colour, MiniMessage style | | `<gradient:#FF9A00:#E52D27>Phoenix Shop</gradient>` | Text fading from one colour to another | | `<bold><underlined>Warning` | Bold and underlined | | `<rainbow>Rare!</rainbow>` | Each letter a different colour | A closing tag is optional. `<red>Hello` colours the rest of the line, while `<red>Hello</red> there` colours only the first word. ## Where it works | Place | Notes | | ---------------------------------- | --------------------------------------------------- | | Shop and category names | The shop's display name and the category's title | | Item names and lore | Including purchase items | | Menu titles, item names and lore | Everything in the `menus` files | | Sign shops | The lines of chest shops and server-owned sign shops | | Message, title and action bar actions ⭐ | Actions run by requirements and categories | In these places `&` codes and tags can be mixed freely in the same line. ## Where it doesn't work Messages in the translation file, such as the bought and sold messages, only understand `&` codes and `&#RRGGBB` hex. A tag in one of them is shown to the player exactly as you typed it. Hover text and clickable links are not supported anywhere, since every text is turned into plain coloured text before it is shown. ## Usage notes * A tag the server does not recognise is left in the text as written rather than being dropped, which is what keeps resource pack glyph tags working. * Bedrock forms drop hex colours and gradients, and keep the standard `&` colours. > **Warning:** MiniMessage needs [Paper](https://papermc.io/) or a fork of it. On plain Spigot the tags are printed exactly as you typed them, so stay on `&` codes there. Source: https://www.phoenixplugins.com/docs/phoenix-shop/configurations/rich-text --- # ⚙️ Settings File > **Info:** These options are in settings.yml, next to config.yml. Changes made by hand apply with /pshop reload. Options changed from the editor are saved straight away. ## Sign Shops Server-owned sign shops placed by the staff. The [sign text](../main-features/admin-signs/README.md#sign-text) is in the same section. The sounds, the click cooldown and the sign text can also be changed from **Editor > Sign Shops > Settings**. <figure><img src="../.gitbook/assets/sign-shop-settings/sign-shop-settings.png" alt="" width="563"><figcaption><p>Settings (Sign Shops)</p></figcaption></figure> | Option | Description | | ------------------------- | ----------------------------------------------------------------------------------- | | **click-cooldown-millis** | How long, in milliseconds, a player waits between two clicks on a sign. `0` turns it off. | | **sounds.enabled** | Plays the two sounds below. `false` keeps sign shops silent. | | **sounds.success** | Played when a sign transaction goes through. Uses the namespaced sound key. | | **sounds.failure** | Played when a sign transaction is refused. | ```yaml sign-shops: click-cooldown-millis: 250 sounds: enabled: true success: minecraft:entity.experience_orb.pickup failure: minecraft:block.note_block.bass ``` ## Transactions | Option | Description | | --- | --- | | **feedback** | Where the bought and sold message is shown: CHAT, ACTION\_BAR or NONE. The action bar shows the first line of the message, without the prefix. Error messages such as not enough money always go to chat. Also in **Editor > Settings > General**. | | **confirm-above** | A purchase from a chest menu whose total is above this price opens a confirm screen first. `0` turns it off. A Bulk Buy always asks first, whatever this is set to. | <figure><img src="../.gitbook/assets/editor-settings/confirm-above.png" alt="" width="563"><figcaption><p>Settings (Confirm Above)</p></figcaption></figure> ```yaml transactions: feedback: CHAT confirm-above: 0 ``` The confirm screen covers the buy menu, the bulk buy menu and instant buy clicks in a category, and its total includes any [price modifier](../add-ons/sell-boosters/README.md#price-modifiers). The green panes buy, while the red panes or Esc go back to the menu it came from. Each shop sets its look in [confirm.yml](customize-menus.md#confirm-menu), where it can also be turned off. Sales never ask. Bedrock forms use `bedrock.confirm-above` instead, set from Editor > Settings > Bedrock Confirm Above. Confirm Above is also set from Editor > Settings. ## Menus With **escape-back** on, pressing Esc in a category, buy, sell or bulk menu opens the menu before it instead of closing. Only a close by the player counts, so a menu closed by the plugin or another plugin still closes. Off by default, and also set from Editor > Settings. <figure><img src="../.gitbook/assets/editor-settings/escape-goes-back.png" alt="" width="563"><figcaption><p>Settings (Escape Goes Back)</p></figcaption></figure> ```yaml menus: escape-back: false ``` ## Locked Categories ⭐ How the main menu shows a category whose [conditions](../main-features/categories/edit-category.md#conditions) a player fails. LOCKED shows it with a locked line under its lore, and clicking it runs the deny actions of the failed checks or sends a message. HIDE leaves it out of the menu, and the categories after it move up. It can also be set from **Editor > Settings > General**. ```yaml categories: locked-display: LOCKED ``` ## IP Limit ⭐ How many accounts on one connection can buy an item that has a [player limit](../main-features/items/stock-and-restock.md#player-limit) between two restocks. The next account on that connection is refused until the item restocks, while each allowed account keeps its own player limit. It is on by default, and is also set from Editor > Settings. <figure><img src="../.gitbook/assets/editor-settings/ip-limit.png" alt="" width="563"><figcaption><p>Settings (IP Limit)</p></figcaption></figure> ```yaml ip-limit: enabled: true accounts: 1 ``` Items without a player limit are not affected. With the Network add-on's shared stock, the IP limit is not applied. Source: https://www.phoenixplugins.com/docs/phoenix-shop/configurations/settings-file --- # 📂 Shop Configuration File > **Info:** Everything on this page can be set from the in-game editor. The files are only worth opening for a bulk change, or to copy a shop between servers. Run /pshop reload after saving them. ## Where the Files Are Each shop is one file, and each of its categories is one file in a folder named after the shop. The file name is the identifier, so renaming a shop by hand means renaming both its file and its folder. ``` shops/ ├── shop.yml └── shop/ ├── blocks.yml └── valuables.yml ``` The plugin writes only the values that differ from the default, so a category of plain items stays short. Anything left out of the file takes its default. ## Shop File ```yml open-command: shop display-name: '<gradient:#FF9A00:#E52D27>Phoenix Shop</gradient>' conditions: checks: vip: type: permission permission: shop.vip currency: type: VAULT currency-format: '' enabled: true actions: buy: - '[SOUND] ENTITY_ITEM_PICKUP; 1; 1' sell: - '[SOUND] ENTITY_EXPERIENCE_ORB_PICKUP; 1; 1' deny: - '[SOUND] BLOCK_NOTE_BLOCK_BASS; 1; 1' click: - '[SOUND] UI_BUTTON_CLICK; 0.5; 1' next-page: - '[SOUND] ITEM_BOOK_PAGE_TURN; 1; 1' previous-page: - '[SOUND] ITEM_BOOK_PAGE_TURN; 1; 1' add: - '[SOUND] UI_BUTTON_CLICK; 0.4; 1.4' remove: - '[SOUND] UI_BUTTON_CLICK; 0.4; 0.8' fill: - '[SOUND] ITEM_BUNDLE_INSERT; 1; 1' back: - '[SOUND] ITEM_BOOK_PAGE_TURN; 1; 0.8' ``` | Key | Description | | ------------------- | -------------------------------------------------------------------------------------------- | | **open-command** | A command of its own that opens this shop, without the slash. Empty for none. A command another plugin already owns is left to that plugin. | | **display-name** | The name players see. | | **conditions** | Who can open the shop, written like an item's [requirements](#requirements). Lite reads only `permission` checks. Empty lets everyone in. | | **currency** | What every item in the shop is priced in. See [Currency](#currency). | | **currency-format** | How prices are written, such as `%amount% PlayerPoints`, `$%amount_short%` or `#,##0.00`. Empty uses the currency's own format. | | **enabled** | A disabled shop cannot be opened by anyone. | | **actions** | [Actions](../plugin-information/action-types.md) run on `buy`, `sell`, `deny`, `click`, `next-page`, `previous-page`, the amount buttons (`add`, `remove`), the fill button (`fill`) and a back button (`back`). An empty list runs nothing. A file that still has the old `sounds` section has each sound turned into one `[SOUND]` action the first time it loads. | ## Category File ```yml enabled: true title: '<bold><gradient:#56CCF2:#2F80ED>Armory</gradient></bold>' icon: IRON_PICKAXE order: 1 currency: type: SHOP actions: open: [] close: [] items: '0': identifier: iron_sword display-material: IRON_SWORD buy-price: 1000.0 '1': identifier: iron_helmet display-material: IRON_HELMET buy-price: 1000.0 sell-price: 250.0 ``` | Key | Description | | ------------------ | ---------------------------------------------------------------------------------------------------- | | **enabled** | A disabled category is hidden from players. | | **title** | The name players see. | | **icon** | The button in the shop menu. A material, or a section with `material`, `display-name`, `lore`, `flags` and the other item keys. | | **lore** | Lines shown under the category in the main menu. Overrides the icon's own lore when set. Left out when empty. | | **order** | Categories are sorted by this number, then by identifier. | | **slot** | A main menu category slot this category is pinned to. Left out, or `-1`, places it automatically. | | **buying**, **selling** | `false` stops every buy or every sale of this category's items. Left out when `true`. | | **conditions** ⭐ | Who can open the category and trade in it, written like the shop's `conditions`. Empty lets everyone in. | | **sale** ⭐ | `percent` off the buy price of every item, with optional `from` and `until` dates, `days` and `time-window`. Only applies while `started` is `true`. See [Sale](../main-features/categories/edit-category.md#sale). | | **currency** ⭐ | Overrides the shop's currency for this category. `SHOP` keeps the shop's. | | **actions** ⭐ | Actions run on `open`, `close`, `buy`, `sell`, `deny`, `click`, `next-page` and `previous-page`. A non-empty list replaces the shop's own list for that moment. See [Action Types](../plugin-information/action-types.md). | | **items** | The items. The keys under it only keep the entries apart, and the order is the order players see. | | **click-mappings** | What each click does in this category, in the same form as the global [click mappings](main-configuration.md#click-mappings). Clicks not listed use the global ones. | | **messages** | `buy`, `sell` and `cannot-afford`: messages that replace the normal ones for every item in this category. They take `%amount%`, `%item%`, `%price%`, `%currency%` and `%balance%`. Empty uses the normal message. | ## Item Keys An item needs `identifier`, `display-material`, a price, and `purchase-items` or `purchase-commands` for what a purchase gives. Every other key is optional. ```yml '2': identifier: vip_sword display-material: DIAMOND_SWORD amount: 1 display-name: '&bVIP Sword' lore: - '&7Sharper than it looks.' enchants: - 'SHARPNESS:5' flags: - HIDE_ENCHANTS glow: true buy-price: 500.0 sell-price: 100.0 match-rule: EXACT stock: 60 player-limit: 10 restock: type: DAILY time: '04:00' ``` | Key | Description | | -------------------- | -------------------------------------------------------------------------------------------- | | **identifier** | The item's name, used by stock counts and sign shops. Keep it unique within the category. | | **display-material** | The material. See [Materials](#materials). | | **item-data** | The whole item, encoded. Written by the editor when an item was added from your hand, such as a custom plugin item. Do not edit it. | | **amount** | The stack size shown, and how many one purchase gives. | | **display-name** | The item's name. Empty keeps the material's own. | | **lore** | The item's lore. | | **buy-price** | What one purchase costs. `0` means it cannot be bought, unless `free` is on. | | **free** | `true` lets players buy the item without paying, whatever `buy-price` says. Limits, stock and requirements still apply. | | **sell-price** | What one sale pays. `0` means it cannot be sold. | | **currency** ⭐ | Overrides the category's and the shop's currency for this item. | | **match-rule** | How closely a sold item has to match. See [Match Rule](#match-rule). | | **enabled** | A disabled item is hidden from players. | | **purchase-items** | What a purchase gives. The display item is never given. See [Purchase Items](#purchase-items). | | **purchase-commands** | Commands run on a purchase. See [Commands](#commands). | | **sell-commands** | Commands run on a sale. | | **sell-item** | What a sale takes from the player, with `material`, `amount` and the [item properties](#item-properties). Its amount is how many one sale takes. Without it, a sale matches the display item. | | **stock** ⭐ | How many are left to buy, shared by everyone. `-1` is unlimited. | | **player-limit** ⭐ | How many one player may buy between restocks. `-1` is unlimited. | | **sell-limit** ⭐ | How many one player may sell between restocks. `-1` is unlimited. | | **limit-group** ⭐ | Items in the shop with the same group share one player limit and one sell limit. Empty for none. See [Limit Group](../main-features/items/stock-and-restock.md#limit-group). | | **max-per-purchase** | The most lots one purchase can buy. `-1` is no limit. | | **min-sell** | The fewest items one sale has to contain. `-1` is no minimum. | | **damaged** | `sell: true` lets worn tools and armour be sold, paid by the durability they have left; `min-percent` is the lowest share of the price they pay. | | **restock** ⭐ | When a sold out item comes back. See [Restock](#restock). | | **available** ⭐ | When the item is for sale: `from` and `until` as `2026-10-25 18:00`, and a `window` such as `2h` after each restock. See [Availability](../main-features/items/stock-and-restock.md#availability). | | **requirements** ⭐ | Checks a purchase or a sale has to pass. See [Requirements](#requirements). | | **messages** | `buy`, `sell` and `cannot-afford` for this item only, like a category's. An item's message wins over its category's. | ### Item Properties These change how the item looks, and are also applied to what the player receives. | Key | Format | | -------------------- | ----------------------------------------------------------------------- | | **enchants** | `SHARPNESS:5`. A custom enchantment works when its plugin is installed. | | **flags** | Item flags, such as `HIDE_ENCHANTS` or `HIDE_ATTRIBUTES`. | | **glow** | `true` makes the item glow without an enchantment on it. 1.20.5+. | | **model-data** | The custom model data number. `0` for none. | | **item-model** | An item model key, such as `minecraft:diamond`. | | **tooltip-style** | A tooltip style key. | | **trim-material** | An armour trim material, such as `GOLD`. Needs `trim-pattern` too. | | **trim-pattern** | An armour trim pattern, such as `SENTRY`. | | **potion-effects** | `speed;1000;1`, the effect, its duration in ticks and its amplifier. | | **potion-type** | The base potion of a potion or tipped arrow, such as `long_swiftness`. | | **instrument** | The sound of a goat horn, such as `admire_goat_horn`. | | **rgb** | `255,0,0`, the colour of leather armour or a potion. | | **banner-patterns** | `RED;STRIPE_TOP`, a dye colour and a pattern. | | **spawner-type** | The mob a spawner spawns, such as `ZOMBIE`. | ## Materials `display-material` takes a material name such as `DIAMOND`, a player head with its texture as `PLAYER_HEAD:<base64>`, or an item from another plugin with its prefix. | Plugin | Prefix | | ----------------- | ------------------- | | ItemsAdder | `itemsadder:` | | Nexo | `nexo:` | | CraftEngine | `craftengine:` | | MythicMobs items | `mythicitem:` | | MMOItems | `mmoitem:` | | ExecutableItems | `executableitem:` | | ExecutableBlocks | `executableblock:` | | Slimefun | `slimefun:` | | HeadDatabase | `hdb:` | | HeadDB | `headdb:` | | PhoenixCrates | `phoenixcrates:key:<key>`, `phoenixcrates:crate:<crate>` | An item whose plugin is missing shows as dirt and cannot be bought or sold. The console names the item once. ## Currency The same block is used by shops, categories and items. | Type | Description | | ------------------ | -------------------------------------------------------------------------- | | `SHOP` | Categories and items only. Uses the currency above it. | | `VAULT` | Money, through Vault. | | `PLAYERPOINTS` | PlayerPoints. | | `VOTINGPLUGIN` | VotingPlugin points. | | `EXCELLENTECONOMY` | An ExcellentEconomy currency, named in `identifier`. | | `PHOENIXCURRENCIES` | A PhoenixCurrencies currency, named in `identifier`. | | `EXPERIENCE` | Experience points, or levels with `levels: true`. | | `ITEM` ⭐ | An item used as money. | | `PLACEHOLDER` ⭐ | Any number a PlaceholderAPI placeholder returns. | ```yml currency: type: EXCELLENTECONOMY identifier: gems ``` ```yml currency: type: ITEM identifier: gold_coin item: display-name: Gold Coin material: GOLD_NUGGET match: EXACT ``` ```yml currency: type: PLACEHOLDER identifier: tokens placeholder: display-name: Tokens balance: '%tokenmanager_tokens%' buy: 'tokens remove %player% %amount_int%' sell: 'tokens add %player% %amount_int%' ``` A placeholder currency reads the balance from `balance`, and runs `buy` from the console to take the price and `sell` to pay it. `%player%`, `%amount%` and `%amount_int%` (rounded up) are filled in. > **Info:** The first item or placeholder currency with a given `identifier` defines it, so every other shop can use it by writing only the `type` and the `identifier`. ## Match Rule How closely an item a player sells has to look like the shop item. | Rule | Description | | --------------------- | ------------------------------------------------------------------------ | | `EXACT` | Everything must match: name, lore, enchantments and custom data. | | `MATERIAL_AND_NAME` | The material and the display name must match. | | `MATERIAL` | Only the material matters. | > **Warning:** Anything looser than `EXACT` lets a player buy something cheap, change it, and sell it back as something else. Only loosen it on items the shop does not sell. ## Purchase Items A purchase gives these items, and selling matches against the first one. An item with no purchase items and no purchase commands cannot be bought, and one with no purchase items cannot be sold. Each entry takes `material`, `amount`, `display-name`, `lore` and the [item properties](#item-properties). ```yml purchase-items: '0': material: SPAWNER spawner-type: COW '1': material: DIAMOND amount: 3 ``` ## Commands `purchase-commands` run after a purchase and `sell-commands` after a sale, from the console. Start a line with `*` to run it as the player instead. ```yml purchase-commands: - 'lp user %player% permission set essentials.fly' - '*spawn' ``` | Placeholder | Value | | ------------ | -------------------------------------- | | `%player%` | The player's name | | `%amount%` | How many purchases were made | | `%item%` | The item's name | | `%price%` | The total price | | `%currency%` | The currency's name | | `%shop%` | The shop's name | PlaceholderAPI placeholders work too. An item with purchase commands and no purchase items gives no item at all, only runs the commands. ## Restock | Key | Used by | Description | | --- | --- | --- | | `type` | all | `NEVER`, `INTERVAL`, `DAILY`, `WEEKLY` or `MONTHLY`. | | `every` | `INTERVAL` | How long after it sells out, such as `30m`, `6h` or `1d12h`. Units are `s`, `m`, `h` and `d`. | | `time` | `DAILY`, `WEEKLY`, `MONTHLY` | The time of day, such as `'04:00'`. | | `day` | `WEEKLY`, `MONTHLY` | A weekday such as `MONDAY`, or a day of the month from `1` to `28`. | ```yml restock: type: WEEKLY day: MONDAY time: '04:00' ``` An item with no `restock` block never restocks. ## Requirements Each check has a name of your choice, a `type`, the fields that type reads, and actions run when it fails. `applies-to` is `BOTH`, `BUY` or `SELL`, and `negate: true` flips the result. `minimum` is how many checks have to pass, and leaving it out means all of them. ```yml requirements: minimum: 0 checks: island-level: applies-to: BUY type: compare input: '%superior_island_level_int%' operator: '>=' output: '7' deny-actions: - '[MESSAGE] &cYou need island level 7 to buy this.' - '[SOUND] BLOCK_NOTE_BLOCK_BASS; 1; 1' vip: type: permission permission: shop.vip java-only: type: platform platform: JAVA ``` | Type | Reads | | --- | --- | | `permission` | `permission` | | `compare` | `input`, `operator`, `output` | | `world` | `world` | | `gamemode` | `gamemode` | | `holding` | `material`, `name` and `whole-inventory`, all optional | | `enchantment` | `enchantment` | | `platform` | `platform`: `BEDROCK` or `JAVA` | | `region` | `region`: a WorldGuard region id, needs WorldGuard | | `world-time` | `time`: a range of world time such as `'08:00-14:45'` or `'22:00-06:00'` | | `playtime` | `playtime`: such as `15m` or `5d 12h` | `operator` is `>`, `>=`, `==`, `!=`, `<` or `<=` for numbers, or `equals`, `equals ignorecase`, `contains` or `not contains` for text. `input` and `output` accept PlaceholderAPI placeholders. `holding` passes when the player holds an item, and when `material` is set, only one of that material. `name` also asks for that item name, compared without colors, and `whole-inventory: true` counts an item anywhere in the inventory instead of only the main hand. `enchantment` passes when the held item can take that enchantment. A type, operator or platform that does not exist refuses the transaction, even when negated, and is reported in the console once. Source: https://www.phoenixplugins.com/docs/phoenix-shop/configurations/shop-configuration-file --- # 💎 Features <table data-full-width="true"><thead><tr><th>Shops & Items</th><th>Buying & Selling</th><th>Management</th></tr></thead><tbody><tr><td>Customize via the In-Game Editor.</td><td>Buy and sell from the shop menus.</td><td>Import shops from ShopGUI+, EconomyShopGUI, UltimateShop, ExcellentShop, QuickShop and Essentials.</td></tr><tr><td>One file per shop and per category.</td><td>Bulk buy and bulk sell menus.</td><td>Edit the layout of every menu in-game.</td></tr><tr><td>Own command per shop, like <code>/shop</code>.</td><td>Configurable click actions (buy, sell, sell all).</td><td>Purchase history, with filters and CSV export ⭐.</td></tr><tr><td>Permission required to open a shop.</td><td><code>/sell hand</code>, <code>/sell inventory</code> and <code>/sell menu</code>.</td><td>Undo the last transaction. ⭐</td></tr><tr><td>Vault, PlayerPoints, VotingPlugin, ExcellentEconomy and PhoenixCurrencies currencies.</td><td>Sell menu that sells on close.</td><td>Search across every shop. ⭐</td></tr><tr><td>Experience points or levels as a currency.</td><td>Chest shops that players build themselves.</td><td>Price generator that prices a shop in a few clicks.</td></tr><tr><td>Item and Placeholder currencies. ⭐</td><td>Admin sign shops.</td><td>Price audit that finds money loops through crafting. ⭐</td></tr><tr><td>Currency per category and per item. ⭐</td><td>Limited stock with restocking. ⭐</td><td>Discord webhooks for 11 events. ⭐</td></tr><tr><td>Support for custom items (ItemsAdder, Nexo, CraftEngine, MMOItems, MythicItems and more).</td><td>Per-player purchase limits. ⭐</td><td>MySQL, MariaDB ⭐ and SQLite Database.</td></tr><tr><td>Custom heads through HeadDatabase and HeadDB.</td><td>Requirements with deny actions. ⭐</td><td>Folia supported.</td></tr><tr><td>Enchantments, trims, potion effects, colors and model data on items.</td><td>Open and close actions per category. ⭐</td><td>Bedrock forms through GeyserMC and Floodgate.</td></tr><tr><td>Spawners with a set mob type.</td><td>Give items or run commands on purchase.</td><td>MiniMessage and hex color support.</td></tr><tr><td>Three match rules for selling items back.</td><td>Run commands on sale.</td><td>Plugin Messages 100% configurable.</td></tr><tr><td>Custom enchantments from EcoEnchants and ExcellentEnchants.</td><td>Chat or action bar transaction feedback.</td><td>Developer API with events.</td></tr><tr><td>Category and shop-wide sales with a countdown. ⭐</td><td>Restock and sale alerts for every player who can buy the item. ⭐</td><td>Rank price modifiers with the Sell Boosters add-on. ⭐</td></tr><tr><td>Preview what an item gives before buying. ⭐</td><td>Sell a shulker box together with its contents.</td><td>Restock alerts on Discord. ⭐</td></tr></tbody></table> ## Add-ons Add-ons load on Premium only. <table data-full-width="true"><thead><tr><th>Add-on</th><th>What it adds</th></tr></thead><tbody><tr><td>AutoSell</td><td>Sell a player's inventory and placed sell chests on a timer.</td></tr><tr><td>Rotating Shop ⭐</td><td>Categories that show only some of their items, picked again on a schedule.</td></tr><tr><td>Sell Boosters ⭐</td><td>Sell multipliers, server-wide or for one player, with a duration.</td></tr><tr><td>Sell Wands ⭐</td><td>A wand that sells everything in a container with one right-click.</td></tr><tr><td>Network ⭐</td><td>Stock and sell limits counted once across every server on one database.</td></tr><tr><td>Shop Stands ⭐</td><td>A block that buys and sells one shop item, with the item and its prices floating above it.</td></tr></tbody></table> ## Suggestions If you notice something missing from our plugin, please let us know. Additionally, we are always open to suggestions from our users to add more content and improve the plugin. Source: https://www.phoenixplugins.com/docs/phoenix-shop/features --- # 🔨 Auction House > **Info:** The Auction House is in both editions. The parts marked ⭐ need Premium; on Lite a player can have up to 10 listings, sells at a fixed price in the default currency and uses the built-in categories. It is on by default; set `enabled: false` in auction-house.yml to turn it off. ## Information The Auction House lets players sell items to each other. A listing either has a fixed price that anyone can pay right away, or it is an auction that goes to the highest bidder when time runs out. Expired items, won auctions and anything that did not fit in an inventory go to the player's collection bin, so nothing is lost while a player is offline. Players who were offline when something happened get the messages the next time they join. ## Selling Hold the item and open the sell menu with `/ah sell`. Pick the listing type, the price, how long it stays up and, when more than one is allowed, the currency. `/ah sell <price>` and `/ah auction <starting bid>` ⭐ list the held item straight away with the default duration. The **Price Guide** ⭐ in the sell menu shows what the same item sold for over the last days: the average and the last price for one item, and how many sold. Clicking it sets the price to the average for the amount being sold. Custom items from item plugins are told apart from the vanilla item they are made of. The listing fee is paid when the item is listed and is not refunded. The sales tax is taken from what the seller receives. ## Bundles ⭐ `/ah bundle <price>` or `/ah bundle <starting bid> auction` opens a menu where the player puts up to 27 stacks that sell together as one listing. The buyer or winner gets every stack; players see the contents with Shift + Left-Click. Closing the menu without listing gives everything back. ## Buying and bidding A fixed-price listing can be bought whole, or in part when partial buys are on. A bid ⭐ has to beat the current one by the minimum raise. The money is taken when the bid is placed and given back as soon as someone outbids the player or the auction is closed. A bid in the last moments of an auction extends it, so nobody can win by bidding a second before the end. A seller can cancel a listing until an auction has its first bid. Staff can remove any listing with Press Q: the item goes to the seller's collection bin and the highest bidder gets their money back. ## Watchlist and reminders ⭐ Shift + Right-Click on a listing adds it to the player's watchlist, found in **My Auctions**. Watchers are told about new bids and when the listing ends. The highest bidder and everyone watching are reminded shortly before a listing ends, by default five minutes and one minute before. Reminders only reach players who are online at the time; they are not saved for the next join. ## Listing again ⭐ An expired item in the collection bin can go straight back up with Right-Click, at the same price and type, without taking it out first. The listing fee and limits apply again. ## Server Restock ⭐ The server can put items up for sale on its own at a set interval, so the Auction House is never empty on a quiet server. Server listings carry the server's seller name, sit between the player listings and are bought like any fixed-price listing in the first auction currency; the money goes to nobody. Each item has an amount, a price and how many listings of it go up per restock. After a restock where every listing of an item sold, its price rises by the price rise; when some were left over, it drops by the price drop, never past the item's lowest and highest price. A random variation can move it a little more each time. Changing an item's price starts it over from there. Unsold server listings disappear at the next restock when Replace Unsold is on, otherwise when they end. Nothing goes to a collection bin, and staff removing one deletes it. Turning the restock on runs one straight away; a restart waits out the rest of the interval. Items are added from the one in your hand in **Editor > Auction House > Features > Server Restock**, which keeps custom items exactly as held. ## Categories The categories in the menu come from auction-house.yml, in the order they are written; an item goes into the first one it matches, and into **Other** when it matches none. Changing them or adding your own ⭐ needs Premium. ```yaml categories: crate-keys: enabled: true name: Crate Keys icon: TRIPWIRE_HOOK data-keys: - phoenixcrates:key blocks: enabled: true name: Blocks icon: GRASS_BLOCK types: - BLOCKS ``` | Rule | Matches | | ---- | ------- | | `types` | Built-in groups: `BLOCKS`, `COMBAT`, `TOOLS`, `FOOD`, `POTIONS`, `ENCHANTED_BOOKS`, `ENCHANTED`. | | `items` | Materials or custom item ids, such as `DIAMOND` or `nexo:pineapple`; a `*` at the end matches the start, such as `nexo:*`. | | `name-contains` | Items whose name contains one of these texts. | | `data-keys` | Items that carry one of these data keys, such as `phoenixcrates:key` for crate keys. | Set `enabled: false` to hide a category. ## Settings The command and its aliases are set with the other [commands](../configurations/main-configuration.md#commands), under `auction-house`. > **Info:** Everything below can be changed in **Editor > Auction House**, where Premium-only options show as locked on Lite, or in auction-house.yml followed by `/pshop reload`. | Option | What it does | | ------ | ------------ | | `enabled` | Turns the Auction House and its command on or off. | | `currencies` ⭐ | The currencies a seller can choose from, by currency id. Starts with `money`; empty uses the default currency. | | `listing-limit` | How many listings a player can have at once. `-1` is unlimited. A higher limit can be given by permission ⭐. Lite allows at most 10. | | `durations` | The durations a seller can choose from, such as `30m`, `6h` or `2d`. | | `default-duration` | The duration used by `/ah sell <price>`, bundles and listing again, and preselected in the sell menu. | | `min-price`, `max-price` | The lowest and highest price or starting bid. `max-price` also caps bids. | | `currency-prices` ⭐ | A `min-price` and `max-price` per currency id, replacing the ones above for that currency. Set in **Prices > Per Currency**; `0` uses the ones above. | | `listing-fee.flat`, `listing-fee.percent` | The fee to list an item: a fixed amount plus a percentage of the price. | | `sales-tax` | The percentage taken from every sale. | | `currency-taxes` ⭐ | A sales tax per currency id, replacing `sales-tax` for that currency. Set in **Prices > Per Currency**. | | `item-taxes` ⭐ | A sales tax per material, custom item id or wildcard, replacing the others for that item. Items dropped into **Prices > Tax per Item** are added here. | | `partial-buys` | Whether buyers can buy part of a stack. | | `bids.increase-percent`, `bids.increase-minimum` | The minimum raise over the current bid: the larger of the percentage and the fixed amount. | | `bids.cancel-with-bids` | Whether a seller can still cancel an auction that has bids. Bidders are refunded. | | `anti-snipe.window`, `anti-snipe.extend` | A bid placed less than `window` seconds before the end makes the auction end `extend` seconds after that bid. `0` turns it off. | | `ending-reminders` | When the highest bidder and watchers are reminded before the end, such as `5m` and `1m`. Empty turns it off. | | `watchlist-limit` | How many listings one player can watch. `0` is unlimited. | | `sell-cooldown` | Seconds a player has to wait between two listings. | | `broadcast-new-listings` | Whether every player is told about new listings. | | `disabled-worlds` | Worlds where players cannot list items. | | `blacklist.items` | Full items that cannot be listed, added by dropping them into **Blocked Items** in the editor. A plain item blocks every item of that type, an item with a name, lore or enchants only that exact item, and a custom plugin item that plugin item. | | `blacklist.patterns` | Custom item ids or wildcards such as `*_spawn_egg` that cannot be listed, typed in **Blocked Items**. | | `blacklist.name-contains`, `blacklist.lore-contains` | Items whose name or a lore line contains one of these texts cannot be listed. | | `allow-list.enabled`, `allow-list.items`, `allow-list.patterns` ⭐ | When on, only these items can be listed. Items dropped into **Allowed Items** are added here, the same way as **Blocked Items**. | | `price-guide.enabled`, `price-guide.days` ⭐ | The Price Guide in the sell menu, and how many days of sales it looks at. | | `bundles.enabled`, `bundles.icon` ⭐ | Whether players can sell bundles, and the item that shows a bundle. | | `server-restock.enabled`, `server-restock.interval` ⭐ | Whether the server restocks on its own, and how often, such as `6h` or `1d`. The shortest is `1m`. | | `server-restock.seller-name`, `server-restock.duration` ⭐ | The seller name on server listings, and how long they stay up. | | `server-restock.replace-unsold` ⭐ | Whether unsold server listings are taken down when the next restock starts. | | `server-restock.price-change.up`, `.down`, `.random` ⭐ | The percentage a price rises after a sold-out restock, drops after one with leftovers, and moves at random each restock. | | `server-restock.items` ⭐ | The items: `item` (a material or custom item id), `amount`, `price`, `min-price` and `max-price` (`0` is no limit), `stock` (listings per restock) and `enabled`. | The tax is fixed when an item is listed, so a permission change later does not change what an existing listing pays. The blacklist and allow-list also apply to the contents of shulker boxes and bundles. Every message is in the translation file, under the `auction-house` section. ## Menus Every menu can be laid out in game from **Editor > Auction House > Menus**, or changed in its file inside menus/auction-house: main.yml, sell.yml, bundle.yml ⭐, listings.yml, watchlist.yml ⭐, collection.yml, history.yml, preview.yml and one confirm menu per action, confirm-buy.yml, confirm-bid.yml ⭐, confirm-cancel.yml and confirm-remove.yml. Bedrock players type prices, amounts, bids and searches in a form, and pick Shift and Press Q actions from a list. Java players get a dialog on Paper servers that support dialogs, and type in chat everywhere else. ## Discord Listings, sales, bids, expired and removed listings and server restocks can be posted to Discord with the Premium edition, like the other [Discord Webhooks](discord-webhooks.md). ## Moving from another auction plugin **Editor > Migrations** brings live listings, auctions, expired items and money still owed across from zAuctionHouse, PlayerAuctions, CrazyAuctions and Auction House (Kiranhart). Bids come across only when the old plugin took the bidder's money at bid time; otherwise the auction restarts at its price. Running it again skips what already came across. Remove the old plugin afterwards, since its files still hold everything. ## Placeholders | Placeholder | Description | | ----------- | ----------- | | `%phoenixshop_ah_total%` | The number of listings on the auction house. | | `%phoenixshop_ah_total_buy_now%`, `%phoenixshop_ah_total_auctions%` | The number of fixed-price listings and of auctions. | | `%phoenixshop_ah_listings%` | The player's listings. | | `%phoenixshop_ah_limit%` | The player's listing limit. | | `%phoenixshop_ah_waiting%` | The entries in the player's collection bin. | | `%phoenixshop_ah_winning%` | The auctions the player is the highest bidder on. | | `%phoenixshop_ah_watching%` | The listings on the player's watchlist. | | `%phoenixshop_ah_banned%` | Whether the player is banned from the auction house. | ## Files | File | What it holds | | ---- | ------------- | | `PhoenixShop/auction-house.yml` | The settings above. | | Plugin database | Listings, collection bins, sale history, watchlists, bans and messages waiting for offline players. | | `PhoenixShop/translations/translations.<lang>.yml` | The messages, under `auction-house`. | ## Commands | Command | Description | | ------- | ----------- | | `/ah` | Opens the auction house. | | `/ah sell [price] [amount]` | Opens the sell menu, or lists the held item for a fixed price. | | `/ah auction <starting bid> [amount]` ⭐ | Auctions the held item. | | `/ah bundle <price> [buy-now\|auction]` ⭐ | Opens the bundle menu to sell several stacks as one listing. | | `/ah find <item>` | Opens the auction house filtered by item or seller name. | | `/ah listings` | Opens your listings. | | `/ah collect` | Opens your collection bin. | | `/ah history` | Shows what you bought and sold. | | `/ah view <player>` | Shows every listing of one player. | | `/ah open <player> <collection\|history>` ⭐ | Shows the collection bin or the history of one player. | | `/ah ban <player>`, `/ah unban <player>` | Stops a player from listing, buying and bidding, or lets them again. | | `/ah removeall <player> [confirm]` | Counts, then with `confirm` sends, every listing of one player to their collection bin and refunds every bid. | | `/ah restock` ⭐ | Runs a server restock now. The next automatic one comes a full interval later. | ## Permissions | Permission | What it allows | Default | | ---------- | -------------- | ------- | | `phoenixshop.auction.use` | Browsing, buying, bidding, the watchlist and the collection bin. | Everyone | | `phoenixshop.auction.sell` | Listing items and bundles. | Everyone | | `phoenixshop.auction.limit.<number>` ⭐ | A higher listing limit. `*` is unlimited. | - | | `phoenixshop.auction.tax.<percent>` ⭐ | A lower sales tax; the lowest one the player has counts. | - | | `phoenixshop.auction.admin` | Removing listings, `/ah view`, `/ah open`, `/ah ban`, `/ah unban`, `/ah removeall` and `/ah restock` ⭐. | Operators | Source: https://www.phoenixplugins.com/docs/phoenix-shop/features/auction-house --- # 🪝 Discord Webhooks > **Info:** Everything on this page can be changed in **Editor > Settings > Discord Webhooks**, or in discord.yml followed by `/pshop reload`. ## Discord Webhooks Phoenix Shop can post what happens in your shops to Discord: purchases, sales, chest shop trades, Auction House activity, price changes, stock running out, restock alerts, admin edits and a daily summary. Each kind of message can have its own webhook, so each can go to a different channel, or they can all share the default webhook. This is a Premium feature. <figure><img src="../.gitbook/assets/discord-webhooks/discord-webhooks.png" alt="" width="563"><figcaption><p>Settings (Discord Webhooks)</p></figcaption></figure> Messages are queued and sent in the background, so a slow or unreachable Discord never holds up a purchase. ## Setup ### Create the webhook In Discord, open **Server Settings > Integrations > Webhooks**, create one for the channel you want the messages in, and copy its URL. ### Set it in the editor Paste the URL into **Default Webhook** to use it for every message, or into the **Webhook URL** of one message to send that one somewhere else. Then turn on each message you want. <figure><img src="../.gitbook/assets/discord-webhooks/default-webhook.png" alt="" width="563"><figcaption><p>Discord Webhooks (Default Webhook)</p></figcaption></figure> ### Test it **Send Test** in a message's screen posts a test message to its webhook. `/pshop webhooktest` does the same for the `anomaly` message and needs the `phoenixshop.admin` permission. <figure><img src="../.gitbook/assets/discord-webhooks/send-test.png" alt="" width="563"><figcaption><p>Purchases (Send Test)</p></figcaption></figure> ## Messages | Message | Posted when | Shows | | --- | --- | --- | | purchase | A player buys from a shop. | Player, item, amount, price, currency and shop. | | sale | A player sells to a shop. | Player, item, amount, price, currency and shop. | | large-transaction | A purchase or sale costs or pays at least the threshold. | The same, plus whether it was a purchase or a sale. | | price-change | The [price audit](price-audit.md) or the [price generator](price-generator.md) changes a price. | Shop, item, and the old and new price. | | stock-depleted | An item with limited stock sells out. | Shop and item. | | restock | An item with limited stock is restocked. | Shop, item and the new stock. | | restock-alert | A [restock alert](restock-and-sale-alerts.md#restock-alerts) goes out. | Shop, item, whether it restocked or its sale window opened, and how many players were alerted. | | player-shop-created | A player builds a chest shop. | Owner, item, mode, prices, currency and location. | | player-shop-removed | A chest shop is removed. | Owner, item, mode, prices, currency and location. | | chest-shop-trade | A player buys from or sells to a chest shop. | Customer, owner, whether they bought or sold, item, amount, price and location. | | auction-listed | An item is listed on the [Auction House](auction-house.md). | Seller, item, price or starting bid, type and duration. | | auction-sold | A listing sells or an auction is won. | Seller, buyer, item, price and type. | | auction-bid | A player bids on an auction. | Bidder, seller, item, bid and number of bids. | | auction-expired | A listing ends without selling. | Seller, item and price. | | auction-removed | Staff take down a listing. | Staff member, seller and item. | | auction-restocked | The server restocks the Auction House. | The number of new listings. | | booster-started | A [sell booster](../add-ons/sell-boosters/README.md) for everyone starts. | Multiplier, what it applies to, duration and who started it. | | booster-ended | A sell booster for everyone runs out. | Multiplier and what it applied to. | | admin-edit | An admin changes anything in the editor. | Admin, shop, category, item, what changed and the new value. | | daily-summary | Once a day, at the set time. | See below. | | anomaly | `/pshop webhooktest` is run. | Who sent the test. | <figure><img src="../.gitbook/assets/discord-webhooks/purchases.png" alt="" width="563"><figcaption><p>Discord Webhooks (Purchases)</p></figcaption></figure> The large transaction message is posted as well as the purchase or sale message, not instead of it. The restock alert message is posted even when no player was alerted. ## Options Every message has the same options, with a few extras. <figure><img src="../.gitbook/assets/discord-webhooks/webhook-url.png" alt="" width="563"><figcaption><p>Purchases (Webhook URL)</p></figcaption></figure> <figure><img src="../.gitbook/assets/discord-webhooks/embed-color.png" alt="" width="563"><figcaption><p>Purchases (Embed Color)</p></figcaption></figure> <figure><img src="../.gitbook/assets/discord-webhooks/threshold.png" alt="" width="563"><figcaption><p>Large Transactions (Threshold)</p></figcaption></figure> ```yaml discord: default-webhook-url: '' purchase: enabled: false webhook-url: '' username: Phoenix Shop avatar-url: '' embed: title: Purchase color: '#57f287' large-transaction: threshold: 10000 chest-shop-trade: minimum-price: 0 daily-summary: time: '00:00' restock-alert: message: restocked: '%item% is back in stock in %shop%.' window-opened: '%item% is on sale again in %shop%.' ``` | Option | Description | | --- | --- | | default-webhook-url | The webhook every message uses when it has no `webhook-url` of its own. Each message still has to be enabled. | | enabled | Whether this message is posted at all. | | webhook-url | The Discord webhook URL. Empty uses `default-webhook-url`; nothing is posted while both are empty. | | username | The name the webhook posts under. | | avatar-url | An image URL used as the webhook's avatar. Empty uses the webhook's own. | | embed.title | The embed's heading. Empty uses the message's default title. | | embed.color | The colour of the embed's side bar, as a hex value. | | threshold | Large transaction only. The price at which a purchase or sale counts as large, in any currency. | | minimum-price | Chest shop trade, auction listed, auction sold and auction bid only. Cheaper trades, listings and bids are not posted, so a busy server does not flood the channel. `0` posts everything. Trades paid in items are always posted. | | time | Daily summary only. The time of day to post, as `HH:MM` on the server's clock. | | message | Restock alert only. The text posted when the item restocks, and when it goes on sale again. `%item%` and `%shop%` are filled in. | ## Daily Summary Posted once a day at the set time, covering the 24 hours before it: the number of purchases and sales, what players spent and were paid per currency, the most traded item, and the player who bought and the player who sold the most. Undone transactions are left out. A day with no transactions says so. A time the plugin cannot read switches the summary off and leaves a warning in the console. ## Troubleshooting If messages are not arriving, check the console. The plugin warns once per webhook, without printing the URL, when Discord refuses a post or cannot be reached. * **The URL is wrong.** It must be the full `https://discord.com/api/webhooks/...` address, not a link to the channel. * **The webhook was deleted in Discord.** The plugin keeps posting to an address that no longer exists until the URL is changed. * **Rate limits.** When Discord asks the plugin to slow down, it waits and sends the rest after. Up to 64 messages wait in the queue, and anything past that is dropped, so a very busy shop with purchase, sale or chest shop trade messages on can lose some. Source: https://www.phoenixplugins.com/docs/phoenix-shop/features/discord-webhooks --- # 🧩 In-Game Menu Editor > **Info:** The editor changes the same menu files described in [Customize Menus](../configurations/customize-menus.md). A menu saved in-game is live straight away, with no reload. ## Opening the Editor There are two ways in, both needing `phoenixshop.command.editor`: <figure><img src="../.gitbook/assets/in-game-menu-editor/in-game-menu-editor.png" alt="" width="563"><figcaption><p>Edit Shop (Edit Menus)</p></figcaption></figure> * **Editor > Shops > \<shop> > Edit Menus** lists every menu of that shop. Left-click one to edit it. * `/pshop editlayout <shop> <menu>` opens one menu directly. The menu is `main`, `buy`, `sell`, `bulk-buy`, `bulk-sell`, `sell-menu`, or the identifier of a category. The menu opens as it looks to players, with every button in place. The main menu, for example, shows its category slots as lime panes where the categories will be. > **Warning:** While you edit, your hotbar holds the editor tools. Your own hotbar items are saved to a backup file first, and the editor does not open if that backup fails. They come back when you close the menu. ## Editing a Button With no tool turned on, click any button to open its editor. Every field there changes that one button: | Field | Description | | --- | --- | | Look | Drop an item here to copy its material, custom model data, item model and head texture. | | Display Name | The name of the button. | | Lore | The lore of the button. | | Amount | How many are shown, 1 to 64. On a step button of the buy or sell menu, this is the step. | | Glow | Makes the button glow. | | Hide Attributes | Hides attack damage and similar lines. | | Custom Model Data | The custom model data of the button. | | Click Actions | The [menu actions](../configurations/customize-menus.md#menu-actions) run when the button is clicked. | | Hide Tooltip | Hides the tooltip entirely. | | Tooltip Style | The tooltip style, such as `minecraft:blue`. | | Delete | Removes the button. | A field only appears when the button has that option, and Delete only appears on decoration. The plugin's own buttons, such as Close or Confirm, can be moved and restyled but not deleted. > **Warning:** On the plugin's own buttons, players only see the material, amount, custom model data, name and lore. Glow, item model, hide tooltip and tooltip style take effect on decoration only. ## Drag and Drop Pick up any item from your inventory and drop it: * **On a button** to give the button that item's look: its material, custom model data, item model and head texture. The name, lore and actions stay. * **On an empty slot** to add the item as new decoration, with its look, name and lore. This is the quickest way to put a custom item from a resource pack or a textured head into a menu. ## Hotbar Tools Right-click a tool while holding it, or click it in your inventory. The first three are modes: one is on at a time, it glows while on, and using it again turns it off. | Slot | Tool | Description | | --- | --- | --- | | 1 | Reordering | Click a button, then click where it should go. If that slot is taken, the two buttons swap places. | | 2 | Item Slots | Click an empty slot to add it to the menu's item slots, or click a lime slot to remove it. Also repeats decoration: click it to select it, then click empty slots to put it there too. Clicking decoration that already sits on several slots removes it from the slot you clicked. | | 3 | New Button | Click an empty slot to place a new button there. Its editor opens straight away. | | 4 | Add a Row | Makes the menu one row taller, up to 6. | | 5 | Remove a Row | Makes the menu one row shorter, down to 1. | | 8 | Menu Title | Type the new title, in a dialog where the server supports one, otherwise in chat. | | 9 | Templates & Text | Opens the parts of the menu that have no slot of their own. | The item slots are where the menu shows its own content: the categories on the main menu, the items on a category menu, the offers on a bulk menu and the drop area of the sell menu. A slot group always keeps at least one slot, and a button locked to a single slot cannot be repeated. Removing a row does not delete what was on it. Anything left below the last row is hidden, you are told how many slots, and adding the row back shows it again. ## Templates & Text Templates are buttons drawn once per entry rather than placed on a slot: the category tile of the main menu, the offer of a bulk menu, and the fill item of a category menu. Editing one restyles every copy of it. Their material is usually replaced by the category icon or the item, so only the name, lore and extras matter. Text entries are the lines the menu adds by itself, such as the buy, sell and stock lines under every item of a category menu, or the no-permission lore of the buy and sell menus. ## Saving Close the menu to save. The file is written, the menu is live for players at once, and your hotbar is given back. If you opened it from the Edit Menus list, the list opens again. The menu is also saved when you leave the server, when you die, and when the server stops. Dying ends the session, and your own hotbar items drop with the rest of your inventory. If the server crashes mid-edit, your hotbar is given back the next time you join. While editing, the tools cannot be dropped, placed or moved, and you cannot swap hands. > **Info:** Two admins can open the same menu at the same time. The second is warned, and whoever closes last overwrites the other's changes. Source: https://www.phoenixplugins.com/docs/phoenix-shop/features/in-game-menu-editor --- # 👁️ Preview > **Info:** This feature is only available with the Premium Plan. ## Click Actions The preview is reached through the `PREVIEW` click action. It is not mapped by default: add it to the [click mappings](../configurations/main-configuration.md#click-mappings) in config.yml, or to a category's own clicks in the editor. ```yaml click-mappings: LEFT: BUY RIGHT: SELL SHIFT_LEFT: BUY SHIFT_RIGHT: PREVIEW ``` It works in category menus, and only on items that can be bought. On Lite it does nothing and is left out of the item's hint lines. ## Preview `PREVIEW` opens a read-only menu showing what one purchase gives: the shop item with its price, and every purchase item with its amount. An item that also runs purchase commands says how many. An item that only runs commands shows the **empty** item. **Back** returns to the category. The layout is on [Customize Menus](../configurations/customize-menus.md#preview-menu). ## Permission | Permission | Description | | --- | --- | | phoenixshop.preview | Opens the preview with the `PREVIEW` click. Given to everyone by default. | Source: https://www.phoenixplugins.com/docs/phoenix-shop/features/preview --- # 🔍 Price Audit ## Price Audit A money loop is a way for a player to buy items, craft or smelt them into something else, and sell the result for more than they paid. Left in, one player can run it over and over and print money. The price audit walks the server's recipes against your prices and lists every loop it finds. This is a Premium feature. <figure><img src="../.gitbook/assets/price-audit/price-audit.png" alt="" width="563"><figcaption><p>Editor (Price Audit)</p></figcaption></figure> Open it from **Editor > Price Audit**, or run `/pshop audit` for the same list in chat. The editor's main page shows how many loops the last check found, on Lite too. | Command | Permission | Description | | --- | --- | --- | | `/pshop audit` | phoenixshop.command.audit | Lists every money loop in chat, worst first. | ## What Is Checked Every recipe the server knows is followed, up to four steps deep: crafting, smelting, blasting, smoking, campfire cooking, stonecutting, smithing and brewing. Custom recipes other plugins add are included. Some items are left out because no player can farm them: * Shops that are disabled, or that need a permission to open. * Disabled categories. * Items with limited stock or a per-player limit, since they run out. * Sell prices on items with a custom name, lore, enchantments or model data, unless they sell by material only, since a plain crafted item does not match them. Prices are only compared within one currency. A loop that buys in money and sells for gems is not reported. ## Loops From Sales and Boosters Prices are checked twice: as listed, and at the lowest buy and highest sell price anything below could give. A loop that only shows up the second time is listed too, with an **Only with** line naming what causes it. A loop that already shows at listed prices is not listed twice. | Effect | Counted when | | --- | --- | | [Category and shop sales](../main-features/categories/edit-category.md#sale) | Started and not ended, even outside its days or time window. The bigger of the two counts. | | [Price modifiers](../add-ons/sell-boosters/README.md#price-modifiers) | The Sell Boosters add-on is installed. The cheapest buy and the best sell of any group with a permission. | | [Sell boosters](../add-ons/sell-boosters/README.md) | Running and permission boosters that cover the item, combined by the add-on's stacking setting. | Everything found stacks the way it does at checkout. ## Reading a Loop Each loop shows the steps a player would take, then these details: <figure><img src="../.gitbook/assets/price-audit/reading-a-loop.png" alt="" width="563"><figcaption><p>Price Audit (Iron Block)</p></figcaption></figure> | Detail | Description | | --- | --- | | Severity | How bad the loop is, from the money back per run. | | Profit | What one run of the loop makes. | | Money Back | The profit as a share of what the player spent. | | Currency | The currency the loop runs in. | | Shop | The shop that pays too much for the final item. | | Fix | The sell price that closes the loop. | | Only with | What the loop needs, when it does not show at listed prices. | | Severity | Money back | | --- | --- | | Critical | 100% or more. Every run at least doubles the player's money. | | High | 25% or more. | | Low | Anything under 25%. | Loops are sorted by severity and profit together, so a loop that makes a lot per run comes before a cheap one with the same return. The **Filter Severity** button shows one severity at a time. ## Fixing a Loop Left-clicking a loop in the editor asks to set the final item's sell price to the suggested fix, rounded down so it lands just under what making the item costs. Confirming writes the new price straight into the shop. For an **Only with** loop the fix is worked out at the lowered buy prices, and sell multipliers are already taken out, so the boosted sell price still closes it. If the item was removed, or its sell price is already at or below the fix, nothing is written and you are told the audit is out of date. Fixes are also posted to the price change [Discord webhook](discord-webhooks.md). > **Info:** A fix lowers one sell price. Raising the buy price of an ingredient closes the same loop, and is sometimes the better choice when the final item is sold elsewhere too. For an **Only with** loop, changing the sale, modifier or booster behind it works as well. Source: https://www.phoenixplugins.com/docs/phoenix-shop/features/price-audit --- # 🧮 Price Generator > **Info:** The last 10 runs are saved in pricing.yml, so they can be undone. ## Price Generator Pricing hundreds of items by hand is slow and easy to get wrong. The price generator prices a shop, or one of its categories, for the kind of economy you want. Raw items such as logs, ores and mob drops have a built-in value, and everything crafted from them is worked out from its recipe. The prices it writes are built so no craft can be bought, made and sold back at a profit. <figure><img src="../.gitbook/assets/price-generator/price-generator.png" alt="" width="563"><figcaption><p>Editor (Price Generator)</p></figcaption></figure> Open it from **Editor > Price Generator**, or with `/pshop prices`. | Command | Permission | Description | | --- | --- | --- | | `/pshop prices` | phoenixshop.command.prices | Opens the price generator. | ## Shop and Category Pick the shop, then either **Whole Shop** or a single category. Only the items there are priced. <figure><img src="../.gitbook/assets/price-generator/shop-and-category.png" alt="" width="563"><figcaption><p>Price Generator (Whole Shop)</p></figcaption></figure> ## Economy How easy it is to make money on your server. Each choice shows what a diamond would cost and sell for. <figure><img src="../.gitbook/assets/price-generator/economy.png" alt="" width="563"><figcaption><p>Price Generator (Balanced)</p></figcaption></figure> | Economy | Prices | Selling pays | | --- | --- | --- | | OP | 20 times Balanced | 80% of the buy price | | Easy | Twice Balanced | 50% of the buy price | | Balanced | Diamond 250, iron ingot 21 | 25% of the buy price | | Hard | Same as Balanced | 10% of the buy price | Prices are rounded to a sensible step for their size, buy prices up and sell prices down, so rounding never opens a loop. ## Preview Lists every item that would change, with its current and new buy and sell price in the item's currency. Nothing is written until you apply. <figure><img src="../.gitbook/assets/price-generator/preview.png" alt="" width="563"><figcaption><p>Price Generator (Iron Ingot)</p></figcaption></figure> ## Apply Overrides the current prices with the ones in the preview, after a confirmation. Every changed price is posted to the price change [Discord webhook](discord-webhooks.md) ⭐. <figure><img src="../.gitbook/assets/price-generator/apply.png" alt="" width="563"><figcaption><p>Price Generator (Apply)</p></figcaption></figure> ## Undo Puts back the prices from the last run, and each press goes one run further back. A price changed by hand since that run is kept. <figure><img src="../.gitbook/assets/price-generator/undo.png" alt="" width="563"><figcaption><p>Price Generator (Undo)</p></figcaption></figure> ## What Is Priced - A price that is off stays off, so an item that is only sold keeps no buy price. An item with neither price gets both. - Items are priced by what they are, so a custom name, lore or model does not matter. Enchanted items, items from item plugins, items with purchase or sell commands, and items with more than one purchase item keep their price. - Items with no recipe and no built-in value, such as spawners and spawn eggs, keep their price. > **Info:** Run the [Price Audit](price-audit.md) after applying. A price you set by hand elsewhere can still leave a loop the generator did not create. Source: https://www.phoenixplugins.com/docs/phoenix-shop/features/price-generator --- # 📜 Purchase History & Undo ## Purchase History Every purchase and sale is stored in the plugin's database: who made it, in which shop, what item, how many, the price and the currency. The purchase history lets you browse all of it, on Lite too. The parts marked ⭐ need Premium, and show as locked on Lite. <figure><img src="../.gitbook/assets/purchase-history/purchase-history.png" alt="" width="563"><figcaption><p>Editor (Purchase History)</p></figcaption></figure> Open it from **Editor > Purchase History**, or with `/pshop history`. The editor first asks which trades to show, so each list stays short: | Type | Shows | | --- | --- | | Shops | Purchases and sales in the shop menus. | | Chest Shops | Trades at player and admin chest shops. Each row names the shop's owner, or its name, says whether the shop still exists and, while it does, where it is. Shift + left-click a row to teleport to that shop ⭐. | | Sign Shops | Purchases and sales on admin sign shops. | `/pshop history` shows shop menus and sign shops together. Trades at player shops are only listed under Chest Shops, and they are never counted in sales statistics or the daily summary, and never undone with `/pshop undo`. | Command | Permission | Description | | --- | --- | --- | | `/pshop history` | phoenixshop.command.history | Opens the history for everyone. | | `/pshop history <player>` | phoenixshop.command.history | Opens the history already filtered to one player. | | `/pshop history export [player] [shop]` ⭐ | phoenixshop.command.history | Writes the history to a CSV file. Use `*` as the player to export everyone. Works from the console. | The list shows the newest transactions first, each with the item, the amount, the price, the shop and how long ago it happened. The item and amount are what actually changed hands, so a sale shows the sell item rather than the shop icon. It refreshes by itself while open, so new transactions appear without reopening it. An undone transaction stays in the list, marked as undone. Clicking a transaction filters the list to the player who made it ⭐. ## Player ⭐ Shows only one player's transactions. Left-click and type the player's name, or leave it empty for everyone. Right-click clears it. Any player who has joined the server can be picked, online or not. <figure><img src="../.gitbook/assets/purchase-history/player.png" alt="" width="563"><figcaption><p>Purchase History (Player)</p></figcaption></figure> ## Filters ⭐ Narrows the list further. Right-click clears every filter except the player. <figure><img src="../.gitbook/assets/purchase-history/filters.png" alt="" width="563"><figcaption><p>Purchase History (Filters)</p></figcaption></figure> | Filter | Description | | --- | --- | | Shop | Only the transactions of one shop. Not offered for player shops. | | Item | Only one item. The list offers only items that appear in this history, in the chosen shop if one is picked. Changing the shop clears the item. | | Type | Only purchases, or only sales. | | Time | All time, the last hour, today, the last 7 days or the last 30 days. | ## Totals What the transactions in the list add up to: how many there were, how many items were bought and sold, and how much players spent and were paid, per currency. Undone transactions are left out. <figure><img src="../.gitbook/assets/purchase-history/totals.png" alt="" width="563"><figcaption><p>Purchase History (Totals)</p></figcaption></figure> ## Export ⭐ Writes every transaction matching the current player and filters to a CSV file in the exports folder, ready for a spreadsheet. The file name carries the filters and the time, so exports never overwrite each other. <figure><img src="../.gitbook/assets/purchase-history/export.png" alt="" width="563"><figcaption><p>Purchase History (Export)</p></figcaption></figure> The file has one row per transaction with these columns: time, player, shop, kind, item, lots, items, price, currency and undone. ## Undo ⭐ `/pshop undo` lets a player take back their own most recent transaction, a few seconds after a misclick. A purchase is returned for a refund, and a sale is bought back for the money it paid. The exact items and amount of money move back, so a sold tool returns with its wear and enchantments. | Command | Permission | Description | | --- | --- | --- | | `/pshop undo` | phoenixshop.undo | Reverses your last transaction. Given to everyone by default. | Undo is set in config.yml, and has no editor option. ```yaml undo: enabled: true window-seconds: 30 ``` | Option | Description | | --- | --- | | enabled | Turns `/pshop undo` on or off for everyone. | | window-seconds | How long after a transaction it can still be undone. | Running it again undoes the transaction before, as long as that one is still inside the window. Each transaction can only be undone once. An undo is refused, with nothing moved, when: * The player no longer carries exactly what they bought. A renamed, enchanted or partly used copy does not count. * The player no longer has the money a sale paid them. * The inventory has no room for the items a sale took. * The transaction's currency is not available right now. * The purchase only ran commands and gave no items. > **Info:** Undo only reads the main inventory and hotbar. Items that were bought into the off-hand have to be moved into the inventory first. Source: https://www.phoenixplugins.com/docs/phoenix-shop/features/purchase-history-and-undo --- # 📢 Restock & Sale Alerts > **Info:** This feature is only available with the Premium Plan. ## Who Is Alerted An alert goes to every online player who can open the shop and buy the item: the shop, its category and the item are enabled, the category is not hidden and is buying, the item is buyable and usable, and the player meets both the shop's and the category's conditions. The player also needs `phoenixshop.alerts`, given to everyone by default, and must not have turned alerts off. | Command | Permission | Description | | --- | --- | --- | | `/pshop alerts toggle` | phoenixshop.alerts | Turns your restock and sale alerts off or on. The choice is kept across relogs. | ## Restock Alerts Players are told when an item comes back: * **Restocked** - the item restocks on its own, with `/pshop stock restock`, or with `/pshop stock set` to more than 0. * **On sale again** - the item's [availability](../main-features/items/stock-and-restock.md#availability) opens, at its Available From time or when its sale window opens. An item restocked while its sale window is closed does not alert until the window opens, and a window that opens on an item with no stock left does not alert. Sale windows are checked every 20 seconds, and the first check after a start or a reload only notes which items are on sale, so it never alerts. Restock alerts can also be posted to Discord with the [restock-alert webhook](discord-webhooks.md#messages). ## Display Whether alerts are sent at all, and whether they show in chat, as a title or with a sound, is set in config.yml, see [Main Configuration](../configurations/main-configuration.md#restock-and-sale-alerts). The wording is the `restock-alerts` translations. Source: https://www.phoenixplugins.com/docs/phoenix-shop/features/restock-and-sale-alerts --- # 🔎 Search > **Info:** This feature is only available with the Premium Plan. ## Search `/pshop search` opens a menu listing every item across the shops the player can open. Typing terms narrows the list by name, and the results can be sorted. Clicking a result opens its category, on the page that holds it. When nothing matches, a barrier in the middle of the results says so. <figure><img src="../.gitbook/assets/search/search.png" alt="" width="563"><figcaption><p>Search</p></figcaption></figure> | Command | Permission | Description | | --- | --- | --- | | `/pshop search [terms]` | phoenixshop.search | Searches every shop by name. Without terms, lists everything. | | `/pshop search hand` | phoenixshop.search | Searches every shop for the item in the main hand. | Both are given to everyone by default. Bedrock players using forms get the results as a form. ## Search by Item Instead of a name, a search can look for one item. Vanilla items match by material, and also by the shop item's [selling rule](../main-features/items/edit-item.md#selling-rule). Items from other plugins, such as ItemsAdder, Nexo or MMOItems, match by their namespaced id. <figure><img src="../.gitbook/assets/search/search-by-item.png" alt="" width="563"><figcaption><p>Search (Search By Item)</p></figcaption></figure> There are two ways to set the item: * `/pshop search hand`, holding the item. * The **Search By Item** button of the search menu. Click it with an item on the cursor to search for that item, or with an empty cursor to clear the filter. The item stays on the cursor. When a name and an item are both set, a result has to match both. ## Excluded Shops Shops left out of the search results, by identifier. Case does not matter. It is set in config.yml, and has no editor option. ```yaml search: excluded-shops: [] ``` The layout of the menu is covered on [Customize Menus](../configurations/customize-menus.md#search-menu). Source: https://www.phoenixplugins.com/docs/phoenix-shop/features/search --- # 🔌 First Installation ## Installation 1. Download the jar from our website. 2. Install PhoenixShop-?.jar (or PhoenixShopLite-?.jar) into your "Plugins" folder. 3. Install an economy plugin for the currency you want to use, such as Vault with an economy provider. 4. Start your server. 5. Configure the plugin by yml file or by in-game editor `/pshop editor`. <figure><img src=".gitbook/assets/editor/editor.gif" alt="" width="563"><figcaption><p>The in-game editor</p></figcaption></figure> On the first start the plugin creates one shop, opened with `/shop`, with two example categories. > **Info:** Coming from another shop plugin? Your shops can be imported from **Editor > Migrations** instead of building them again. ## Add-on Installation 1. Download the add-ons you wish to install. 2. Drag and drop them into the `PhoenixShop\addons` folder. Add-ons need the Premium version. 3. Restart your server. > **Info:** We strongly advise using the latest STABLE build of the plugin, as it includes the most recent bug fixes. ## Version Support The plugin supports Spigot, any Spigot forks, Paper and any Paper forks. It should also work on any custom modded servers. > **Warning:** Folia is supported, but the support is still **experimental**. Test it on a staging server before putting it in front of your players, and report anything you run into. <table><thead><tr><th>Minecraft Version</th><th data-type="checkbox"></th></tr></thead><tbody><tr><td>26.x</td><td>true</td></tr><tr><td>1.21.x</td><td>true</td></tr><tr><td>1.20.4 - 1.20.6</td><td>true</td></tr><tr><td>1.20.3 and older</td><td>false</td></tr></tbody></table> Bedrock players joining through GeyserMC get Bedrock forms instead of chest menus when Floodgate or Geyser is installed. Source: https://www.phoenixplugins.com/docs/phoenix-shop/first-installation --- # 🪧 Admin Signs > **Info:** Lite holds up to 20 admin signs across the server, and Premium has no limit. Signs made on Premium beyond that keep working after a downgrade. > **Info:** Signs are kept in the plugin's database, one record per identifier. An old admin\_signs folder is moved there on first start and renamed admin\_signs.migrated. The text all signs share is in the sign-shops section of settings.yml. ## Information An admin sign is a server-owned sign linked to one item of one of your shops. Clicking it buys or sells that item without opening a menu. It trades exactly as the shop does: the same prices, currency, stock, purchase limits and requirements apply, and it sends the same messages. <figure><img src="../../.gitbook/assets/sign-shops/sign-shops.png" alt="" width="563"><figcaption><p>Editor (Sign Shops)</p></figcaption></figure> Unlike a [player shop](../player-shops/), it needs no container and the server supplies the items. ## Create a Sign Write \[pshop] on the first line of a sign and click Done, anywhere, on a container or not. An [admin chest shop](../player-shops/README.md#admin-shops) is made by left-clicking a container instead. This needs `phoenixshop.sign.admin`. The sign shows as not linked and its editor opens straight away, with a Status button listing what is still missing. Pick the shop, the category and the item, and click Status once everything is ticked. See [Edit Sign](#edit-sign). <figure><img src="../../.gitbook/assets/sign-shops/create-a-sign.png" alt="" width="563"><figcaption><p>Sign Shops (Create Sign)</p></figcaption></figure> To edit a sign later, look at it and run `/pshop editshop`, or open it from the sign list. Only a player with `phoenixshop.sign.admin` can break an admin sign. Breaking it deletes the sign. ## Using a Sign | Click | Buy sign | Sell sign | Buy & Sell sign | | --- | --- | --- | --- | | Right-Click | Buys | Nothing | Buys | | Left-Click | Nothing | Sells | Sells | A plain click moves the sign's [Amount](#amount). A sneaking click runs the sign's own [shift-click action](#shift-left-click) instead, such as buying a stack or selling everything. When that action is Nothing, or buys on a sell-only sign or sells on a buy-only sign, the sneaking click falls back to the plain click. After a purchase, the player is told how much stock is left and how many more they may buy, when the item has either limit. ## Sign Shops List **Editor > Sign Shops** lists every admin sign, with its mode, shop, category, item, the buy and sell price it trades at, and its location. A sign whose shop, category or item no longer exists is marked as not linked. <figure><img src="../../.gitbook/assets/sign-shops/sign-shops-list.png" alt="" width="563"><figcaption><p>Sign Shops (New Sign)</p></figcaption></figure> Left-click a sign to edit it, shift + left-click to teleport to it, and right-click to delete it after a confirmation. Turn on Reordering to sort the list: click a sign, then click the one it should swap places with. ## Edit Sign > **Info:** Every change is saved to the sign's file and redrawn on the sign as you make it. There is no save button. ### Identifier The unique id of the sign, and the name of its file. A new sign gets a generated one such as `sign_4821`. Only letters, numbers, `-` and `_` are allowed, and two signs cannot share one. Renaming renames the file. <figure><img src="../../.gitbook/assets/edit-sign/identifier.png" alt="" width="563"><figcaption><p>Sign Shop (Identifier)</p></figcaption></figure> ### Display Opens the sign's icon and display name. Both are only used in the [Sign Shops list](#sign-shops-list), so staff can tell signs apart. They do not change what the sign shows in the world. <figure><img src="../../.gitbook/assets/edit-sign/display.png" alt="" width="563"><figcaption><p>Sign Shop (Display)</p></figcaption></figure> ### Permission Requirement Restricts the sign to players with a permission. When it is off, anyone can use the sign. When it is on and no node is typed, the node is `phoenixshop.signs.use.<shop>`, named after the linked shop. `phoenixshop.signs.use.*` opens every sign. <figure><img src="../../.gitbook/assets/edit-sign/permission-requirement.png" alt="" width="563"><figcaption><p>Sign Shop (Permission Requirement)</p></figcaption></figure> ### Shop The shop the sign trades from, picked from a list. Changing it clears the category and the item. <figure><img src="../../.gitbook/assets/edit-sign/shop.png" alt="" width="563"><figcaption><p>Sign Shop (Shop)</p></figcaption></figure> ### Category The category of the item, picked from the chosen shop. Changing it clears the item. <figure><img src="../../.gitbook/assets/edit-sign/category.png" alt="" width="563"><figcaption><p>Sign Shop (Category)</p></figcaption></figure> ### Item The item the sign trades, picked from the chosen category. The sign stores the item's identifier, so reordering the category does not repoint it. <figure><img src="../../.gitbook/assets/edit-sign/item.png" alt="" width="563"><figcaption><p>Sign Shop (Item)</p></figcaption></figure> > **Warning:** Renaming or deleting the shop, category or item leaves the sign not linked. It shows the not-linked text and refuses every click until it is linked again. ### Mode Whether the sign buys, sells or both. A mode the item has no price for is marked as missing its buy or sell price and cannot be chosen. When the item changes and the current mode no longer fits, the sign switches to one that does. <figure><img src="../../.gitbook/assets/edit-sign/mode.png" alt="" width="563"><figcaption><p>Sign Shop (Mode)</p></figcaption></figure> ### Amount How many lots one plain click moves. A lot is the item's own amount, so an item sold in 16s with an Amount of 2 moves 32. The most allowed is one full stack of the item, and the value is lowered on its own when the item changes. It can only be set once an item is picked. <figure><img src="../../.gitbook/assets/edit-sign/amount.png" alt="" width="563"><figcaption><p>Sign Shop (Amount)</p></figcaption></figure> ### Shift + Left Click What a sneaking left-click does. By default it sells a stack. <figure><img src="../../.gitbook/assets/edit-sign/shift-left-click.png" alt="" width="563"><figcaption><p>Sign Shop (Shift + Left Click)</p></figcaption></figure> ### Shift + Right Click What a sneaking right-click does. By default it buys a stack. <figure><img src="../../.gitbook/assets/edit-sign/shift-right-click.png" alt="" width="563"><figcaption><p>Sign Shop (Shift + Right Click)</p></figcaption></figure> Both shift-click options offer the same choices, and each choice needs its own permission on top of the sign's. | Choice | Does | Permission | | --- | --- | --- | | Nothing | Falls back to the plain click. | None | | Buy a Stack | Buys one full stack of the item. | `phoenixshop.signs.buy-stack` | | Sell a Stack | Sells up to one full stack from the inventory. | `phoenixshop.signs.sell-stack` | | Fill Inventory | Buys as many as fit in the inventory and the player can afford. | `phoenixshop.signs.buy-inventory` | | Sell Everything | Sells every matching item in the inventory. | `phoenixshop.signs.sell-all` | ### Copy Settings Copies the shop, category, item, mode, amount, permission and both shift-click actions of another sign onto this one. The identifier and display stay as they are. It is the fastest way to put up a row of signs for the same item. <figure><img src="../../.gitbook/assets/edit-sign/copy-settings.png" alt="" width="563"><figcaption><p>Sign Shop (Copy Settings)</p></figcaption></figure> ### Delete Sign Deletes the sign after a confirmation. The sign block stays in the world, blank, and its file is removed. <figure><img src="../../.gitbook/assets/edit-sign/delete-sign.png" alt="" width="563"><figcaption><p>Sign Shop (Delete Sign)</p></figcaption></figure> > **Danger:** This option is permanent, and signs can't be restored. ### Status Only shown while setting up a sign that was just placed. It lists what the sign still needs: a shop, a category, an item, and a mode the item has a price for. Once every line is ticked, click it to close the editor. ## Sign Text > **Info:** The sign text is set in the sign-shops section of settings.yml. It has no editor option, and `/pshop reload` applies a change to every sign. ### Lines Every admin sign is drawn from the four-line template of its mode. Changing a template restyles every sign that uses it at once. ```yaml sign-shops: lines: buy: - '&5&l[Shop]' - '&0%item% &fx%amount%' - '&cBuy %buy_price%' - '' sell: - '&5&l[Shop]' - '&0%item% &fx%amount%' - '&aSell %sell_price%' - '' both: - '&5&l[Shop]' - '&0%item% &fx%amount%' - '&cBuy %buy_price%' - '&aSell %sell_price%' not-linked: - '&5&l[Shop]' - '&4Not Linked' - '&8%id%' - '&8Ask an Admin' ``` A sign whose shop, category or item is missing uses not-linked, so a broken sign is obvious in the world. ### Placeholders | Placeholder | Description | | --- | --- | | %id% | The identifier of the sign. | | %name% | The display name of the sign. | | %shop% | The display name of the linked shop. | | %category% | The display name of the linked category. | | %item% | The name of the linked item. | | %amount% | How many items one click moves. | | %buy\_price% | The price of one click when buying. | | %sell\_price% | The price of one click when selling. | | %stock% | The stock left of the item. | | %mode% | The mode of the sign. | A value that does not apply, such as the buy price of an item that cannot be bought, shows as `-`. Unlimited stock shows as `∞`. ### Redrawing Signs are redrawn when a shop is edited, when prices change, when an item restocks and when the chunk they are in loads. After a transaction, only signs of that item are redrawn, and only when a template uses %stock%. A sign whose block has been destroyed, by a player, an explosion, fire or a piston, is removed on its own and the removal is logged in the console. ## Settings > **Info:** These options are in **Editor > Sign Shops > Settings** and are saved to the sign-shops section of settings.yml. They apply to every admin sign at once. ### Sign Shops Turns [player shops](../player-shops/README.md) on or off. It does not affect admin signs. See [Player Shops Settings](../player-shops/settings.md#enabled). <figure><img src="../../.gitbook/assets/sign-shop-settings/sign-shops.png" alt="" width="563"><figcaption><p>Sign Shops</p></figcaption></figure> ### Click Cooldown How many milliseconds a player waits between two transactions on admin signs. Clicks inside the cooldown are ignored without a message, which stops a held mouse button from buying dozens of times. The cooldown is per player and shared by every sign. The default is 250, the most is 5000, and 0 turns it off. <figure><img src="../../.gitbook/assets/sign-shop-settings/click-cooldown.png" alt="" width="563"><figcaption><p>Sign Shops (Click Cooldown)</p></figcaption></figure> ### Transaction Sound The sound played when a sign transaction goes through, written as a sound key such as `minecraft:entity.experience_orb.pickup`. Type `none` to play nothing. <figure><img src="../../.gitbook/assets/sign-shop-settings/transaction-sound.png" alt="" width="563"><figcaption><p>Sign Shops (Transaction Sound)</p></figcaption></figure> ### Refused Sound The sound played when a sign transaction is refused, for example for lack of money or room. Type `none` to play nothing. <figure><img src="../../.gitbook/assets/sign-shop-settings/refused-sound.png" alt="" width="563"><figcaption><p>Sign Shops (Refused Sound)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/admin-signs --- # ✏️ Edit Sign > **Info:** Every change is saved to the sign's file and redrawn on the sign as you make it. There is no save button. ## Identifier The unique id of the sign, and the name of its file. A new sign gets a generated one such as `sign_4821`. Only letters, numbers, `-` and `_` are allowed, and two signs cannot share one. Renaming renames the file. <figure><img src="../../.gitbook/assets/edit-sign/identifier.png" alt="" width="563"><figcaption><p>Sign Shop (Identifier)</p></figcaption></figure> ## Display Opens the sign's icon and display name. Both are only used in the [Sign Shops list](./#sign-shops-list), so staff can tell signs apart. They do not change what the sign shows in the world. <figure><img src="../../.gitbook/assets/edit-sign/display.png" alt="" width="563"><figcaption><p>Sign Shop (Display)</p></figcaption></figure> ## Permission Requirement Restricts the sign to players with a permission. When it is off, anyone can use the sign. When it is on and no node is typed, the node is `phoenixshop.signs.use.<shop>`, named after the linked shop. `phoenixshop.signs.use.*` opens every sign. <figure><img src="../../.gitbook/assets/edit-sign/permission-requirement.png" alt="" width="563"><figcaption><p>Sign Shop (Permission Requirement)</p></figcaption></figure> ## Shop The shop the sign trades from, picked from a list. Changing it clears the category and the item. <figure><img src="../../.gitbook/assets/edit-sign/shop.png" alt="" width="563"><figcaption><p>Sign Shop (Shop)</p></figcaption></figure> ## Category The category of the item, picked from the chosen shop. Changing it clears the item. <figure><img src="../../.gitbook/assets/edit-sign/category.png" alt="" width="563"><figcaption><p>Sign Shop (Category)</p></figcaption></figure> ## Item The item the sign trades, picked from the chosen category. The sign stores the item's identifier, so reordering the category does not repoint it. <figure><img src="../../.gitbook/assets/edit-sign/item.png" alt="" width="563"><figcaption><p>Sign Shop (Item)</p></figcaption></figure> > **Warning:** Renaming or deleting the shop, category or item leaves the sign not linked. It shows the not-linked text and refuses every click until it is linked again. ## Mode Whether the sign buys, sells or both. A mode the item has no price for is marked as missing its buy or sell price and cannot be chosen. When the item changes and the current mode no longer fits, the sign switches to one that does. <figure><img src="../../.gitbook/assets/edit-sign/mode.png" alt="" width="563"><figcaption><p>Sign Shop (Mode)</p></figcaption></figure> ## Amount How many lots one plain click moves. A lot is the item's own amount, so an item sold in 16s with an Amount of 2 moves 32. The most allowed is one full stack of the item, and the value is lowered on its own when the item changes. It can only be set once an item is picked. <figure><img src="../../.gitbook/assets/edit-sign/amount.png" alt="" width="563"><figcaption><p>Sign Shop (Amount)</p></figcaption></figure> ## Shift + Left Click What a sneaking left-click does. By default it sells a stack. <figure><img src="../../.gitbook/assets/edit-sign/shift-left-click.png" alt="" width="563"><figcaption><p>Sign Shop (Shift + Left Click)</p></figcaption></figure> ## Shift + Right Click What a sneaking right-click does. By default it buys a stack. <figure><img src="../../.gitbook/assets/edit-sign/shift-right-click.png" alt="" width="563"><figcaption><p>Sign Shop (Shift + Right Click)</p></figcaption></figure> Both shift-click options offer the same choices, and each choice needs its own permission on top of the sign's. | Choice | Does | Permission | | --- | --- | --- | | Nothing | Falls back to the plain click. | None | | Buy a Stack | Buys one full stack of the item. | `phoenixshop.signs.buy-stack` | | Sell a Stack | Sells up to one full stack from the inventory. | `phoenixshop.signs.sell-stack` | | Fill Inventory | Buys as many as fit in the inventory and the player can afford. | `phoenixshop.signs.buy-inventory` | | Sell Everything | Sells every matching item in the inventory. | `phoenixshop.signs.sell-all` | ## Copy Settings Copies the shop, category, item, mode, amount, permission and both shift-click actions of another sign onto this one. The identifier and display stay as they are. It is the fastest way to put up a row of signs for the same item. <figure><img src="../../.gitbook/assets/edit-sign/copy-settings.png" alt="" width="563"><figcaption><p>Sign Shop (Copy Settings)</p></figcaption></figure> ## Delete Sign Deletes the sign after a confirmation. The sign block stays in the world, blank, and its file is removed. <figure><img src="../../.gitbook/assets/edit-sign/delete-sign.png" alt="" width="563"><figcaption><p>Sign Shop (Delete Sign)</p></figcaption></figure> > **Danger:** This option is permanent, and signs can't be restored. ## Status Only shown while setting up a sign that was just placed. It lists what the sign still needs: a shop, a category, an item, and a mode the item has a price for. Once every line is ticked, click it to close the editor. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/admin-signs/edit-sign --- # ⚙️ Settings > **Info:** These options are in **Editor > Settings > Sign Shops** and are saved to the sign-shops section of settings.yml. They apply to every admin sign at once. ## Sign Shops Turns [player shops](../player-shops/) on or off. It does not affect admin signs. See [Player Shops Settings](../player-shops/settings.md#enabled). <figure><img src="../../.gitbook/assets/sign-shop-settings/sign-shops.png" alt="" width="563"><figcaption><p>Sign Shops</p></figcaption></figure> ## Click Cooldown How many milliseconds a player waits between two transactions on admin signs. Clicks inside the cooldown are ignored without a message, which stops a held mouse button from buying dozens of times. The cooldown is per player and shared by every sign. The default is 250, the most is 5000, and 0 turns it off. <figure><img src="../../.gitbook/assets/sign-shop-settings/click-cooldown.png" alt="" width="563"><figcaption><p>Sign Shops (Click Cooldown)</p></figcaption></figure> ## Transaction Sound The sound played when a sign transaction goes through, written as a sound key such as `minecraft:entity.experience_orb.pickup`. Type `none` to play nothing. <figure><img src="../../.gitbook/assets/sign-shop-settings/transaction-sound.png" alt="" width="563"><figcaption><p>Sign Shops (Transaction Sound)</p></figcaption></figure> ## Refused Sound The sound played when a sign transaction is refused, for example for lack of money or room. Type `none` to play nothing. <figure><img src="../../.gitbook/assets/sign-shop-settings/refused-sound.png" alt="" width="563"><figcaption><p>Sign Shops (Refused Sound)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/admin-signs/settings --- # 📝 Sign Text > **Info:** The sign text is set in the sign-shops section of settings.yml. It has no editor option, and `/pshop reload` applies a change to every sign. ## Lines Every admin sign is drawn from the four-line template of its mode. Changing a template restyles every sign that uses it at once. ```yaml sign-shops: lines: buy: - '&5&l[Shop]' - '&0%item% &fx%amount%' - '&cBuy %buy_price%' - '' sell: - '&5&l[Shop]' - '&0%item% &fx%amount%' - '&aSell %sell_price%' - '' both: - '&5&l[Shop]' - '&0%item% &fx%amount%' - '&cBuy %buy_price%' - '&aSell %sell_price%' not-linked: - '&5&l[Shop]' - '&4Not Linked' - '&8%id%' - '&8Ask an Admin' ``` A sign whose shop, category or item is missing uses not-linked, so a broken sign is obvious in the world. ## Placeholders | Placeholder | Description | | --- | --- | | %id% | The identifier of the sign. | | %name% | The display name of the sign. | | %shop% | The display name of the linked shop. | | %category% | The display name of the linked category. | | %item% | The name of the linked item. | | %amount% | How many items one click moves. | | %buy\_price% | The price of one click when buying. | | %sell\_price% | The price of one click when selling. | | %stock% | The stock left of the item. | | %mode% | The mode of the sign. | A value that does not apply, such as the buy price of an item that cannot be bought, shows as `-`. Unlimited stock shows as `∞`. ## Redrawing Signs are redrawn when a shop is edited, when prices change, when an item restocks and when the chunk they are in loads. After a transaction, only signs of that item are redrawn, and only when a template uses %stock%. A sign whose block has been destroyed, by a player, an explosion, fire or a piston, is removed on its own and the removal is logged in the console. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/admin-signs/sign-text --- # 🗂️ Categories > **Info:** Every category is its own file inside the shop's folder in shops, named after the category's identifier. ## Add a Category Left-click the lime stained glass in **Editor > Shops > Shop > Categories** to create a category. It gets the next free `category_<number>` identifier and its editor opens straight away. <figure><img src="../../.gitbook/assets/categories/categories.png" alt="" width="563"><figcaption><p>Edit Shop (Categories)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/categories/add-a-category.png" alt="" width="563"><figcaption><p>Categories (New Category)</p></figcaption></figure> Every category in the list shows its icon, display name and identifier, how many items it holds and whether it is enabled. Left-click one to edit it, right-click it to delete it, together with its items, after a confirmation. The Filter button narrows the list to enabled categories, disabled categories, categories on the main menu, hidden categories or subcategories. ## Order Categories fill the category slots of the shop's main menu by their order number, lowest first, and by identifier when two share the same number. The same order sorts sub-categories inside their parent. Disabled, [hidden](edit-category.md#hidden) and [sub-categories](edit-category.md#parent-category) are skipped. There is no editor option for it, so it is set in the category's file, and a new category starts at 0. ```yaml order: 1 ``` > **Info:** When a shop has more categories than its main menu has category slots, the rest go on further pages. Without page buttons in the layout they are hidden, and the console says so. ## Navigation | Features | Description | | --- | --- | | [Identifier](edit-category.md#identifier) | The unique id of the category and the name of its file. | | [Display](edit-category.md#display) | The title, icon and lore of the category. | | [Currency](edit-category.md#currency) | Override the shop's currency and its format for this category. | | [Open Command](edit-category.md#open-command) | A command that opens the category directly. | | [Hidden](edit-category.md#hidden) | Keep the category out of the main menu and search. | | [Parent Category](edit-category.md#parent-category) | Show the category inside another one. | | [Items](../items/) | The items of the category. | | [Actions](edit-category.md#actions) | Actions run when the category is opened or closed. | | [Conditions](edit-category.md#conditions) | Who can open the category and trade in it. | | [Rotation](edit-category.md#rotation) | Show only some of the items at a time. | | [Sale](edit-category.md#sale) | A discount on every item of the category. | | [Buying](edit-category.md#buying) | Allow or block buying from the category. | | [Selling](edit-category.md#selling) | Allow or block selling to the category. | | [Enabled](edit-category.md#enabled) | Show or hide the category. | | [Delete](edit-category.md#delete) | Delete the category and its items. | Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/categories --- # ✏️ Edit Category > **Info:** Every option on this page is saved to the category's own file inside the shop's folder in shops. Trading, Sale and Actions are grouped under **Trading & Actions**. Every other option is on the category editor itself. The back button returns to the category list. ## Identifier The unique id of the category inside its shop, and the name of its file. Spaces are not allowed, and two categories of the same shop cannot share one. <figure><img src="../../.gitbook/assets/categories/identifier.png" alt="" width="563"><figcaption><p>Edit Category (Identifier)</p></figcaption></figure> > **Danger:** Stock counts are stored against the category's identifier. Changing it starts the stock of every item in the category over. ## Display The icon of this option is the category's own icon. Clicking it opens the two settings that decide how the category looks in the shop's main menu. <figure><img src="../../.gitbook/assets/categories/display.png" alt="" width="563"><figcaption><p>Edit Category (Display)</p></figcaption></figure> ### Icon Drop an item on the slot to use it as the category's icon. <figure><img src="../../.gitbook/assets/categories/icon.png" alt="" width="563"><figcaption><p>Display (Icon)</p></figcaption></figure> ### Display Name The title of the category, shown on its icon in the main menu. Color codes are supported. It cannot be empty. <figure><img src="../../.gitbook/assets/categories/display-name.png" alt="" width="563"><figcaption><p>Display (Display Name)</p></figcaption></figure> ### Lore The lines shown under the category's name in the main menu, wherever `%category_lore%` is used. When set, it overrides the lore of the icon item. Left empty, the icon item's own lore is used. <figure><img src="../../.gitbook/assets/categories/lore.png" alt="" width="563"><figcaption><p>Display (Lore)</p></figcaption></figure> ## Currency Prices every item of this category in another currency than the shop's. Items that set their own currency still use theirs. Left-click swaps between the currency types, starting at the shop's own, and right-click opens the chosen type to pick the currency. The types are listed on [Currencies](../currencies/). <figure><img src="../../.gitbook/assets/categories/currency.png" alt="" width="563"><figcaption><p>Edit Category (Currency)</p></figcaption></figure> > **Info:** This feature is only available with the Premium Plan. ### Currency Format How the prices of this category are written, with the same patterns as the [shop's format](../shops/edit-shop.md#currency-format). It is set from the right-click menu of the Currency option, also while the category keeps the shop's currency. Left empty, the shop's format is used. Items that set their own currency keep the shop's format. ## Open Command A command of its own that opens this category directly, without the slash. Leave it empty for no command. It works like the [shop's open command](../shops/edit-shop.md#open-command): adding a player's name opens it for them, and a command another plugin, shop or category already uses is skipped and the console says so. <figure><img src="../../.gitbook/assets/categories/open-command.png" alt="" width="563"><figcaption><p>Edit Category (Open Command)</p></figcaption></figure> The shop's and the category's conditions are checked as on a normal opening, and a disabled category does not open. A hidden category still opens. The back button leads to the parent category, or to the shop's main menu. ## Hidden A hidden category is left out of the shop's main menu and of search results, but stays reachable through its open command, `/pshop open`, the [CATEGORY action](../../plugin-information/action-types.md#open-a-category) and its parent category. <figure><img src="../../.gitbook/assets/categories/hidden.png" alt="" width="563"><figcaption><p>Edit Category (Hidden)</p></figcaption></figure> ## Parent Category Places this category inside another category of the same shop instead of the main menu. Sub-categories are shown with their icon, name and lore at the start of the parent's item list, ordered by their [order](README.md#order), and share its pages. Their back button returns to the parent, and they can be nested to any depth. <figure><img src="../../.gitbook/assets/categories/parent-category.png" alt="" width="563"><figcaption><p>Edit Category (Parent Category)</p></figcaption></figure> The list only offers categories that would not make this one its own ancestor. A file that sets such a parent, or one that does not exist, is shown at the top level and the console says so. Deleting a category moves its sub-categories to the top level. ## Items Opens the items of this category. The option shows how many there are. See [Items](../items/). <figure><img src="../../.gitbook/assets/categories/items.png" alt="" width="563"><figcaption><p>Edit Category (Items)</p></figcaption></figure> ## Actions Lists of actions run at moments in this category, such as a message, a sound, a title or a command: Open and Close, Buy and Sell when a purchase or sale goes through, Deny when one is refused, Click when an item is clicked, and Previous Page and Next Page. In Buy, Sell and Deny, `%item%`, `%amount%`, `%price%`, `%currency%` and `%balance%` are filled in. <figure><img src="../../.gitbook/assets/categories/actions.png" alt="" width="563"><figcaption><p>Trading (Actions)</p></figcaption></figure> Open runs when the player enters the category and Close when they leave it: closing the menu, going back, logging out or opening another category, a subcategory included. The buy, sell, bulk, confirm and preview screens of its items count as inside the category, so going into one and back runs neither. Buy, Sell, Deny, Click and the page lists replace the shop's matching [actions](../shops/edit-shop.md#actions) for this category. Leave one empty to keep the shop's. > **Info:** This feature is only available with the Premium Plan. ## Click Mappings What each click does on this category's items, such as Shift + Right-Click selling everything. Each click can be left on Default, which uses the global [click mappings](../../configurations/main-configuration.md#click-mappings), or set to its own action. <figure><img src="../../.gitbook/assets/categories/click-mappings.png" alt="" width="563"><figcaption><p>Edit Category (Click Mappings)</p></figcaption></figure> ## Conditions Who can open this category and buy or sell in it, with the same checks as the [shop's conditions](../shops/edit-shop.md#conditions). A player who fails them gets the deny actions of the failed checks, or a message when there are none, whether they come from the main menu, search, a quick buy or sell command, a sign, a stand or an NPC. `/sell` and the other sell-everything features skip the category for them. <figure><img src="../../.gitbook/assets/categories/conditions.png" alt="" width="563"><figcaption><p>Edit Category (Conditions)</p></figcaption></figure> In the main menu a locked category is either shown with a locked line under its lore or hidden, depending on [Locked Categories](../../configurations/settings-file.md#locked-categories). > **Info:** This feature is only available with the Premium Plan. ## Rotation Makes this category show only some of its items at a time, picked again on a schedule. Turn **Rotating** on to start it, then set the [rotation settings](../../add-ons/rotating-shop/#settings). Turning it off shows every item again and forgets the settings. Needs the [Rotating Shop](../../add-ons/rotating-shop/) add-on. ## Trading Turns Buying and Selling on or off for this category, each ticked in the list. Right-click the highlighted one to switch it. <figure><img src="../../.gitbook/assets/categories/trading.png" alt="" width="563"><figcaption><p>Trading</p></figcaption></figure> ### Buying Turned off, nothing in this category can be bought anywhere: menus, quick buy commands, signs, stands and NPC trades all refuse, and the buy lines and buy click hints disappear from the items. ### Selling Turned off, nothing in this category can be sold anywhere: menus, quick sell commands, `/sell`, sell-all, sell wands, AutoSell, signs and stands all skip or refuse it, and the sell lines and sell click hints disappear from the items. ## Sale Takes a percentage off the buy price of every item in the category. The discount goes through the same price pipeline as [price modifiers](../../add-ons/sell-boosters/README.md#price-modifiers) and stacks with them, so the struck-through price and every price placeholder stay correct. While this category has no running sale of its own, a [shop-wide sale](../shops/edit-shop.md#sale) applies to it. <figure><img src="../../.gitbook/assets/categories/sale.png" alt="" width="563"><figcaption><p>Trading (Sale)</p></figcaption></figure> The `%sale%` badge shows on discounted items and on the category's icon in the main menu while the sale runs. Under it, the icon counts down every second to the moment the discount stops: Ends, or the end of its day or time window, whichever comes first. | Option | Description | | --- | --- | | Starts | When the sale starts. Not set starts it right away. | | Ends | When the sale ends. Not set keeps it running. | | Days | The days of the week it runs on. No day picked runs it every day. | | Time Window | The time of day it runs between. An end before the start runs past midnight, so 22:00 to 02:00 is a night sale. Not set runs it all day. | All four have to match for the discount to apply. Times use the server's clock and time zone. ### Start and Stop Nothing on the Sale screen reaches players until **Start Sale** is clicked, so a sale can be set up in full before it goes live. Starting needs a discount above 0, and setting the discount back to 0 stops the sale. **Stop Sale** ends it at once and keeps every setting for the next start. The button, and the Sale button one screen up, show where the sale stands: <figure><img src="../../.gitbook/assets/categories/start-and-stop.png" alt="" width="563"><figcaption><p>Sale (Start Sale)</p></figcaption></figure> | Status | Meaning | | --- | --- | | Not started | The sale is stopped. | | Starts in | Started, but before Starts or outside its Days and Time Window. Counts down to the next moment the discount applies, with its date. | | Running | The discount applies right now. The Sale button one screen up counts down the time left instead. | | No end | Running with no Ends, Days or Time Window to stop it. | | Ended | Ends has passed, or no later moment matches. Move Ends or clear it to run the sale again. | A sale saved before this button existed with a discount above 0 is started once on load, so it keeps running after an update. ### Date and Time Pickers Starts and Ends open a date picker with a button each for year, month, day, hour and minute. Left-click adds 1 and right-click takes 1 away; with shift held they move by 10 years, 6 months, 7 days, 6 hours or 5 minutes. Each part wraps around on its own, and the day is kept inside the length of the month, leap years included. **Now** picks the current server time, **Clear** removes the date, **Confirm** saves it and the back button leaves without saving. <figure><img src="../../.gitbook/assets/categories/date-and-time-pickers.png" alt="" width="563"><figcaption><p>Starts (Year)</p></figcaption></figure> Time Window opens a screen with a Start and an End time picker, which work the same way with hour and minute only, and is saved once both are set. Days opens seven day toggles with buttons to turn every day on or off. Right-click on any of these fields to type the value instead, as `2026-10-25 18:00`, `18:00-22:00` or `SATURDAY, SUNDAY`. > **Info:** This feature is only available with the Premium Plan. ## Enabled A disabled category keeps its items but is hidden from the shop's main menu and its parent category, cannot be opened by command or action, and nothing in it can be bought or sold: `/sell`, sell wands, AutoSell and sign shops all skip it. <figure><img src="../../.gitbook/assets/categories/enabled.png" alt="" width="563"><figcaption><p>Edit Category (Enabled)</p></figcaption></figure> ## Delete Deletes the category together with its file and all of its items, after a confirmation. <figure><img src="../../.gitbook/assets/categories/delete.png" alt="" width="563"><figcaption><p>Edit Category (Delete)</p></figcaption></figure> > **Danger:** This option is permanent, and categories can't be restored. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/categories/edit-category --- # 💰 Currencies > **Info:** A currency is saved on the shop, category or item that uses it, in the shop's own files in the shops folder. Every price in the plugin is paid in a currency. A shop always has one, and a category or an item can set its own on Premium. Whatever does not set one uses the one above it: an item falls back to its category, and a category to its shop. <figure><img src="../../.gitbook/assets/currencies/currencies.png" alt="" width="563"><figcaption><p>Settings (Currencies)</p></figcaption></figure> | Type | Needs | Edition | Section | | --- | --- | --- | --- | | Vault | Vault and an economy plugin such as EssentialsX | Lite | [Economy Plugins](#vault) | | PlayerPoints | PlayerPoints | Lite | [Economy Plugins](#playerpoints) | | VotingPlugin | VotingPlugin | Lite | [Economy Plugins](#votingplugin) | | ExcellentEconomy | ExcellentEconomy | Lite | [Economy Plugins](#excellenteconomy) | | PhoenixCurrencies | PhoenixCurrencies | Lite | [Economy Plugins](#phoenixcurrencies) | | Experience | Nothing | Lite | [Experience](#experience) | | PlaceholderAPI | PlaceholderAPI | Premium | [Placeholder Currencies](placeholder-currencies.md) | | Item | Nothing | Premium | [Item Currencies](#item-currencies) | A type whose plugin is not installed, or that needs Premium on Lite, is skipped when you swap through the types in the editor. ## In the Shop File The currency is a block with its type on the shop, the category or the item. A category or item without a block uses the one above it. ```yaml currency: type: EXCELLENTECONOMY identifier: gems ``` The type is one of `VAULT`, `PLAYERPOINTS`, `VOTINGPLUGIN`, `EXCELLENTECONOMY`, `PHOENIXCURRENCIES`, `EXPERIENCE`, `PLACEHOLDER` or `ITEM`. ExcellentEconomy, PhoenixCurrencies, Placeholder and Item also take an identifier naming which currency of that type to use, and Placeholder and Item currencies are written out in full in the same block, shown on [Placeholder Currencies](placeholder-currencies.md#in-the-shop-file) and under [Item Currency in the Shop File](#item-currency-in-the-shop-file). ## When a Plugin Is Missing A shop priced in a currency the server cannot pay in does not open, and tells the player which plugin is missing. An item priced in such a currency is hidden from its shop until the plugin is installed, and `/sell` skips it. ## Whole Numbers and Decimals Vault, Placeholder and decimal ExcellentEconomy currencies accept decimal prices. Vault rounds them to the cent, up when the player pays and down when the player is paid, so a total of `2.005` costs `2.01` and pays `2.00`. PlayerPoints, VotingPlugin, Experience, Item and whole-number ExcellentEconomy currencies are whole numbers only: a decimal price is rounded up when the player pays and rounded down when the player is paid, so `2.5` costs `3` and pays `2`. A PhoenixCurrencies currency is rounded the same way to the number of decimals it is set to. The rounded amount is the one named in the transaction message, stored in the history and moved back by undo. ## Currencies Screen **Editor > Settings > Currencies** lists every currency the server knows, with the plugin behind it and whether that plugin is installed. Placeholder currencies can be created, edited and deleted from here. The other types are built in and only listed. <figure><img src="../../.gitbook/assets/currencies/currencies-screen.png" alt="" width="563"><figcaption><p>Currencies (Money)</p></figcaption></figure> ## Economy Plugins These currencies hand the balance over to another plugin. The plugin has to be installed and enabled before its type can be picked, and a shop priced in one that goes missing stops opening until it is back. <figure><img src="../../.gitbook/assets/economy-plugins/economy-plugins.png" alt="" width="563"><figcaption><p>Edit Shop (Currency)</p></figcaption></figure> ### Vault The server's main money, through [Vault](https://www.spigotmc.org/resources/vault.34315/). Vault holds no money by itself, so an economy plugin such as EssentialsX has to be installed alongside it. New shops are priced in Vault. Vault does not run on Folia. Install [VaultUnlocked](https://modrinth.com/plugin/vaultunlocked) in its place, with an economy plugin that supports Folia. Prices are written in the economy plugin's own format. Decimal prices are rounded to the cent, up when a player pays and down when a player is paid. ### PlayerPoints Points from [PlayerPoints](https://modrinth.com/plugin/playerpoints). Points are whole numbers, so a decimal price is rounded up when a player pays and down when a player is paid. ### VotingPlugin Vote points from [VotingPlugin](https://www.spigotmc.org/resources/votingplugin.15358/). Like PlayerPoints, they are whole numbers only. ### ExcellentEconomy Any currency set up in [ExcellentEconomy](https://www.spigotmc.org/resources/excellenteconomy.106334/). Right-click the currency option in the editor and click **Currency** to pick one from a searchable list of every ExcellentEconomy currency. In the shop file, the currency's ExcellentEconomy id is its identifier. Whether decimals are allowed is decided by ExcellentEconomy per currency, and prices are written in that currency's own format. A currency without decimals is rounded like PlayerPoints. > **Info:** ExcellentEconomy balances are only read and changed for players who are online. ### PhoenixCurrencies Any currency set up in PhoenixCurrencies. Right-click the currency option in the editor and click **Currency** to pick one from a searchable list of every PhoenixCurrencies currency. In the shop file, the currency's PhoenixCurrencies id is its identifier. Prices are rounded to the number of decimals the currency is set to, up when a player pays and down when a player is paid, and written in that currency's own format. Balances are read and changed for offline players too. An id already taken by a built-in or ExcellentEconomy currency, such as `money`, keeps pointing at that currency. ## Experience A built-in currency that needs no other plugin. It is paid in experience points by default, or in levels when levels are turned on. Paying never takes a player below 0. Prices are written as `10 XP` or `10 Levels`. ### Points or Levels Right-click the currency button in the editor and turn on **Count In Levels** to charge and pay levels instead of experience points. In the shop file, `levels: true` on an `EXPERIENCE` block turns levels on. ```yaml currency: type: EXPERIENCE levels: true ``` Each shop, category and item has its own block, so one shop can price in points and another in levels. Both are whole numbers: a decimal price is rounded up when a player pays and down when a player is paid. > **Info:** A level costs more experience the higher it is, so 5 levels are worth far more to a level 50 player than to a level 5 one. Points cost every player the same. ## Item Currencies An Item currency makes players pay with an item they carry, such as emeralds, a custom coin or a named token, instead of money. This is a Premium feature and needs no other plugin. Each shop, category or item gets its own Item currency, so a shop can be priced in diamonds while one of its categories is priced in emeralds. ### Currency Item Pick the Item type on the shop, category or item, right-click it, and drop the item players should pay with into the slot. Only one of it is stored, whatever the stack size. Right-click the slot to get a copy of the stored item. Name, lore, enchantments and custom data are kept, so a renamed paper can be a voucher that plain paper does not count as. The same screen changes the stored item's name and lore without dropping it in again. MiniMessage, `&` codes and hex colours all work. ### Paying and Being Paid Items are whole numbers, so a decimal price is rounded up when a player pays and down when a player is paid. Paying takes matching items from anywhere in the inventory. Being paid puts the items into the inventory, and anything that does not fit is dropped at the player's feet. Prices are written as the amount followed by the item's name, such as `12 Emerald`. The item's own name is used with its colours. Set **Currency Display** on the same screen to write a different name instead, such as `&fDiamond Sword` for an item named `&c&lDIAMOND SWORD`. Item prices are whole numbers, so this type has no Currency Format. ### Item Currency in the Shop File ```yaml currency: type: ITEM identifier: item_shop item: display-name: Emerald material: EMERALD item-data: '' match: EXACT ``` | Option | Description | | --- | --- | | display-name | The Currency Display: the name written after prices. Empty uses the item's own name, colours included. | | material | The item, when it has nothing special on it. | | item-data | The full item, written by the editor when the item has a name, lore or other data. It wins over the material. | | match | How closely a carried item has to match. See below. | | Match | What counts | | --- | --- | | EXACT | Only an identical item: same name, lore, enchantments and data. The default. | | MATERIAL\_AND\_NAME | The same material with the same display name. | | MATERIAL | Any item of the same material. | > **Warning:** Loosen the match only for plain items. With MATERIAL, a renamed voucher and an ordinary copy of the same material pay the same. ## Symbols and Formats ### How Prices Are Written Every currency writes prices its own way. Vault, ExcellentEconomy and PhoenixCurrencies use the economy plugin's format, PlayerPoints writes `20 PlayerPoints`, VotingPlugin `20 Vote Tokens`, Experience `10 XP` or `5 Levels`, and Placeholder and Item currencies add their display name. A shop can replace this with a format of its own. ### Currency Format How prices in one shop are written, set by right-clicking the shop's Currency option. Write `%amount%` where the number goes, and anything around it is shown as typed, so `%amount% PlayerPoints` writes `20 PlayerPoints` and `$%amount%` writes `$20`. Leave it empty to keep the currency's own format. Write `%amount_short%` instead for a shortened number with a `k`, `m`, `b` or `t` suffix, so `$%amount_short%` writes `$1.5k` for 1500 and `$2.3m` for 2300000. Amounts under 1000 are written in full. The format replaces the currency's own format completely, so put any symbol or name you want shown into it. | Format | 1234.56 is written as | | --- | --- | | `%amount% PlayerPoints` | 1,234.56 PlayerPoints | | `$%amount%` | $1,234.56 | | `$%amount_short%` | $1.2k | | `#,##0.00` | 1,234.56 | | `$#,##0.00` | $1,234.56 | | `#,##0` | 1,235 | | `#,##0.## 'Gems'` | 1,234.56 Gems | For control over decimals, a number pattern works instead: `0` always shows a digit, `#` shows one only when needed, `,` groups thousands and `.` is the decimal point. Text is wrapped in single quotes. A pattern that cannot be read is refused by the editor. ### Currency Symbols > **Info:** Currency symbols are set in config.yml and have no editor option. The short symbol shown next to buy and sell prices in the editor's item lists, one per currency. The key is the currency's id, and a currency with no entry shows its display name instead. ```yaml currency-symbols: money: "$" points: "Points" experience: "XP" levels: "Levels" votepoints: "Vote Points" ``` An ExcellentEconomy or PhoenixCurrencies currency is keyed by its id in that plugin, and a Placeholder or Item currency by its identifier. PlaceholderAPI placeholders in a symbol are filled in for the admin viewing the list. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/currencies --- # 🏦 Economy Plugins ## Economy Plugins These currencies hand the balance over to another plugin. The plugin has to be installed and enabled before its type can be picked, and a shop priced in one that goes missing stops opening until it is back. <figure><img src="../../.gitbook/assets/economy-plugins/economy-plugins.png" alt="" width="563"><figcaption><p>Edit Shop (Currency)</p></figcaption></figure> ## Vault The server's main money, through [Vault](https://www.spigotmc.org/resources/vault.34315/). Vault holds no money by itself, so an economy plugin such as EssentialsX has to be installed alongside it. New shops are priced in Vault. Vault does not run on Folia. Install [VaultUnlocked](https://modrinth.com/plugin/vaultunlocked) in its place, with an economy plugin that supports Folia. Prices are written in the economy plugin's own format. Decimal prices are rounded to the cent, up when a player pays and down when a player is paid. ## PlayerPoints Points from [PlayerPoints](https://modrinth.com/plugin/playerpoints). Points are whole numbers, so a decimal price is rounded up when a player pays and down when a player is paid. ## VotingPlugin Vote points from [VotingPlugin](https://www.spigotmc.org/resources/votingplugin.15358/). Like PlayerPoints, they are whole numbers only. ## ExcellentEconomy Any currency set up in [ExcellentEconomy](https://www.spigotmc.org/resources/excellenteconomy.106334/). Right-click the currency option in the editor and click **Currency** to pick one from a searchable list of every ExcellentEconomy currency. In the shop file, the currency's ExcellentEconomy id is its identifier. Whether decimals are allowed is decided by ExcellentEconomy per currency, and prices are written in that currency's own format. A currency without decimals is rounded like PlayerPoints. > **Info:** ExcellentEconomy balances are only read and changed for players who are online. ## PhoenixCurrencies Any currency set up in PhoenixCurrencies. Right-click the currency option in the editor and click **Currency** to pick one from a searchable list of every PhoenixCurrencies currency. In the shop file, the currency's PhoenixCurrencies id is its identifier. Prices are rounded to the number of decimals the currency is set to, up when a player pays and down when a player is paid, and written in that currency's own format. Balances are read and changed for offline players too. An id already taken by a built-in or ExcellentEconomy currency, such as `money`, keeps pointing at that currency. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/currencies/economy-plugins --- # ✨ Experience ## Experience A built-in currency that needs no other plugin. It is paid in experience points by default, or in levels when levels are turned on. Paying never takes a player below 0. Prices are written as `10 XP` or `10 Levels`. ## Points or Levels Right-click the currency button in the editor and turn on **Count In Levels** to charge and pay levels instead of experience points. In the shop file, `levels: true` on an `EXPERIENCE` block turns levels on. ```yaml currency: type: EXPERIENCE levels: true ``` Each shop, category and item has its own block, so one shop can price in points and another in levels. Both are whole numbers: a decimal price is rounded up when a player pays and down when a player is paid. > **Info:** A level costs more experience the higher it is, so 5 levels are worth far more to a level 50 player than to a level 5 one. Points cost every player the same. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/currencies/experience-and-levels --- # 💎 Item Currencies ## Item Currencies An Item currency makes players pay with an item they carry, such as emeralds, a custom coin or a named token, instead of money. This is a Premium feature and needs no other plugin. Each shop, category or item gets its own Item currency, so a shop can be priced in diamonds while one of its categories is priced in emeralds. ## Currency Item Pick the Item type on the shop, category or item, right-click it, and drop the item players should pay with into the slot. Only one of it is stored, whatever the stack size. Right-click the slot to get a copy of the stored item. Name, lore, enchantments and custom data are kept, so a renamed paper can be a voucher that plain paper does not count as. The same screen changes the stored item's name and lore without dropping it in again. MiniMessage, `&` codes and hex colours all work. ## Paying and Being Paid Items are whole numbers, so a decimal price is rounded up when a player pays and down when a player is paid. Paying takes matching items from anywhere in the inventory. Being paid puts the items into the inventory, and anything that does not fit is dropped at the player's feet. Prices are written as the amount followed by the item's name, such as `12 Emerald`. The item's own name is used with its colours. Set **Currency Display** on the same screen to write a different name instead, such as `&fDiamond Sword` for an item named `&c&lDIAMOND SWORD`. Item prices are whole numbers, so this type has no Currency Format. ## In the Shop File ```yaml currency: type: ITEM identifier: item_shop item: display-name: Emerald material: EMERALD item-data: '' match: EXACT ``` | Option | Description | | --- | --- | | display-name | The Currency Display: the name written after prices. Empty uses the item's own name, colours included. | | material | The item, when it has nothing special on it. | | item-data | The full item, written by the editor when the item has a name, lore or other data. It wins over the material. | | match | How closely a carried item has to match. See below. | | Match | What counts | | --- | --- | | EXACT | Only an identical item: same name, lore, enchantments and data. The default. | | MATERIAL\_AND\_NAME | The same material with the same display name. | | MATERIAL | Any item of the same material. | > **Warning:** Loosen the match only for plain items. With MATERIAL, a renamed voucher and an ordinary copy of the same material pay the same. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/currencies/item-currencies --- # 🏷️ Placeholder Currencies ## Placeholder Currencies A Placeholder currency lets a shop charge in anything another plugin keeps a number for, such as a DeluxeMenus meta value or a token plugin with no economy hook of its own. The balance is read from a placeholder, and the money is moved by console commands you write. This is a Premium feature and needs [PlaceholderAPI](https://modrinth.com/plugin/placeholderapi). <figure><img src="../../.gitbook/assets/placeholder-currencies/placeholder-currencies.png" alt="" width="563"><figcaption><p>Currencies (Souls)</p></figcaption></figure> On Lite, Placeholder currencies are not loaded and the console says so once. ## Creating One Open **Editor > Settings > Currencies** and click **New Placeholder Currency**, or pick the Placeholder type on a shop, category or item and right-click it. Each new currency gets the next free id, `custom_1`, `custom_2` and so on, with Tokens as its display name, and opens straight into its settings. Any number can be made, and each one shows up by its display name in the currency picker of a shop, category or item. <figure><img src="../../.gitbook/assets/placeholder-currencies/creating-one.png" alt="" width="563"><figcaption><p>Currencies (New Placeholder Currency)</p></figcaption></figure> Right-clicking a placeholder currency in the currency picker of a shop, category or item opens its settings, with the Currency Format beside them. The Currency Format is how prices are written, such as `%amount% Tokens`. ## Display Name The name shown after prices, like 50 Tokens, and in the currency picker. It cannot be empty. <figure><img src="../../.gitbook/assets/placeholder-currencies/display-name.png" alt="" width="563"><figcaption><p>Placeholder Currency (Display Name)</p></figcaption></figure> ## Balance Placeholder The placeholder that holds a player's balance, such as `%deluxemenus_meta_mynewint_INTEGER_1%`. It has to return a number. Commas are ignored and `k`, `m`, `b` and `t` suffixes are read, but anything else that is not a number leaves the player unable to afford anything. <figure><img src="../../.gitbook/assets/placeholder-currencies/balance-placeholder.png" alt="" width="563"><figcaption><p>Placeholder Currency (Balance Placeholder)</p></figcaption></figure> An empty or wrong placeholder is not checked: the currency stays usable while PlaceholderAPI is installed, and every player reads as having nothing. ## Buy Command The console command that runs when a player pays in this currency, taking the price from them. For example `dm meta %player% subtract mynewint INTEGER %amount_int%`. <figure><img src="../../.gitbook/assets/placeholder-currencies/buy-command.png" alt="" width="563"><figcaption><p>Placeholder Currency (Buy Command)</p></figcaption></figure> ## Sell Command The console command that runs when a player is paid in this currency, giving them the price. For example `dm meta %player% add mynewint INTEGER %amount_int%`. <figure><img src="../../.gitbook/assets/placeholder-currencies/sell-command.png" alt="" width="563"><figcaption><p>Placeholder Currency (Sell Command)</p></figcaption></figure> | Placeholder | Description | | --- | --- | | %player% | The player's name. | | %amount% | The price, with decimals. | | %amount\_int% | The price rounded up to a whole number. | > **Warning:** The plugin cannot tell whether a command worked. Test both commands on yourself before pricing a shop in the currency, since a typo takes nothing or pays nothing while the purchase or sale still goes through. ## In the Shop File The whole currency is written into the block of the shop, category or item that uses it. ```yaml currency: type: PLACEHOLDER identifier: tokens placeholder: display-name: Tokens balance: '%deluxemenus_meta_mynewint_INTEGER_1%' buy: 'dm meta %player% subtract mynewint INTEGER %amount_int%' sell: 'dm meta %player% add mynewint INTEGER %amount_int%' ``` When several blocks share an identifier, the first one read defines the currency. Editing it in-game rewrites every block that uses it. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/currencies/placeholder-currencies --- # 🔣 Symbols and Formats ## How Prices Are Written Every currency writes prices its own way. Vault, ExcellentEconomy and PhoenixCurrencies use the economy plugin's format, PlayerPoints writes `20 PlayerPoints`, VotingPlugin `20 Vote Tokens`, Experience `10 XP` or `5 Levels`, and Placeholder and Item currencies add their display name. A shop can replace this with a format of its own. ## Currency Format How prices in one shop are written, set by right-clicking the shop's Currency option. Write `%amount%` where the number goes, and anything around it is shown as typed, so `%amount% PlayerPoints` writes `20 PlayerPoints` and `$%amount%` writes `$20`. Leave it empty to keep the currency's own format. Write `%amount_short%` instead for a shortened number with a `k`, `m`, `b` or `t` suffix, so `$%amount_short%` writes `$1.5k` for 1500 and `$2.3m` for 2300000. Amounts under 1000 are written in full. The format replaces the currency's own format completely, so put any symbol or name you want shown into it. | Format | 1234.56 is written as | | --- | --- | | `%amount% PlayerPoints` | 1,234.56 PlayerPoints | | `$%amount%` | $1,234.56 | | `$%amount_short%` | $1.2k | | `#,##0.00` | 1,234.56 | | `$#,##0.00` | $1,234.56 | | `#,##0` | 1,235 | | `#,##0.## 'Gems'` | 1,234.56 Gems | For control over decimals, a number pattern works instead: `0` always shows a digit, `#` shows one only when needed, `,` groups thousands and `.` is the decimal point. Text is wrapped in single quotes. A pattern that cannot be read is refused by the editor. ## Currency Symbols > **Info:** Currency symbols are set in config.yml and have no editor option. The short symbol shown next to buy and sell prices in the editor's item lists, one per currency. The key is the currency's id, and a currency with no entry shows its display name instead. ```yaml currency-symbols: money: "$" points: "Points" experience: "XP" levels: "Levels" votepoints: "Vote Points" ``` An ExcellentEconomy or PhoenixCurrencies currency is keyed by its id in that plugin, and a Placeholder or Item currency by its identifier. PlaceholderAPI placeholders in a symbol are filled in for the admin viewing the list. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/currencies/symbols-and-formats --- # 📦 Items > **Info:** Items are saved in their category's file, under its list of items. ## Add an Item Left-click the lime stained glass in **Editor > Shops > Shop > Category > Items** to create an item. It gets the next free `item_<number>` identifier and its editor opens straight away. <figure><img src="../../.gitbook/assets/items/items.png" alt="" width="563"><figcaption><p>Edit Category (Items)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/items/add-an-item.png" alt="" width="563"><figcaption><p>Items (New Item)</p></figcaption></figure> Clicking the glass creates an item with iron bars as a placeholder, to be replaced from its [display item](edit-item.md#display-item). ## Drop Items In Drop an item from your inventory on an empty slot of the list, or shift-click it in your inventory, to add that exact item, name, lore, enchantments and custom data included. The stack's size becomes the item's amount, and you keep your copy. You stay on the list, so you can add as many as you like and click each one later to edit it. > **Info:** An item added this way is also added as its first [purchase item](#purchase-items), and chat tells you so. That is what a buyer receives and what a seller has to hand in, so later changes to the display item's name or lore do not change it. ## Items List Every item in the list is shown as its display item, with its lore, then its buy price and sell price in the currency it uses, and the amount one purchase gives. A price of 0 is left off, and a spawner shows the mob it spawns. Left-click an item to edit it, right-click it to delete it after a confirmation. <figure><img src="../../.gitbook/assets/items/items-list.png" alt="" width="563"><figcaption><p>Items (Stone)</p></figcaption></figure> The order of the list is the order players see in the category's menu. ## Reordering Turn Reordering on, click the item you want to move, then click the item it should swap places with. The New Item slot is hidden while reordering is on. <figure><img src="../../.gitbook/assets/items/reordering.png" alt="" width="563"><figcaption><p>Items (Reordering)</p></figcaption></figure> ## Display Item The display item is what players see in the category's menu. When the item has no [purchase items](#purchase-items) and no [purchase commands](#purchase-and-sell-commands), it is also what a purchase gives. Drop an item on the slot to replace the display item. The dropped item's name, lore and data are taken as they are, and any name, lore or property set in the editor before is cleared. If the item had no purchase items yet, the dropped item is also added as the first one. <figure><img src="../../.gitbook/assets/display-item/display-item.png" alt="" width="563"><figcaption><p>Display Item</p></figcaption></figure> ### Display Name The name the item carries in the shop. Color codes are supported. Left empty, the item keeps its own name. <figure><img src="../../.gitbook/assets/display-item/display-name.png" alt="" width="563"><figcaption><p>Display Item (Display Name)</p></figcaption></figure> ### Display Lore The lore shown under the name. Color codes are supported. Left empty, the item keeps its own lore. <figure><img src="../../.gitbook/assets/display-item/display-lore.png" alt="" width="563"><figcaption><p>Display Item (Display Lore)</p></figcaption></figure> ### Amount How many are in the display item, from 1 to 64. It is also the size of one lot: selling one lot takes this many matching items from the player,. The display item itself is never given; set [purchase items](#purchase-items) for that. <figure><img src="../../.gitbook/assets/display-item/amount.png" alt="" width="563"><figcaption><p>Display Item (Amount)</p></figcaption></figure> ### Item Properties RGB color, item flags, banner patterns, enchantments, custom model data or item model, tooltip style, enchantment glint, potion effects, armor trim and spawner type. They have their own page: [Item Properties](item-properties.md). <figure><img src="../../.gitbook/assets/display-item/item-properties.png" alt="" width="563"><figcaption><p>Display Item (Item Properties)</p></figcaption></figure> ## Purchase Items ### What a Purchase Gives Purchase items are the real items a player receives when buying this entry. The display item is only what the shop shows, and is never given. An entry can hold as many as you want, and every one of them is given on each purchase. <figure><img src="../../.gitbook/assets/purchase-items/purchase-items.png" alt="" width="563"><figcaption><p>Edit Item (Purchase Items)</p></figcaption></figure> | Purchase items | Purchase commands | A purchase gives | | --- | --- | --- | | Set | Any | Every purchase item, then runs the commands. | | Empty | Set | Nothing but the commands. | | Empty | Empty | Nothing. The entry cannot be bought, and the editor warns on the Purchase Items option. | Buying several at once multiplies each purchase item's amount by how many were bought. The player needs room for all of them, or the purchase is refused and nothing is taken. ### Add a Purchase Item Click an item in your own inventory to pick it up, which turns the list green, then click anywhere in the list to add it. The item is taken from your cursor, exactly as it is, enchantments and custom data included. <figure><img src="../../.gitbook/assets/purchase-items/add-an-item.png" alt="" width="563"><figcaption><p>Purchase Items (Add Item)</p></figcaption></figure> Every purchase item in the list shows its lore and amount. Left-click one to edit it, right-click it to receive a copy. ### Edit a Purchase Item Each purchase item has its own display name, lore, amount and [item properties](item-properties.md), separate from the display item's. <figure><img src="../../.gitbook/assets/purchase-items/edit-a-purchase-item.png" alt="" width="563"><figcaption><p>Purchase Items (Stone)</p></figcaption></figure> #### Purchase Item Drop an item on the slot to replace this purchase item, keeping its amount. Right-click it to receive a copy. <figure><img src="../../.gitbook/assets/purchase-items/purchase-item.png" alt="" width="563"><figcaption><p>#1 (Purchase Item)</p></figcaption></figure> #### Display Name & Display Lore The name and lore the given item carries. Left empty, the item keeps its own. <figure><img src="../../.gitbook/assets/purchase-items/display-name.png" alt="" width="563"><figcaption><p>Purchase Item (Display Name)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/purchase-items/display-lore.png" alt="" width="563"><figcaption><p>Purchase Item (Display Lore)</p></figcaption></figure> #### Purchase Item Amount How many of this item one purchase gives, from 1 to 64. <figure><img src="../../.gitbook/assets/purchase-items/amount.png" alt="" width="563"><figcaption><p>Purchase Item (Amount)</p></figcaption></figure> #### Remove Removes this purchase item from the entry and hands it back to you. <figure><img src="../../.gitbook/assets/purchase-items/remove.png" alt="" width="563"><figcaption><p>Purchase Item (Remove)</p></figcaption></figure> ### Selling A player sells this entry by handing in items that match its **Sell Item**, set from the item editor. Without a sell item, they have to match the display item. How close the match has to be is the item's [Selling Rule](edit-item.md#selling-rule). <figure><img src="../../.gitbook/assets/purchase-items/selling.png" alt="" width="563"><figcaption><p>Edit Item (Sell Item)</p></figcaption></figure> One sale takes the sell item's amount of matching items and pays the sell price once, so an entry can sell a block of diamonds but buy back single diamonds. Without a sell item, one sale takes the display item's [amount](#amount). In the item editor, drop an item on the Sell Item slot to set it, left-click it to edit its name, lore, amount and properties, and right-click it to get a copy. Its Remove button clears it, so the display item is matched again. ## Purchase and Sell Commands ### Purchase Commands Commands run when a player buys this entry, after the [purchase items](#purchase-items) are given. An entry with purchase commands and no purchase items gives no items at all, which is how a rank, a kit from another plugin or a balance is sold. <figure><img src="../../.gitbook/assets/purchase-and-sell-commands/purchase-commands.png" alt="" width="563"><figcaption><p>Edit Item (Purchase Commands)</p></figcaption></figure> ### Sell Commands Commands run when a player sells this entry, after they are paid. <figure><img src="../../.gitbook/assets/purchase-and-sell-commands/sell-commands.png" alt="" width="563"><figcaption><p>Edit Item (Sell Commands)</p></figcaption></figure> ### Add a Command Left-click the lime stained glass and type the command, without the slash. A dialog box asks for it, and on server versions that don't support dialogs it falls back to the chat. Left-click a command in the list to remove it. <figure><img src="../../.gitbook/assets/purchase-and-sell-commands/add-a-command.png" alt="" width="563"><figcaption><p>Purchase Commands (Add Command)</p></figcaption></figure> Commands run from the console. Start one with `*` to run it as the player instead, such as `*spawn`. ### Placeholders | Placeholder | Description | | --- | --- | | `%player%` | The name of the player. | | `%uuid%` | The UUID of the player. | | `%amount%` | How many times the entry was bought or sold in this transaction. | | `%item%` | The name of the display item. | | `%price%` | The total price of the transaction. | | `%currency%` | The name of the currency. | | `%shop%` | The display name of the shop. | PlaceholderAPI placeholders work too when PlaceholderAPI is installed. > **Info:** Each command runs once per transaction, however many were bought or sold at once. `%amount%` counts those purchases, not items: buying 3 of an entry whose display amount is 16 fills in `3`. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/items --- # 🖼️ Display Item The display item is what players see in the category's menu. When the item has no [purchase items](purchase-items.md) and no [purchase commands](purchase-and-sell-commands.md), it is also what a purchase gives. ## Display Item Drop an item on the slot to replace the display item. The dropped item's name, lore and data are taken as they are, and any name, lore or property set in the editor before is cleared. If the item had no purchase items yet, the dropped item is also added as the first one. <figure><img src="../../.gitbook/assets/display-item/display-item.png" alt="" width="563"><figcaption><p>Display Item</p></figcaption></figure> ## Display Name The name the item carries in the shop. Color codes are supported. Left empty, the item keeps its own name. <figure><img src="../../.gitbook/assets/display-item/display-name.png" alt="" width="563"><figcaption><p>Display Item (Display Name)</p></figcaption></figure> ## Display Lore The lore shown under the name. Color codes are supported. Left empty, the item keeps its own lore. <figure><img src="../../.gitbook/assets/display-item/display-lore.png" alt="" width="563"><figcaption><p>Display Item (Display Lore)</p></figcaption></figure> ## Amount How many are in the display item, from 1 to 64. It is also the size of one lot: selling one lot takes this many matching items from the player,. The display item itself is never given; set [purchase items](purchase-items.md) for that. <figure><img src="../../.gitbook/assets/display-item/amount.png" alt="" width="563"><figcaption><p>Display Item (Amount)</p></figcaption></figure> ## Item Properties RGB color, item flags, banner patterns, enchantments, custom model data or item model, tooltip style, enchantment glint, potion effects, armor trim and spawner type. They have their own page: [Item Properties](item-properties.md). <figure><img src="../../.gitbook/assets/display-item/item-properties.png" alt="" width="563"><figcaption><p>Display Item (Item Properties)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/items/display-item --- # ✏️ Edit Item > **Info:** Every option on this page is saved to the item's entry in its category's file. ## Display Item The item that represents this entry in the shop. Left-click it to edit its name, lore, amount and properties on [Display Item](README.md#display-item). Right-click it to receive a copy. <figure><img src="../../.gitbook/assets/items/display-item.png" alt="" width="563"><figcaption><p>Edit Item (Display Item)</p></figcaption></figure> Drop an item on the slot to replace it. The dropped item's name, lore and data are taken as they are, and any name, lore or property set in the editor before is cleared. If the item had no [purchase items](README.md#purchase-items) yet, the dropped item is also added as the first one. ## Purchase Items The items a purchase gives, and the item a sale has to match. See [Purchase Items](README.md#purchase-items). <figure><img src="../../.gitbook/assets/items/purchase-items.png" alt="" width="563"><figcaption><p>Edit Item (Purchase Items)</p></figcaption></figure> ## Purchase Commands & Sell Commands Commands run when a player buys or sells this entry. See [Purchase & Sell Commands](README.md#purchase-and-sell-commands). <figure><img src="../../.gitbook/assets/items/purchase-commands.png" alt="" width="563"><figcaption><p>Edit Item (Purchase Commands)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/items/sell-commands.png" alt="" width="563"><figcaption><p>Edit Item (Sell Commands)</p></figcaption></figure> ## Buy Price What a player pays for one purchase of this entry, whatever amount it gives. Short forms such as `1.5k` or `2m` are accepted. A price of 0 means the item cannot be bought, unless Free is on. <figure><img src="../../.gitbook/assets/items/buy-price.png" alt="" width="563"><figcaption><p>Edit Item (Buy Price)</p></figcaption></figure> ## Sell Price What a player is paid for selling one lot of this entry, a lot being the display item's amount. A price of 0 means the item cannot be sold. <figure><img src="../../.gitbook/assets/items/sell-price.png" alt="" width="563"><figcaption><p>Edit Item (Sell Price)</p></figcaption></figure> ## Currency Prices this item in another currency than its category's or its shop's. Left-click swaps between the currency types, starting at the inherited one, and right-click opens the chosen type to pick the currency. The types are listed on [Currencies](../currencies/). <figure><img src="../../.gitbook/assets/items/currency.png" alt="" width="563"><figcaption><p>Edit Item (Currency)</p></figcaption></figure> If the chosen currency's plugin is not installed, the item is hidden from the shop until it is. > **Info:** This feature is only available with the Premium Plan. ## Selling Rule How close a player's item has to be to this entry before the shop buys it back. The item it is compared against is described on [Purchase Items](README.md#selling). <figure><img src="../../.gitbook/assets/items/selling-rule.png" alt="" width="563"><figcaption><p>Edit Item (Selling Rule)</p></figcaption></figure> | Rule | What has to match | | --- | --- | | Exact | Everything: material, name, lore, enchantments and custom data. | | Material And Name | The material and the display name. | | Material | Only the material. | > **Warning:** Anything looser than Exact lets a player buy something cheap, change it, and sell it back as this entry. Keep Exact unless the sell price is low enough not to matter. ## Sell Item What a player hands in when selling this entry, and how many one sale takes. Drop an item on the slot to set it, left-click to edit it and right-click to get a copy. Without one, sales match the display item. See [Selling](README.md#selling). <figure><img src="../../.gitbook/assets/items/sell-item.png" alt="" width="563"><figcaption><p>Edit Item (Sell Item)</p></figcaption></figure> ## Max Per Purchase The most lots one purchase can buy. `-1` means no limit. A bigger purchase is refused with a message naming the cap in items. The buy menu's add and Fill Inventory buttons stop at the cap, the bulk buy menu offers nothing above it, and a `BUY_STACK` click buys no more than it. <figure><img src="../../.gitbook/assets/items/max-per-purchase.png" alt="" width="563"><figcaption><p>Edit Item (Max Per Purchase)</p></figcaption></figure> ## Minimum Sale The fewest items one sale has to contain, rounded up to whole lots. `-1` means no minimum. A smaller sale is refused. The sell menu starts at the minimum and cannot go below it, the bulk sell menu hides the options under it, and a `SELL_ONE` click sells the minimum. `/sell`, AutoSell and the Bedrock sell form skip the item while the player carries fewer. <figure><img src="../../.gitbook/assets/items/minimum-sale.png" alt="" width="563"><figcaption><p>Edit Item (Minimum Sale)</p></figcaption></figure> ## Stock Limits how many of this item are for sale and how many one player may buy, with a restock rule to bring it back. It has its own page: [Stock & Restock](stock-and-restock.md). <figure><img src="../../.gitbook/assets/items/stock.png" alt="" width="563"><figcaption><p>Edit Item (Stock)</p></figcaption></figure> > **Info:** This feature is only available with the Premium Plan. ## Requirements Checks a purchase or a sale has to pass, such as a permission, a world or a placeholder value. It has its own page: [Requirements](requirements.md). <figure><img src="../../.gitbook/assets/items/requirements.png" alt="" width="563"><figcaption><p>Edit Item (Requirements)</p></figcaption></figure> > **Info:** This feature is only available with the Premium Plan. ## Extra The options most entries never need, on a screen of their own. <figure><img src="../../.gitbook/assets/items/extra.png" alt="" width="563"><figcaption><p>Edit Item (Extra)</p></figcaption></figure> ### Free Lets players buy this entry without paying, whatever the buy price says. Prices show as Free everywhere. Stock, player limits, requirements, max per purchase and purchase commands still apply, and the sell price is untouched. <figure><img src="../../.gitbook/assets/items/free.png" alt="" width="563"><figcaption><p>Extra (Free)</p></figcaption></figure> > **Warning:** A free item with a sell price can be bought for nothing and sold for money. The money loop audit flags it, unless stock or a player limit caps it. ### Sell Damaged Lets worn tools and armour be sold to this entry. They are paid by the durability they have left, so a tool at 40% durability sells for 40% of the price, and Damaged Minimum sets the lowest share they ever pay. When it is off, a worn item only sells with the Material selling rule, at full price. <figure><img src="../../.gitbook/assets/items/sell-damaged.png" alt="" width="563"><figcaption><p>Extra (Sell Damaged)</p></figcaption></figure> ### Messages Buy Message, Sell Message and Cannot Afford Message replace the normal message for this entry only. They take `%amount%`, `%item%`, `%price%`, `%currency%` and `%balance%`. Empty falls back to the category's message, then the normal one. <figure><img src="../../.gitbook/assets/items/messages.png" alt="" width="563"><figcaption><p>Extra (Buy Message)</p></figcaption></figure> ## Enabled A disabled item stays configured in the category but is hidden from the shop, and cannot be bought or sold. <figure><img src="../../.gitbook/assets/items/enabled.png" alt="" width="563"><figcaption><p>Edit Item (Enabled)</p></figcaption></figure> ## Identifier The unique id of this item inside its category. New items get a generated one. <figure><img src="../../.gitbook/assets/items/identifier.png" alt="" width="563"><figcaption><p>Edit Item (Identifier)</p></figcaption></figure> > **Danger:** Stock counts and Sign Shops point at the identifier. Changing it starts the item's stock over and unlinks any Sign Shop that uses it. ## Delete Deletes the item from its category, after a confirmation. <figure><img src="../../.gitbook/assets/items/delete.png" alt="" width="563"><figcaption><p>Edit Item (Delete)</p></figcaption></figure> > **Danger:** This option is permanent, and items can't be restored. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/items/edit-item --- # 🎨 Item Properties Item Properties fine-tune an item beyond its name and lore. The same menu is opened from the [display item](README.md#display-item) and from every [purchase item](README.md#purchase-items), and each keeps its own properties. An option that does not fit the item's material shows an error in its lore and has no effect. ## RGB Color The color of leather armor, potions, tipped arrows, firework stars and filled maps, written as `R, G, B` with each number from 0 to 255, such as `255, 0, 128`. Right-click clears it. <figure><img src="../../.gitbook/assets/item-properties/rgb-color.png" alt="" width="563"><figcaption><p>Item Properties (RGB Color)</p></figcaption></figure> ## Item Flags Hides parts of the item's tooltip, such as enchantments or attributes. Pick a flag from the list to add it, and pick it again to remove it. The flags currently set are listed on the option. <figure><img src="../../.gitbook/assets/item-properties/item-flags.png" alt="" width="563"><figcaption><p>Item Properties (Add Item Flag)</p></figcaption></figure> ## Banner Patterns The patterns of a banner or a shield, one per line as `COLOR;PATTERN_TYPE`, such as `RED;STRIPE_TOP`. They are applied in the order listed. <figure><img src="../../.gitbook/assets/item-properties/banner-patterns.png" alt="" width="563"><figcaption><p>Item Properties (Banner Patterns)</p></figcaption></figure> ## Enchantments One enchantment per line as `ENCHANTMENT:LEVEL`, such as `UNBREAKING:3`. Without a level, level 1 is used. Enchantments from other plugins work as long as the server knows their name. One that cannot be found is left off, and the console lists it. <figure><img src="../../.gitbook/assets/item-properties/enchantments.png" alt="" width="563"><figcaption><p>Item Properties (Enchantments)</p></figcaption></figure> ## Custom Model Data / Item Model A number sets the Custom Model Data. On server versions with item models, a `namespace:key` sets the Item Model instead. Only one of the two is kept. Right-click clears it. <figure><img src="../../.gitbook/assets/item-properties/custom-model-data-item-model.png" alt="" width="563"><figcaption><p>Item Properties (Custom Model Data / Item Model)</p></figcaption></figure> ## Tooltip Style The tooltip style of the item as a `namespace:key`. Right-click clears it. It needs a server version with tooltip styles. <figure><img src="../../.gitbook/assets/item-properties/tooltip-style.png" alt="" width="563"><figcaption><p>Item Properties (Tooltip Style)</p></figcaption></figure> ## Enchantment Glint Forces the enchantment glow on, with no enchantment needed. It needs a server version with the glint override. <figure><img src="../../.gitbook/assets/item-properties/enchantment-glint.png" alt="" width="563"><figcaption><p>Item Properties (Enchantment Glint)</p></figcaption></figure> ## Potion Effects The effects of a potion or a tipped arrow, one per line as `type;duration;amplifier`, with the duration in ticks, such as `speed;200;0`. <figure><img src="../../.gitbook/assets/item-properties/potion-effects.png" alt="" width="563"><figcaption><p>Item Properties (Potion Effects)</p></figcaption></figure> ## Spawner Type The mob a spawner spawns, picked from a list of every mob with a spawn egg. Right-click clears it and leaves a plain spawner. <figure><img src="../../.gitbook/assets/item-properties/spawner-type.png" alt="" width="563"><figcaption><p>Item Properties (Spawner Type)</p></figcaption></figure> ## Trim Material & Trim Pattern The armor trim of a helmet, chestplate, leggings or boots. The trim only shows once both the material and the pattern are set. Right-click clears either one. <figure><img src="../../.gitbook/assets/item-properties/trim-material.png" alt="" width="563"><figcaption><p>Item Properties (Trim Material)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/item-properties/trim-pattern.png" alt="" width="563"><figcaption><p>Item Properties (Trim Pattern)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/items/item-properties --- # ⌨️ Purchase & Sell Commands ## Purchase Commands Commands run when a player buys this entry, after the [purchase items](purchase-items.md) are given. An entry with purchase commands and no purchase items gives no items at all, which is how a rank, a kit from another plugin or a balance is sold. <figure><img src="../../.gitbook/assets/purchase-and-sell-commands/purchase-commands.png" alt="" width="563"><figcaption><p>Edit Item (Purchase Commands)</p></figcaption></figure> ## Sell Commands Commands run when a player sells this entry, after they are paid. <figure><img src="../../.gitbook/assets/purchase-and-sell-commands/sell-commands.png" alt="" width="563"><figcaption><p>Edit Item (Sell Commands)</p></figcaption></figure> ## Add a Command Left-click the lime stained glass and type the command, without the slash. A dialog box asks for it, and on server versions that don't support dialogs it falls back to the chat. Left-click a command in the list to remove it. <figure><img src="../../.gitbook/assets/purchase-and-sell-commands/add-a-command.png" alt="" width="563"><figcaption><p>Purchase Commands (Add Command)</p></figcaption></figure> Commands run from the console. Start one with `*` to run it as the player instead, such as `*spawn`. ## Placeholders | Placeholder | Description | | --- | --- | | `%player%` | The name of the player. | | `%uuid%` | The UUID of the player. | | `%amount%` | How many times the entry was bought or sold in this transaction. | | `%item%` | The name of the display item. | | `%price%` | The total price of the transaction. | | `%currency%` | The name of the currency. | | `%shop%` | The display name of the shop. | PlaceholderAPI placeholders work too when PlaceholderAPI is installed. > **Info:** Each command runs once per transaction, however many were bought or sold at once. `%amount%` counts those purchases, not items: buying 3 of an entry whose display amount is 16 fills in `3`. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/items/purchase-and-sell-commands --- # 🎒 Purchase Items ## What a Purchase Gives Purchase items are the real items a player receives when buying this entry. The display item is only what the shop shows, and is never given. An entry can hold as many as you want, and every one of them is given on each purchase. <figure><img src="../../.gitbook/assets/purchase-items/purchase-items.png" alt="" width="563"><figcaption><p>Edit Item (Purchase Items)</p></figcaption></figure> | Purchase items | Purchase commands | A purchase gives | | --- | --- | --- | | Set | Any | Every purchase item, then runs the commands. | | Empty | Set | Nothing but the commands. | | Empty | Empty | Nothing. The entry cannot be bought, and the editor warns on the Purchase Items option. | Buying several at once multiplies each purchase item's amount by how many were bought. The player needs room for all of them, or the purchase is refused and nothing is taken. ## Add an Item Click an item in your own inventory to pick it up, which turns the list green, then click anywhere in the list to add it. The item is taken from your cursor, exactly as it is, enchantments and custom data included. <figure><img src="../../.gitbook/assets/purchase-items/add-an-item.png" alt="" width="563"><figcaption><p>Purchase Items (Add Item)</p></figcaption></figure> Every purchase item in the list shows its lore and amount. Left-click one to edit it, right-click it to receive a copy. ## Edit a Purchase Item Each purchase item has its own display name, lore, amount and [item properties](item-properties.md), separate from the display item's. <figure><img src="../../.gitbook/assets/purchase-items/edit-a-purchase-item.png" alt="" width="563"><figcaption><p>Purchase Items (Grass Block)</p></figcaption></figure> ### Purchase Item Drop an item on the slot to replace this purchase item, keeping its amount. Right-click it to receive a copy. <figure><img src="../../.gitbook/assets/purchase-items/purchase-item.png" alt="" width="563"><figcaption><p>Purchase Item</p></figcaption></figure> ### Display Name & Display Lore The name and lore the given item carries. Left empty, the item keeps its own. <figure><img src="../../.gitbook/assets/purchase-items/display-name.png" alt="" width="563"><figcaption><p>Purchase Item (Display Name)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/purchase-items/display-lore.png" alt="" width="563"><figcaption><p>Purchase Item (Display Lore)</p></figcaption></figure> ### Amount How many of this item one purchase gives, from 1 to 64. <figure><img src="../../.gitbook/assets/purchase-items/amount.png" alt="" width="563"><figcaption><p>Purchase Item (Amount)</p></figcaption></figure> ### Remove Removes this purchase item from the entry and hands it back to you. <figure><img src="../../.gitbook/assets/purchase-items/remove.png" alt="" width="563"><figcaption><p>Purchase Item (Remove)</p></figcaption></figure> ## Selling A player sells this entry by handing in items that match its **Sell Item**, set from the item editor. Without a sell item, they have to match the display item. How close the match has to be is the item's [Selling Rule](edit-item.md#selling-rule). <figure><img src="../../.gitbook/assets/purchase-items/selling.png" alt="" width="563"><figcaption><p>Edit Item (Sell Item)</p></figcaption></figure> One sale takes the sell item's amount of matching items and pays the sell price once, so an entry can sell a block of diamonds but buy back single diamonds. Without a sell item, one sale takes the display item's [amount](display-item.md#amount). In the item editor, drop an item on the Sell Item slot to set it, left-click it to edit its name, lore, amount and properties, and right-click it to get a copy. Its Remove button clears it, so the display item is matched again. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/items/purchase-items --- # 🔒 Requirements > **Info:** This feature is only available with the Premium Plan. Requirements are checks a purchase or a sale of this item has to pass before it goes through, such as a permission, a world or a placeholder value. They are read before the stock limits, so a player who does not meet them is refused before they are told the item is sold out. ## Add a Requirement Left-click the lime stained glass to add a check. It is named `check_<number>`, starts as a **permission** check, and its editor opens straight away. Every check in the list shows its type, what it checks and what it applies to. Left-click one to edit it, right-click it to delete it, together with its deny actions, after a confirmation. <figure><img src="../../.gitbook/assets/requirements/requirements.png" alt="" width="563"><figcaption><p>Edit Item (Requirements)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/requirements/add-a-requirement.png" alt="" width="563"><figcaption><p>Requirements (New Requirement)</p></figcaption></figure> ## Minimum How many of the checks have to pass. At 0 it shows **All Requirements**, and every check has to pass. Only the checks that apply to the transaction are counted, so a minimum higher than that number asks for all of them. <figure><img src="../../.gitbook/assets/requirements/minimum.png" alt="" width="563"><figcaption><p>Requirements (Minimum)</p></figcaption></figure> ## Type Which check this is. Only the fields the chosen type reads are shown. <figure><img src="../../.gitbook/assets/requirements/type.png" alt="" width="563"><figcaption><p>Requirement (Type)</p></figcaption></figure> | Type | Fields | Passes when | | --- | --- | --- | | permission | Permission | The player has the permission. | | compare | Input, Operator, Output | Input compared to Output with the operator holds true. | | world | World | The player is in that world, picked from the server's loaded worlds. | | gamemode | Gamemode | The player is in that gamemode, picked from the list. | | holding | Held Item, Item Name, Whole Inventory | The player holds that item in their main hand. Drop the item on the slot to set it; with none set, any held item passes. A custom item from ItemsAdder, Nexo, CraftEngine and the other supported plugins is saved by its id, such as `nexo:ruby_pickaxe`, and only that item passes. A plain material such as `DIAMOND_PICKAXE` does not count custom items built on it. With Item Name set, the item's name has to match it exactly, colors ignored. With Whole Inventory on, an item anywhere in the main inventory or hotbar counts, armor and off-hand excluded. | | enchantment | Enchantment | The player holds an item in their main hand that can take the enchantment, picked from a filterable list of every vanilla enchantment. | | platform | Platform | The player joined from that platform, Bedrock (through Floodgate or Geyser) or Java. | | region | Region | The player stands inside that [WorldGuard](https://enginehub.org/worldguard) region. Only offered when WorldGuard is installed. | | world-time | World Time | The time of day in the player's world is inside the range, both ends included, such as `08:00-14:45`. Tick 0 reads as 06:00, so `/time set noon` is 12:00 and `/time set midnight` is 00:00. A range such as `22:00-06:00` runs past midnight. | | playtime | Playtime | The player has played at least that long on this server, such as `15m`, `12h` or `5d 12h`. Days, hours, minutes and seconds can be combined. | ## Operator How a **compare** check weighs Input against Output. `>`, `>=`, `==`, `!=`, `<` and `<=` compare them as numbers. `equals`, `equals ignorecase`, `contains` and `not contains` compare them as text. Input and Output accept PlaceholderAPI placeholders, such as `%player_level%` against `30`. ## Negate Flips the check, so it passes when it would fail. A negated **permission** check passes for players without the permission, and a negated **platform** check set to Bedrock passes for Java players. <figure><img src="../../.gitbook/assets/requirements/negate.png" alt="" width="563"><figcaption><p>Requirement (Negate)</p></figcaption></figure> > **Warning:** A check that cannot be evaluated refuses the transaction, negated or not: a placeholder with PlaceholderAPI not installed, a number operator where either side is not a number, a gamemode or platform that does not exist, an unreadable time range or playtime, a region check with WorldGuard not installed, an unknown operator or an unknown type. The console says why, once per check. ## Applies To Whether the check runs on buying, on selling, or on both, which is the default. A check that does not apply to a transaction is ignored for it, and does not count towards the [Minimum](#minimum). <figure><img src="../../.gitbook/assets/requirements/applies-to.png" alt="" width="563"><figcaption><p>Requirement (Applies To)</p></figcaption></figure> ## Deny Actions Actions run when this check fails and the transaction is refused, such as a message telling the player what they are missing, a sound or a title. When several checks fail, each one runs its own deny actions. <figure><img src="../../.gitbook/assets/requirements/deny-actions.png" alt="" width="563"><figcaption><p>Requirement (Deny Actions)</p></figcaption></figure> > **Info:** A refused transaction sends no message of its own, only the shop's [deny actions](../shops/edit-shop.md#actions), a sound by default. Use deny actions to tell the player why. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/items/requirements --- # 📊 Stock & Restock > **Info:** This feature is only available with the Premium Plan. Stock limits apply to buying only. Stock is counted in items, not purchases: an entry whose display amount is 16 with a stock of 64 sells out after 4 purchases. It is kept per shop, category and item identifier, so renaming any of them starts the count over. ## Stock How many are for sale, shared by every player. `-1` means as many as they like. Selling the item back puts it back on the shelf, up to this number. Raising the stock in the editor adds the difference to what is left right away. <figure><img src="../../.gitbook/assets/stock-and-restock/stock.png" alt="" width="563"><figcaption><p>Stock</p></figcaption></figure> ## Player Limit How many one player may buy between two restocks. `-1` means as many as they like. A restock resets every player's count. <figure><img src="../../.gitbook/assets/stock-and-restock/player-limit.png" alt="" width="563"><figcaption><p>Stock (Player Limit)</p></figcaption></figure> On Premium, the [IP limit](../../configurations/settings-file.md#ip-limit) also caps how many accounts on one connection can buy the item between restocks, so alternate accounts cannot multiply a player's limit. ## Sell Limit How many one player may sell between two restocks. `-1` means as many as they like. A restock resets every player's count, and `/sell` and AutoSell sell only up to what is left. <figure><img src="../../.gitbook/assets/stock-and-restock/sell-limit.png" alt="" width="563"><figcaption><p>Stock (Sell Limit)</p></figcaption></figure> ## Limit Group A name shared by several items of the same shop, such as `crate_keys`. Items with the same group share one count per player: buying any of them counts toward the player limit of all of them, and the same for selling. The limit checked is the one of the item being bought or sold. Case does not matter, and empty means no group. <figure><img src="../../.gitbook/assets/stock-and-restock/limit-group.png" alt="" width="563"><figcaption><p>Stock (Limit Group)</p></figcaption></figure> Stock stays per item. The [IP limit](../../configurations/settings-file.md#ip-limit) is counted per group too. A restock of any item in the group resets the whole group's counts. With the Network add-on's shared stock, groups are not applied and each item keeps its own counts. ## Commands | Command | Permission | Description | | --- | --- | --- | | `/pshop limits reset <player> [shop] [category] [item]` | phoenixshop.command.limits | Resets a player's buy and sell counts, for everything or only one shop, category or item. Works for offline players, by name or UUID. Resetting an item in a limit group resets the whole group. | | `/pshop stock set <shop> <category> <item> <amount>` | phoenixshop.command.stock | Sets how many are left, between 0 and the item's stock. Only for items with a stock limit. | | `/pshop stock restock <shop> <category> <item>` | phoenixshop.command.stock | Restocks the item now: full stock, and every player's counts for it, or its limit group, are reset. Posts the restock [webhook](../../features/discord-webhooks.md). | `/pshop limits` is not available with the Network add-on's shared stock. ## Restock When the item goes back to its full stock. Every restock also resets the player limits. Choose the mode first, then the fields that mode shows. <figure><img src="../../.gitbook/assets/stock-and-restock/restock.png" alt="" width="563"><figcaption><p>Stock (Restock)</p></figcaption></figure> | Mode | Fields | Comes back | | --- | --- | --- | | Never | None | Never on its own. | | Interval | Days (0 to 365), Hours, Minutes | That long after it sold out. | | Daily | Time | Every day at that time. | | Weekly | Weekday, Time | Every week on that day at that time. | | Monthly | Day of Month (1 to 28), Time | Every month on that day at that time. | The Turn Off button sets the mode back to Never. Times use the server's clock. Time opens a time picker and Weekday a day picker, see [Date and Time Pickers](../categories/edit-category.md#date-and-time-pickers). > **Warning:** Interval only starts counting once the stock runs out. An item with a player limit and no stock limit never runs out, so its player limits only reset with a Daily, Weekly or Monthly restock. The restock rule is written in the item's entry as a `restock` block, which can also be typed by hand: | Key | Used by | Description | | --- | --- | --- | | `type` | all | `NEVER`, `INTERVAL`, `DAILY`, `WEEKLY` or `MONTHLY`. | | `every` | `INTERVAL` | How long after it sells out, such as `30m`, `6h` or `1d12h`. Units are `s`, `m`, `h` and `d`. | | `time` | `DAILY`, `WEEKLY`, `MONTHLY` | The time of day, such as `'04:00'`. | | `day` | `WEEKLY`, `MONTHLY` | A weekday such as `MONDAY`, or a day of the month from `1` to `28`. | ```yml restock: type: WEEKLY day: MONDAY time: '04:00' ``` An item with no `restock` block never restocks. > **Info:** A block that cannot be read is treated as `NEVER`. ## Availability Limits when the item is for sale at all. Outside that time it is hidden from the shop, `/sell` and sign shops, and cannot be bought or sold. Leave a field empty to not use it. This feature is only available with the Premium Plan. <figure><img src="../../.gitbook/assets/stock-and-restock/available-from.png" alt="" width="563"><figcaption><p>Stock (Available From)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/stock-and-restock/available-until.png" alt="" width="563"><figcaption><p>Stock (Available Until)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/stock-and-restock/sale-window.png" alt="" width="563"><figcaption><p>Stock (Sale Window)</p></figcaption></figure> | Field | Description | | --- | --- | | Available From | The date and time it goes on sale, picked in the [date picker](../categories/edit-category.md#date-and-time-pickers). | | Available Until | The date and time it stops being for sale. | | Sale Window | How long it stays for sale after each restock, such as `2h`. Only used with a Daily, Weekly or Monthly restock, counting from the restock time. | With a Daily restock at 18:00 and a 2h window, the item is for sale from 18:00 to 20:00 every day. Dates and times use the server's time zone. ```yaml available: from: '2026-10-25 00:00' until: '2026-11-01 00:00' window: 2h ``` Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/items/stock-and-restock --- # 🏬 Player Shops > **Info:** Every player shop is stored in the database, SQLite or MySQL as set in config.yml. A player-shops.yml from an older version is moved into the database on the first start and renamed to player-shops.yml.migrated. Its settings are in the player-shops section of config.yml. ## Information A player shop is a sign on a container that the player owns. The container is the stock: buyers take items out of it, sellers put items into it, and the money goes straight between the two players. The server never stands in the middle of a trade. <figure><img src="../../.gitbook/assets/chest-shops/chest-shops.png" alt="" width="563"><figcaption><p>Editor (Chest Shops)</p></figcaption></figure> On Lite each player can own up to 25 player shops, and [admin shops](#admin-shops) are capped at 25 across the server. Everything else on these pages works on Lite too. ## Create a Player Shop Player shops are off until they are turned on with [Enabled](settings.md#enabled). Then hold the item to sell and Shift + Left-Click a chest, trapped chest, barrel or shulker box you can open. [Click Creation](settings.md#click-creation) changes that click. The shop is made straight away: a [sign](settings.md#sign-material) goes up on the side you clicked, or on another free side, the [Creation Cost](settings.md#creation-cost) is charged, and the shop sells one item per click to players. The shop's editor opens straight away to pick the [mode](edit-player-shop.md#mode) and the prices. Its prices start at 0, so set them there before anyone trades; right-click the sign to come back to it later. See [Edit Player Shop](edit-player-shop.md). A normal Left-Click breaks the container as usual. In creative mode the click no longer breaks the container when a shop is made from it. An ender chest makes an ender chest shop. Its stock is the owner's own ender chest, so they can restock it from any ender chest in the world, and several ender chests can each carry a shop. The shop only trades while the owner is online, since an offline player's ender chest cannot be reached. Staff cannot restock it, because opening the ender chest shows them their own. An admin shop on an ender chest works like any other admin shop. Nothing happens at all while player shops are turned off (except for admin shops on Lite), for a player without `phoenixshop.sign.create`, or on a container that already has a shop. Otherwise the player is told why no shop was made when: * The world is one of the [Blocked Worlds](settings.md#blocked-worlds). A player with `phoenixshop.sign.bypass` can still make one. * The block is turned off in [Shop Blocks](settings.md#shop-blocks). * The item is on the [Blocked Items](settings.md#blocked-items) list. * The item is a renamed lookalike of a real plugin item, or uses one of the [Protected Names](settings.md#protected-names). See [Fake Items](#fake-items). * The player cannot open the container, for example because a lock plugin or a claim keeps them out. * [Require Claim](settings.md#require-claim) is on and the container is not inside a claim the player can build in. * The player already owns as many shops as their [limit](settings.md#max-per-player) allows. * The player cannot pay the [Creation Cost](settings.md#creation-cost). * The container has no free side for the sign, or the player is not allowed to build where it would go. ## Fake Items A renamed item that does not come from a supported item plugin cannot be sold, bought or used as a payment when its name matches a real plugin item. Colors, case, accents, small caps and word order are ignored, and the real item's id counts as a name too, so a paper renamed **Vote Key** is refused because of the PhoenixCrates key `phoenixcrates:key:vote`, whatever that key is called on the server. The real items it knows are every item of the installed item plugins: PhoenixCrates keys and crates, Nexo, ItemsAdder, MMOItems, MythicMobs, ExecutableItems, ExecutableBlocks, CraftEngine and Slimefun. The list is built a few seconds after startup and after `/pshop reload`, and again every 10 minutes. Head plugins are not checked. Add any other name to [Protected Names](settings.md#protected-names). Items that were only renamed, such as a sword called Bob's Sword, are still allowed. A shop that was set up with a fake item before stops trading. ## Admin Shops An admin shop never runs out or fills up, pays and takes no one's money, and shows Admin Shop as its owner. A player with `phoenixshop.sign.admin` turns any shop into one with [Admin Shop](edit-player-shop.md#admin-shop) in its editor. <figure><img src="../../.gitbook/assets/chest-shops/admin-shops.png" alt="" width="563"><figcaption><p>Chest Shops (Admin Shops)</p></figcaption></figure> For a player with `phoenixshop.sign.admin` but not `phoenixshop.sign.create`, the left-click makes an admin shop straight away. It costs nothing and does not count towards the limit. Lite has no Admin Shop toggle, so this is the only way to make one there. ## Sign Text The four lines are the owner's name in green, then the mode with the amount traded per click, the item, and the price, with buy prices in red and sell prices in green. The mode reads `Selling: 16`, `Buying: 32` or `Buy & Sell: 16`. A shop that buys and sells shows both prices with what they are paid in, such as `B $2 S $1`, or `B2 S1 Diamond` when it is paid in an item. An admin shop shows Admin Shop as its owner. Prices of 1,000 and up are shortened on the sign, such as `$100k`, `$10m` or `$1.5q`, while chat messages show the full price. The mode line of a Buy shop also shows how many are left, such as **Selling: 1 - 58**, shortened from 1,000 up, such as **Selling: 1 - 1.2k**. Buy & Sell shops and admin shops leave the count out. A [disabled](edit-player-shop.md#enabled) shop shows \[Disabled] on the mode line. When a shop that sells to players no longer holds enough for one trade, the mode line turns into a bold \[Out of Stock] and the owner's name turns red until it is restocked. A shop that buys from players shows \[Chest Full] the same way when its container has no room for one more trade. The price hologram shows the same two states. The sign is checked after every trade, when the shop's container is closed, a second after a hopper or hopper minecart moves items in or out, and when its chunk loads. A sign line holds 15 characters, so a longer line is cut short and the owner is told which one. The text comes from the player-shops.sign section of the translations file. ## Navigation | Features | Description | | --- | --- | | [Item](edit-player-shop.md#item) | The item the sign trades. | | [Amount](edit-player-shop.md#amount) | How many change hands in one click. | | [Mode](edit-player-shop.md#mode) | Whether players buy, sell or both. | | [Enabled](edit-player-shop.md#enabled) | Stop every trade without removing the shop. | | [Buy Price](edit-player-shop.md#buy-price) | What a player pays the owner. | | [Sell Price](edit-player-shop.md#sell-price) | What the owner pays a player. | | [Currency](edit-player-shop.md#currency) | What an admin shop is priced in. | | [Remove](edit-player-shop.md#remove) | Break the sign to take it down. | | [Trading](trading.md) | Buying and selling on a sign. | | [Protection](trading.md#protection) | Who can break or open the shop. | | [Owner Notices](trading.md#owner-notices) | The messages an owner gets about their trades. | | [Shop List](#shop-list) | Every player shop in one menu. | | [Find a Shop](#find-a-shop) | The nearest shops that sell or buy an item. | | [Market](#market) | Every traded item with its cheapest seller and best buyer. | | [Discount](edit-player-shop.md#discount) | A timed price cut on a shop. | | [Edit By Command](#edit-by-command) | Change the shop you look at without the editor. | | [Map Markers](settings.md#map-markers) | Player shops on BlueMap, dynmap and squaremap. | | [Transfer](#transfer) | Hand a shop to another player. | | [Inactive Owners](#inactive-owners) | Remove the shops of players who stopped playing. | | [Bulk Removal](#bulk-removal) | Remove empty shops, or every shop of a player or a world. | | [Settings](settings.md) | Turn player shops on or off, the creation cost and the limit. | ## Shop List The player shop commands are under `/chestshop`, or `/cs`, which can be renamed or turned off with [Chest Shop Command](settings.md#chest-shop-command). `/chestshop list` lists every player shop with an item, with its [name](edit-player-shop.md#name), owner, amount and prices. Where a shop is stays hidden from players; admins see it in the [Player Shops Editor](#player-shops-editor). `/chestshop list <search>` keeps only the shops whose item, owner or name contains the search. It needs `phoenixshop.sign.list`, which everyone has by default. Each entry also shows the item's own enchantments and lore. Left-click a shop to teleport in front of its sign. That needs [Teleport](settings.md#teleport) on and `phoenixshop.sign.teleport`, given to everyone by default, and the shop's [Allow Teleport](edit-player-shop.md#allow-teleport) on. A shop with it off does not offer the click and says so instead, unless you own it or hold `phoenixshop.sign.admin`. Right-click it to trade with it from where you stand, which needs [Remote Trading](settings.md#remote-trading) on and `phoenixshop.sign.remote`, given to everyone by default. The **Filter** button at the bottom shows all shops, only the ones selling, or only the ones buying. The **Order** button sorts them by their price for one item, lowest or highest first; on All, a shop that sells is sorted by its buy price and one that only buys by its sell price. **Show Only My Own** next to it lists only your own shops. ## Find a Shop `/chestshop find <search>` opens a menu of the shops that sell the item and the shops that buy it, the ones in your world first and closest first, with the owner, amount, price and location. Add `selling` or `buying` at the end to open it with the Filter already set to that side. It needs `phoenixshop.sign.find`, which everyone has by default. The search matches every word you type against the item's name, its material and its custom item id, so `/chestshop find vote key` finds a PhoenixCrates vote key (`phoenixcrates:key:vote`), and `/chestshop find adamantium` or `/chestshop find nexo:adamantium_ingot` finds a Nexo item. Shops whose item matches through its plugin id are listed before shops that only match by name, so the real item comes first. Without a search it looks for what you hold in your main hand. Tab completion offers the names of the items that are in shops, and the id of a custom item you hold. Each shop also shows how many items it has in stock, or how much room is left in a shop that buys. Shops in a loaded area show the live count, and the others the count from their last trade or restock. Its clicks and its Filter and Order buttons work like the [Shop List](#shop-list). A Buy & Sell shop is listed under Selling only while it has stock, and under Buying only while its container has room. A shop that sells is listed only while it holds enough for one trade, and a shop that buys only while its container has room. Admin shops always pass this check, and [disabled](edit-player-shop.md#enabled) shops are left out. A shop whose chunk is not loaded is listed without the check, since its container cannot be read. The **Price Overview** at the top sums up the item for one piece: how many shops sell it and the lowest and average price, how many buy it and the best and average offer, and the average price it actually traded at over the last 30 days. Only shops priced in the currency most of them use count, and shops paid in items are left out. Trades made before this overview existed carry no price and are not counted. ## Market ⭐ `/chestshop market` lists every item that is in a chest shop once, with the cheapest shop selling it and the shop paying the most for it, both for one piece, and how many shops sell and buy it. Left-click an item to open [Find a Shop](#find-a-shop) for it. The **Order** button sorts by the number of shops, by name, or cheapest first. The same item priced in two currencies shows as two entries, and shops paid in items, disabled shops and shops without a price are left out. It needs `phoenixshop.sign.find`, and the menu can be changed in menus/chest-shops/market.yml. ## Edit By Command Look at a chest shop's sign or container and run `/chestshop editor` to open its [editor](edit-player-shop.md), or change it without opening the editor: | Command | Changes | | --- | --- | | `/chestshop price <buy\|sell> <price>` | The [Buy Price](edit-player-shop.md#buy-price) or [Sell Price](edit-player-shop.md#sell-price). | | `/chestshop amount <amount>` | The [Amount](edit-player-shop.md#amount). | | `/chestshop mode <buy\|sell\|both>` | The [Mode](edit-player-shop.md#mode). | | `/chestshop name <name>` | The [Name](edit-player-shop.md#name), `-` clears it. | | `/chestshop discount <percent> <length>` | Starts a [Discount](edit-player-shop.md#discount), such as `20 2h`; `off` ends it. | Only the owner, or a player with `phoenixshop.sign.admin`, can use them, and they need `phoenixshop.sign.create`. When an admin changes another player's shop this way, the owner is told who changed what if they are online; add `-s` at the end, such as `/chestshop discount 20 2h -s`, to change it without telling them. The same checks as the editor apply, so a price outside the [Price Limits](settings.md#price-limits) is refused with the reason. ## Player Shops Editor **Chest Shops** on the main editor menu first asks for **Player Shops**, **Admin Shops** or the server-wide [Settings](settings.md). The first two list every shop of that type on the server, including imported shops still waiting for their chunk to load. Its Status toggle turns player shops on or off. Filter the list by mode, or by text in the item, owner or shop name. From there an admin can open any shop's editor, teleport to it, take a copy of its item, or remove it, with the usual refund rules. The shop editor opened from here leaves out the Admin Shop toggle. <figure><img src="../../.gitbook/assets/chest-shops/player-shops-editor.png" alt="" width="563"><figcaption><p>Player Shops (Iron Ingot)</p></figcaption></figure> Each entry also shows whether a custom item from Nexo, ItemsAdder, MMOItems or another supported item plugin still matches that plugin's current version of it. **Outdated** means the plugin changed the item after the shop was made. Trades still work, since custom items match by id, but the shop's sign, display and menus keep showing the old copy. **Item or plugin missing** means the plugin no longer has that item, or the item carries the tags of a plugin that is not installed. Not every item plugin leaves such tags, so an item from an uninstalled plugin can still show as up to date. An item payment is checked the same way. When the shop's chunk is loaded, the entry also counts the old copies sitting in its container; an ender chest shop is only counted while its owner is online. The Item Status filter narrows the list to outdated or missing shops. Press the drop key (Q) on an outdated entry to replace the shop's item, and its payment item if that is outdated too, with the current version. The trade amount stays the same. Items already in the container are not touched. ## Transfer An owner hands a shop to another player by looking at its sign or container and running `/chestshop transfer <player>`. It needs `phoenixshop.sign.transfer`, which everyone has by default. The new owner has to be online or have played on the server before, and the shop has to fit within their [limit](settings.md#max-per-player). For an offline player the Max Per Player setting counts, since their permissions cannot be read. The shop keeps its item, prices, contents, name and history, and the sign shows the new owner. The new owner is taken off its staff, and sale notices still waiting for the old owner are dropped. A later [refund](settings.md#refund-on-remove) goes to the new owner. Both players are told if they are online. With `phoenixshop.sign.admin`, an admin can transfer any shop they look at, whatever the new owner's limit, and `/chestshop transferall <from> <to>` moves every shop of one player to another. Admin shops cannot be transferred. ## Inactive Owners With [Purge Inactive Days](settings.md#purge-inactive-days) above 0, the shops of owners who have not played for that many days are removed shortly after the server starts and once a day after that. Admin shops are never removed, and neither are the shops of online owners or of owners the server has no last-played time for. The sign is removed like any other removal, the container keeps everything inside it, and nothing is refunded. The console logs how many shops were removed. `/chestshop purge [days]` shows how many shops would go, using the setting when no days are given. `/chestshop purge <days> confirm` removes them. It needs `phoenixshop.sign.admin`. ## Bulk Removal Each of these commands first shows how many shops would go, and removes them when run again with `confirm`. They need `phoenixshop.sign.admin`. | Command | Removes | | --- | --- | | `/chestshop clean [confirm]` | The shops in loaded chunks that sell to players and hold less than one trade. Admin shops and ender chest shops are skipped. | | `/chestshop removeall <player> [confirm]` | Every shop that player owns. Admin shops are kept. | | `/chestshop removeworld <world> [confirm]` | Every chest shop in that world, admin shops included. | The sign is removed, the container keeps everything inside it, and nothing is refunded. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/player-shops --- # ✏️ Edit Player Shop > **Info:** The owner opens this menu by right-clicking their own sign, or by looking at the sign or its container and running `/chestshop editor`, and it opens by itself when a shop is made. A player with `phoenixshop.sign.admin` can open any shop's editor with `/chestshop editor`. Every change is saved and written onto the sign straight away. The look of this menu and of its Player Limits, Discount, Staff, History and Logs screens can be changed in their menu files, see [Customize Menus](../../configurations/customize-menus.md#your-shop). ## Item The item the sign trades. Drop an item from your inventory onto the slot. The item is copied exactly, name, lore and enchantments included, and only an identical item can be sold into the shop. An item from ItemsAdder, Nexo, ExecutableItems, PhoenixCrates and the other supported plugins is matched by its id instead, so the shop keeps trading it after that plugin changes the item's look or lore. The stack size you drop also becomes the [Amount](#amount). <figure><img src="../../.gitbook/assets/edit-player-shop/item.png" alt="" width="563"><figcaption><p>Your Shop (Item)</p></figcaption></figure> A sign with no item yet refuses every trade. Items on the server's [Blocked Items](settings.md#blocked-items) list cannot be dropped here. ## Amount How many of the item change hands in one click. It can go above one stack, up to [Max Amount](settings.md#max-amount), and the prices are for that whole amount. <figure><img src="../../.gitbook/assets/edit-player-shop/amount.png" alt="" width="563"><figcaption><p>Your Shop (Amount)</p></figcaption></figure> ## Mode Click to choose what customers can do on the sign. <figure><img src="../../.gitbook/assets/edit-player-shop/mode.png" alt="" width="563"><figcaption><p>Your Shop (Mode)</p></figcaption></figure> | Mode | Customers | | --- | --- | | Buy | Buy out of the container. | | Sell | Sell into the container, and the owner pays them. | | Buy & Sell | Buy with a right-click, sell with a left-click. | ## Allow Teleport Whether other players can teleport to this shop from the [shop list](README.md#shop-list) and the [find menu](README.md#find-a-shop). With it off they are told teleporting is disabled, the owner included; only players with `phoenixshop.sign.admin` still can. <figure><img src="../../.gitbook/assets/edit-player-shop/allow-teleport.png" alt="" width="563"><figcaption><p>Your Shop (Allow Teleport)</p></figcaption></figure> ## Enabled Turn it off to stop every trade on the shop without removing it. While it is off, the sign's mode line shows \[Disabled], the owner's name turns red, the [Price Hologram](#price-hologram) says the shop is disabled, and the shop is left out of the find menu. <figure><img src="../../.gitbook/assets/edit-player-shop/enabled.png" alt="" width="563"><figcaption><p>Your Shop (Enabled)</p></figcaption></figure> ## Buy Price What a customer pays the owner for one click's worth of the item. Click and type the amount, in a dialog where the server supports one, otherwise in chat. Shorthands from `k` up to `q`, such as `1.5k`, `2m` or `10q`, are accepted. A price has to be at least 0.01 and have at most 2 decimals; a side with no price set does not trade. A price outside the server's [Price Limits](settings.md#price-limits) is refused, and on a Both shop the sell price cannot be higher than the buy price unless [Allow Sell Above Buy](settings.md#allow-sell-above-buy) is on. <figure><img src="../../.gitbook/assets/edit-player-shop/buy-price.png" alt="" width="563"><figcaption><p>Your Shop (Buy Price)</p></figcaption></figure> ## Sell Price What the owner pays a customer for one click's worth of the item. It is typed the same way, shorthands included. The money comes out of the owner's own balance, so a sale is refused when the owner cannot afford it. <figure><img src="../../.gitbook/assets/edit-player-shop/sell-price.png" alt="" width="563"><figcaption><p>Your Shop (Sell Price)</p></figcaption></figure> ## Currency ⭐ What the sign is priced in. On an [admin shop](README.md#admin-shops), left-click swaps between the currency types the server has installed, and right-click picks the currency within the type. The Item currency is not offered there, and the Placeholder currency needs Premium. <figure><img src="../../.gitbook/assets/edit-player-shop/currency.png" alt="" width="563"><figcaption><p>Your Shop (Currency)</p></figcaption></figure> On a player's own shop the option only shows when the server allows more than one currency in [Currencies](settings.md#currencies), and offers only those. Otherwise the shop is priced in the default currency. Its signs, hologram, shop list, find results and messages all show prices in the chosen currency, and the owner is paid in it. With a currency that only reaches online players, such as experience, see [Buying and Selling](trading.md#buying-and-selling) for what happens while the owner is offline. <figure><img src="../../.gitbook/assets/edit-player-shop/player-currency.png" alt="" width="563"><figcaption><p>Your Shop (Currency, player shop)</p></figcaption></figure> > **Warning:** A sign priced in a currency whose plugin is not installed refuses every trade until it is. The editor warns about it on this option. ## Pay With Item ⭐ Drop an item here to price the shop in that item instead of money, such as diamonds or a custom coin. The buy and sell prices then become how many of it change hands, so they have to be whole numbers. A buyer's payment goes into the container, and the shop pays sellers out of it, so the owner has to keep it stocked. Left-click the slot with an empty hand to take the item off and go back to money. This is also how a shop barters one item for another. <figure><img src="../../.gitbook/assets/edit-player-shop/pay-with-item.png" alt="" width="563"><figcaption><p>Your Shop (Pay With Item)</p></figcaption></figure> ## Name A name for the shop of up to 32 characters. It shows in the shop's information panel, the [Shop List](README.md#shop-list) and the Player Shops editor, and searches in both lists match it. Colour codes are removed, and the name is not written on the sign. Type `-` to clear it. <figure><img src="../../.gitbook/assets/edit-player-shop/name.png" alt="" width="563"><figcaption><p>Your Shop (Shop Name)</p></figcaption></figure> ## Display How the traded item is shown on the container. It is only offered while [Display Items](settings.md#display-items) is on. <figure><img src="../../.gitbook/assets/edit-player-shop/display.png" alt="" width="563"><figcaption><p>Your Shop (Display)</p></figcaption></figure> | Style | Shows | | --- | --- | | None | Nothing. | | Floating | The item above the container, bobbing up and down and spinning. | | Large | The same, at a bigger size. | | Glass Case | The item turning slowly inside a small glass block on top. | | Flat | The item lying still on top, facing the sign. When the sign stands on the container, the item sits on the side the sign faces instead. | | Orbit | Smaller copies of the item circling slowly above the container. One copy per 16 items in the [Amount](#amount), between 2 and 6. | ## Price Hologram Shows the shop's prices above the displayed item, along with how many items are left, or an out-of-stock line once there are fewer than one click's worth. It updates after every trade, whenever the container is closed, and a second after a hopper or hopper minecart moves items in or out. The stock line is left out on admin shops, on Sell shops, and on ender chest shops while the owner is offline. Needs a [Display](#display) style other than None. <figure><img src="../../.gitbook/assets/edit-player-shop/price-hologram.png" alt="" width="563"><figcaption><p>Your Shop (Price Hologram)</p></figcaption></figure> ## Mode Glow Gives the displayed item a coloured outline matching the [Mode](#mode): red for Buy, green for Sell and gold for Both. Needs a [Display](#display) style other than None. <figure><img src="../../.gitbook/assets/edit-player-shop/mode-glow.png" alt="" width="563"><figcaption><p>Your Shop (Mode Glow)</p></figcaption></figure> ## Player Limits ⭐ Caps how many items one player can buy and how many they can sell on this shop within a time window, such as 64 a day. Each side has its own limit, and 0 leaves that side open. A player's window starts with their first limited trade and resets once it has run out, so the count is not shared by everyone on a fixed clock. <figure><img src="../../.gitbook/assets/edit-player-shop/player-limits.png" alt="" width="563"><figcaption><p>Your Shop (Player Limits)</p></figcaption></figure> A customer over the limit is told how many they have left and when it resets, and the info panel shows the same. With [Partial Trades](trading.md#partial-trades) on, a trade larger than what is left goes through for the rest of the allowance. ## Discount ⭐ Lowers the [Buy Price](#buy-price) by a percentage, from 1 to 90, for a set length such as `2h` or `1d`. Set the percentage and length, then turn the discount on. While it runs, the sign, the [Price Hologram](#price-hologram), the shop list, find and the market all use the lowered price, the hologram adds a "% off" line, and the info panel shows the old price and the time left. It ends by itself and the owner is told. Only the buy side is discounted, so a Sell shop cannot run one, and neither can a shop [paid with an item](#pay-with-item). `/chestshop discount` does the same from the [command line](README.md#edit-by-command). ## Staff ⭐ Players who can open the container to restock it or take the takings out. They cannot change the shop, break it or remove it. A player has to be online to be added, and a vanished player counts as offline, so adding one gives nothing away. A shop takes up to 7, and removing one asks for confirmation first. Each staff member can get a percentage of the shop's earnings. Sales are split after [tax](settings.md#tax-percent) and the owner keeps the rest, so the shares together can't go above 100 percent. Shares only apply to money currencies such as Vault, PhoenixCurrencies, PlayerPoints and ExcellentEconomy, never to items, experience, levels, PlaceholderAPI currencies or a shop [paid with an item](#pay-with-item). An offline staff member is paid straight away when the currency allows it, otherwise when they next join. Removing a staff member removes their share. <figure><img src="../../.gitbook/assets/edit-player-shop/staff.png" alt="" width="563"><figcaption><p>Your Shop (Staff)</p></figcaption></figure> ## History The latest 20 trades on the shop, newest first, with the customer, the amount, what was paid and when. <figure><img src="../../.gitbook/assets/edit-player-shop/history.png" alt="" width="563"><figcaption><p>Your Shop (History)</p></figcaption></figure> ## Logs Opened from the [Staff](#staff) menu. What the shop's staff put into the container or took out of it, newest first, with who, which item, how many and when. Each time a staff member closes the container, every item they changed becomes one entry. The owner's own restocking is not logged, and a shop keeps its latest 50 entries. <figure><img src="../../.gitbook/assets/edit-player-shop/logs.png" alt="" width="563"><figcaption><p>Your Shop (Logs)</p></figcaption></figure> ## Admin Shop Shown only to a player with `phoenixshop.sign.admin`. Turns the shop into an [admin shop](README.md#admin-shops) and back. An admin shop gets its own [Currency](#currency); turning it back into a player shop resets the currency to the default one unless players are allowed to use it. The creation cost already paid stays with the shop, so a later refund still goes to the owner. ## Remove Break the sign or the container to take the shop down. The sign is removed without dropping, since the plugin placed it. The container becomes a normal container again, with everything still inside it. With [Refund On Remove](settings.md#refund-on-remove) on, the creation cost paid for the shop comes back to the owner. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/player-shops/edit-player-shop --- # ⚙️ Settings > **Info:** These options are in chest-shops.yml, except Chest Shop Command, which is in the commands section of config.yml. Servers that had them in the player-shops section of config.yml get them moved there on the first start. All of them except Price Limits and Chest Shop Command can also be changed in **Editor > Chest Shops > Settings**, grouped into Creating Shops, Trading, Items & Prices, Displays and Teleport & Remote, where they apply at once. chest-shops.yml: ```yaml enabled: false creation-cost: 0 max-per-player: 0 refund-on-remove: true max-amount: 3456 blocked-items: [] blocked-worlds: [] allowed-containers: - chest - trapped_chest - barrel - shulker_box - ender_chest sign-material: OAK_SIGN protected-names: [] short-prices: true click-confirm: enabled: true minutes: 5 display-items: true glow-distance: 6 hologram-distance: 6 hologram-style: scale: 0.6 height-offset: 0.0 billboard: CENTER alignment: CENTER line-width: 200 text-shadow: false see-through: false background: default text-opacity: 100 tax-percent: 0 allow-sell-above-buy: false price-limits: {} partial-trades: true purge: inactive-days: 0 claims: require-claim: false map-markers: enabled: true trade-click: INSTANT teleport: true teleport-countdown: 3 remote-trading: false currencies: - money ``` config.yml: ```yaml commands: chest-shop: enabled: true alternative: chestshop aliases: - cs ``` ## Enabled Turns player shops on or off for the whole server. They are off until you turn them on. While off, nobody can trade on a player shop, the owner included, and left-clicking a container makes no new one. Existing shops stay where they are and work again once it is back on. On Lite, [admin shops](README.md#admin-shops) ignore it: they keep trading and can still be made while it is off. <figure><img src="../../.gitbook/assets/chest-shop-settings/enabled.png" alt="" width="563"><figcaption><p>Settings (Chest Shops)</p></figcaption></figure> It is also the Status toggle in **Editor > Sign Shops > Settings** and in the **Player Shops** editor. ## Click Creation How hitting a container with an item makes a shop. Shift + Left-Click is the default, so a normal Left-Click always breaks the container. Left-Click twice asks for a second click on the same container with the same item within 3 seconds. Command turns clicking off: players hold the item, look at the container and type `/chestshop create`. That command only shows up while Command is picked. ## Creation Cost What a player pays once, when the shop is made. It is charged in the Vault currency, and a player who cannot afford it gets no shop. Set it to 0 to make shops free. <figure><img src="../../.gitbook/assets/chest-shop-settings/creation-cost.png" alt="" width="563"><figcaption><p>Creating Shops (Creation Cost)</p></figcaption></figure> > **Warning:** With a cost above 0 and no Vault economy installed, nobody can create a player shop. ## Max Per Player How many shops one player can own at a time. Removing a shop frees a place. Set it to 0 for no limit. On Lite the limit is never higher than 25, or 30 on a [linked server](../../plugin-information/licensing.md#linking-a-lite-server), and 0 means that cap. <figure><img src="../../.gitbook/assets/chest-shop-settings/max-per-player.png" alt="" width="563"><figcaption><p>Creating Shops (Max Per Player)</p></figcaption></figure> A permission overrides it per player. `phoenixshop.sign.limit.<number>` sets that player's limit, and the highest one they hold counts. `phoenixshop.sign.limit.unlimited` removes the limit. On Lite neither the setting nor a permission can go above that cap. ## Refund On Remove Gives the owner back what they paid for the sign when the shop is removed, whether they take it down from its menu or break the sign or container. The refund is what was paid at the time, even when the Creation Cost has changed since. <figure><img src="../../.gitbook/assets/chest-shop-settings/refund-on-remove.png" alt="" width="563"><figcaption><p>Creating Shops (Refund On Remove)</p></figcaption></figure> ## Max Amount The highest [Amount](edit-player-shop.md#amount) an owner can set on a shop, per click. It is also the most a customer can [choose to trade](trading.md#choosing-an-amount) at once. <figure><img src="../../.gitbook/assets/chest-shop-settings/max-amount.png" alt="" width="563"><figcaption><p>Trading (Max Amount)</p></figcaption></figure> ## Blocked Items Items that cannot be traded in player shops. A plain item blocks every item of that type, an item with a name, lore or enchants blocks only that exact item, and a custom plugin item blocks that plugin item. An owner cannot put one on a shop, and a shop that already trades one refuses every trade. <figure><img src="../../.gitbook/assets/chest-shop-settings/blocked-items.png" alt="" width="563"><figcaption><p>Items & Prices (Blocked Items)</p></figcaption></figure> ## Blocked Worlds Worlds where no player shop can be created. A player with `phoenixshop.sign.bypass` can still put one up there. Shops that already exist in such a world keep working. <figure><img src="../../.gitbook/assets/chest-shop-settings/blocked-worlds.png" alt="" width="563"><figcaption><p>Creating Shops (Blocked Worlds)</p></figcaption></figure> ## Shop Blocks The blocks a player shop can be made on: chests, trapped chests, barrels, shulker boxes and ender chests, all allowed by default. A player who tries a turned-off block is told it isn't allowed. Shops already on that block keep working. ## Sign Material The sign placed on new shops. Any wooden sign works, given as its standing or wall name, such as `SPRUCE_SIGN` or `SPRUCE_WALL_SIGN`. Anything else falls back to oak. Hanging signs are not supported. <figure><img src="../../.gitbook/assets/chest-shop-settings/sign-material.png" alt="" width="563"><figcaption><p>Creating Shops (Sign Material)</p></figcaption></figure> ## Short Prices Shows prices of 1,000 and up shortened, such as `$250k` or `$1.5m`, in the chat messages, the amount prompt, the hologram and the shop menus. Smaller prices keep their cents. Turn it off to show the full amount there; signs always use the short form, since a sign line only fits 15 characters. <figure><img src="../../.gitbook/assets/chest-shop-settings/short-prices.png" alt="" width="563"><figcaption><p>Items & Prices (Short Prices)</p></figcaption></figure> ## Click Confirm Makes the first buy or sell click on a shop sign ask the player to click again, so nobody trades by accident. Once confirmed, clicks on that shop trade straight away until `minutes` pass without trading there, 5 by default. Set `enabled` to `false` to trade on every click. <figure><img src="../../.gitbook/assets/chest-shop-settings/click-confirm.png" alt="" width="563"><figcaption><p>Trading (Click Confirm)</p></figcaption></figure> ## Protected Names Names that only real plugin items may carry, on top of the ones the plugin [finds by itself](README.md#fake-items). A renamed item with one of these names is refused. Write the name as it reads in game; `*` matches anything, so `*key*` covers every renamed item with key in its name. <figure><img src="../../.gitbook/assets/chest-shop-settings/protected-names.png" alt="" width="563"><figcaption><p>Items & Prices (Protected Names)</p></figcaption></figure> ## Display Items Lets owners show their item on the container, see [Display](edit-player-shop.md#display). Turning it off removes every shown item at once. <figure><img src="../../.gitbook/assets/chest-shop-settings/display-items.png" alt="" width="563"><figcaption><p>Displays (Display Items)</p></figcaption></figure> ## Glow Distance How many blocks away a player still sees a shop's [Mode Glow](edit-player-shop.md#mode-glow). A glow outline shows through walls, so a short distance keeps players from tracking shops through the ground. Past it, the item shows without the outline. The distance grows or shrinks with each player's Entity Distance video setting. <figure><img src="../../.gitbook/assets/chest-shop-settings/glow-distance.png" alt="" width="563"><figcaption><p>Displays (Glow Distance)</p></figcaption></figure> ## Hologram Distance How many blocks away a player still sees a shop's [Price Hologram](edit-player-shop.md#price-hologram). It also follows each player's Entity Distance video setting. It sits in **Displays > Price Hologram**, next to the hologram style options below. <figure><img src="../../.gitbook/assets/chest-shop-settings/hologram-distance.png" alt="" width="563"><figcaption><p>Price Hologram (Hologram Distance)</p></figcaption></figure> ## Hologram Style How the price hologram looks on every shop. The defaults give the usual look, and every change applies to the holograms already shown. | Option | What it does | | --- | --- | | Scale | The size of the text, from 0.1 to 5. | | Height | Moves the hologram up or down, in blocks, from -3 to 3. | | Facing | `CENTER` always faces the player, `VERTICAL` only turns left and right, `HORIZONTAL` only tilts up and down, `FIXED` never turns. | | Alignment | Lines the text up `LEFT`, `RIGHT` or `CENTER`. | | Line Width | How wide a line gets before it wraps, from 10 to 1000. | | Text Shadow | Draws a shadow under the text. | | See-Through | Shows the hologram through blocks. | | Background | `default` for the usual dark box, `transparent` for none, or a color as `#AARRGGBB` (alpha first) or `#RRGGBB`. | | Text Opacity | How solid the text is, in percent from 10 to 100. | ## Tax Percent The share of every money purchase that the owner does not receive. A buyer pays the full price, and the owner gets the price minus the tax, so 10 means owners keep 90%. Shops paid in items and admin shops are never taxed. <figure><img src="../../.gitbook/assets/chest-shop-settings/tax-percent.png" alt="" width="563"><figcaption><p>Trading (Tax Percent)</p></figcaption></figure> ## Allow Sell Above Buy While off, an owner cannot set a Both shop to pay sellers more than it charges buyers. <figure><img src="../../.gitbook/assets/chest-shop-settings/allow-sell-above-buy.png" alt="" width="563"><figcaption><p>Trading (Allow Sell Above Buy)</p></figcaption></figure> ## Price Limits The lowest and highest price per single item an owner can set, by material, with `default` covering every material not listed. A max of 0 means no upper limit. The limits are in the default currency, so shops paid in items or priced in another currency are not checked. ```yaml price-limits: default: min: 0.1 max: 0 DIAMOND: min: 50 max: 500 ``` ## Partial Trades Lets a trade that cannot go through in full trade the part that can, at its share of the price, see [Partial Trades](trading.md#partial-trades). While off, such a trade is refused as a whole. <figure><img src="../../.gitbook/assets/chest-shop-settings/partial-trades.png" alt="" width="563"><figcaption><p>Trading (Partial Trades)</p></figcaption></figure> ## Purge Inactive Days ⭐ Removes the shops of owners who have not played for this many days, checked shortly after startup and once a day. See [Inactive Owners](README.md#inactive-owners). Set it to 0 to keep every shop. <figure><img src="../../.gitbook/assets/chest-shop-settings/purge-inactive-days.png" alt="" width="563"><figcaption><p>Creating Shops (Purge Inactive Days)</p></figcaption></figure> ## Require Claim Lets a player make a shop only on a container inside a claim or region where they can build. WorldGuard, GriefPrevention, Lands and Towny are checked, whichever are installed. A spot that one of them protects against the player is refused even when another allows it. With none of them installed, nothing is checked. A player with `phoenixshop.sign.bypass` skips the check, and admin shops are never checked. Existing shops stay when a claim is removed. <figure><img src="../../.gitbook/assets/chest-shop-settings/require-claim.png" alt="" width="563"><figcaption><p>Creating Shops (Require Claim)</p></figcaption></figure> ## Map Markers ⭐ Shows every player shop with an item as a marker on BlueMap, dynmap and squaremap, whichever are installed, in a layer called Player Shops. A marker shows the shop's name if it has one, the item, the amount, the owner and the prices, and follows the shop as it is created, edited or removed. Nothing is shown while player shops are turned off. The marker text comes from the player-shops.map section of the translations file. <figure><img src="../../.gitbook/assets/chest-shop-settings/map-markers.png" alt="" width="563"><figcaption><p>Displays (Map Markers)</p></figcaption></figure> ## Trade Click What a customer's click on a shop sign does. `INSTANT`, the default, trades the shop's fixed amount on every click: right-click buys, left-click sells. `PROMPT` asks how many to buy or sell instead. Sneaking and right-clicking asks for an amount either way. See [Buying and Selling](trading.md#buying-and-selling). <figure><img src="../../.gitbook/assets/chest-shop-settings/trade-click.png" alt="" width="563"><figcaption><p>Trading (Trade Click)</p></figcaption></figure> ## Teleport Lets [/chestshop list](README.md#shop-list) and [/chestshop find](README.md#find-a-shop) teleport a player to a shop. It also needs `phoenixshop.sign.teleport`, which everyone has by default, and each shop decides with its own [Allow Teleport](edit-player-shop.md#allow-teleport). <figure><img src="../../.gitbook/assets/chest-shop-settings/teleport.png" alt="" width="563"><figcaption><p>Teleport & Remote (Teleport)</p></figcaption></figure> ## Teleport Countdown How many seconds a player waits before a teleport to a shop happens. Moving in that time cancels it. Set it to 0 to teleport straight away. <figure><img src="../../.gitbook/assets/chest-shop-settings/teleport-countdown.png" alt="" width="563"><figcaption><p>Teleport & Remote (Teleport Countdown)</p></figcaption></figure> ## Remote Trading ⭐ Lets players buy from or sell to a shop without walking to it: right-click an entry in [/chestshop list](README.md#shop-list), or click **\[Trade]** on a [/chestshop find](README.md#find-a-shop) result. It opens the buy or sell menu with the item preview. It also needs `phoenixshop.sign.remote`, which everyone has by default. A player cannot trade remotely with their own shop or with a [disabled](edit-player-shop.md#enabled) one. <figure><img src="../../.gitbook/assets/chest-shop-settings/remote-trading.png" alt="" width="563"><figcaption><p>Teleport & Remote (Remote Trading)</p></figcaption></figure> On Folia, a shop can only be traded with remotely while it is in the same region as the player, which in practice means nearby. A shop further away is refused with a message asking the player to get closer. ## Currencies ⭐ The currencies players can price their own shops in, by currency id. With two or more listed and installed, the shop editor gets a [Currency](edit-player-shop.md#currency) choice; with one, every player shop uses the default currency as before. A currency whose plugin is missing is left out of the choice. Taking a currency off the list, or moving to Lite, keeps the shops already priced in it trading in it. On Lite the choice is not offered. <figure><img src="../../.gitbook/assets/chest-shop-settings/currencies.png" alt="" width="563"><figcaption><p>Items & Prices (Currencies)</p></figcaption></figure> ```yaml currencies: - money - points ``` ## Chest Shop Command The name and aliases of the player shop command, `/chestshop` and `/cs` by default. On Lite it only holds `notifications`. Changes apply with `/pshop reload`, without a restart, and turning it off removes the command. If another plugin already owns one of these names, PhoenixShop takes it over, and that plugin's command stays reachable with its prefix, such as `/worldedit:cs`. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/player-shops/settings --- # 🤝 Trading ## Buying and Selling Customers click the sign. On a Buy sign a right-click buys, on a Sell sign a right-click sells, and on a Both sign a right-click buys while a left-click sells. What the click does depends on [Trade Click](settings.md#trade-click): | Trade Click | A click on the sign | | --- | --- | | Instant (default) | Trades the [Amount](edit-player-shop.md#amount) set on the shop straight away. Always used on Lite. | | Prompt | Asks how many to buy or sell, see [Choosing an Amount](#choosing-an-amount). | With [Click Confirm](settings.md#click-confirm) on, the first buy or sell click on a shop only says **Click again to buy** (or sell), with the amount and price; a second click within 10 seconds trades. After that the clicks on that shop trade straight away until 5 minutes pass without trading there. A click that would be refused anyway, such as no price set, nothing in stock or not enough money, is refused straight away without asking. The info panel lists the shop's owner, item, stock, room left and prices. Hovering its **\[Item Preview]** tag shows the item's name, enchantments and lore, and clicking it opens the item in a menu with its full tooltip. On a shop [paid in an item](edit-player-shop.md#pay-with-item), the buy and sell lines get their own **\[Item Preview]** for the payment item. The click confirmation and the bought and sold messages show the item in brackets the same way, and the price too on a shop paid in an item: hovering it shows the item, and clicking it opens the preview. Sneaking and left-clicking the sign shows the panel, and sneaking and right-clicking [trades a chosen amount](#choosing-an-amount). Bedrock players, detected through Floodgate or Geyser, cannot click chat, so they get the item name as plain text instead of the bracketed link. Their info panel opens as a form with the same lines and a **View** button for the item, and one for the payment item on a shop paid in an item, which opens the same preview menu. They type the amount for a chosen-amount trade in a form as well. No permission is needed to trade on a player shop. The owner right-clicking their own sign opens its editor instead of trading. An [admin shop](README.md#admin-shops) trades for everyone, the admin who made it included; open its editor with /pshop editshop while looking at it. A trade is refused, with a message saying why, when: | Buying | Selling | | --- | --- | | The container does not hold the full amount. | The customer does not carry the full amount. | | The customer's inventory has no room for it. | The container has no room for it. | | The customer cannot afford the price. | The owner cannot afford the price. | Both directions are also refused while player shops are turned off, while the shop is [disabled](edit-player-shop.md#enabled), when the sign has no item, when the item is on the [Blocked Items](settings.md#blocked-items) list, when its currency is missing, and when the container behind it is gone. A shulker box shop never accepts shulker boxes. Experience, levels, item currencies, Placeholder currencies and ExcellentEconomy can only pay or charge a player who is online. On a shop priced in one of them, customers can still buy while the owner is offline: the owner's earnings wait and are paid the next time they join. Selling to that shop needs the owner online, since their balance cannot be checked or charged. An [ender chest shop](README.md#create-a-player-shop) only trades while its owner is online, whatever it is priced in. ## Choosing an Amount Sneaking and right-clicking the sign asks how many items to trade instead of the shop's fixed Amount. On a Both sign a small menu first asks whether to buy or sell. It shows the shop's item in the middle with its full tooltip, with Buy and Sell on either side; a side the shop does not trade, or has no price for, is grayed out. The menu is [customizable](../../configurations/customize-menus.md#chest-shop-trade) and closes when the shop is removed. The amount is typed in a dialog where the server supports one, otherwise in chat, and the customer has to stay within 8 blocks of the sign unless they are [trading remotely](settings.md#remote-trading). Typing `all` instead of a number buys as many as the customer can afford, carry and the shop has in stock, or sells every matching item they hold, up to [Max Amount](settings.md#max-amount). The word is set in the player-shops.amount-prompt section of the translations file. The price is shared out per item: 10 items on a shop selling 64 for 640 cost 100. Money is rounded to the cent, and currencies that only use whole numbers, such as levels, to a whole number: what a buyer pays is rounded up and what a seller gets is rounded down. The prompt does not open while a shop is out of stock for buying, or its chest is full for selling. A shop [paid in items](edit-player-shop.md#pay-with-item) only accepts amounts that come to a whole number of its payment item, and the prompt names the multiple to use. One trade can move at most [Max Amount](settings.md#max-amount). If the owner changes the shop's price, Amount, currency, item or payment item while the customer is still choosing, or removes the shop, the answer is refused and nothing is traded, so nobody pays a price they were not shown. ## Partial Trades When a trade cannot go through in full, the part that can goes through and is charged for its share of the price. The customer is told they got fewer than they asked for. | Buying | Selling | | --- | --- | | The container holds fewer than asked. | The container has room for fewer than offered. | | | The owner can only afford part of it. | | The customer's [Player Limits](edit-player-shop.md#player-limits) allow fewer. | The customer's Player Limits allow fewer. | A shop paid in items only trades the largest part that still comes to whole payment items. Everything else in the refusal table above still refuses the whole trade. [Partial Trades](settings.md#partial-trades) turns this off. ## Protection Only the owner can break the sign, break the container, or open the container. Everyone else is told whose shop it is. Both halves of a double chest are covered. Staff can open the container too, except on an ender chest shop. Items cannot be pulled out of the container by a hopper or any other block, and nobody but the owner can place a hopper against it. Explosions, fire and pistons leave the sign and both halves of the container alone. A player with `phoenixshop.sign.admin` gets the same access as the owner, so staff can open or remove any player shop. > **Warning:** Breaking the container the sign is on removes the shop and breaks its sign as well, since the sign has nothing left to trade out of. Breaking the half added later to make a double chest only turns the shop back into a single chest. ## Owner Notices The owner is messaged after every trade on one of their signs, with the customer, the amount, the item and the price. <figure><img src="../../.gitbook/assets/chest-shop-notifications/owner-notices.png" alt="" width="563"><figcaption><p>Notifications (Buy)</p></figcaption></figure> When the owner is offline, the notices wait and are delivered the next time they join. Repeated trades by the same customer in the same direction are merged into one line with the totals added up, so twelve sales by one player read as a single notice. Each owner keeps at most 20 waiting notices across all of their signs, and the oldest are dropped first. An online owner is also told when a trade leaves the shop without enough stock for another one, or the container without room for another sale, and when a customer finds it that way, at most once every 10 minutes per shop. That message ends with **\[Teleport]**, which takes the owner to the shop when its [Allow Teleport](edit-player-shop.md#allow-teleport) is on. A Bedrock owner, who cannot click it, gets a hint to run `/chestshop tp` instead, which with no shop named goes to the shop of their latest warning. An owner is also told when a player teleports to one of their shops. An offline owner gets these stock warnings on their next join instead, as one **While you were away** summary with a line per shop and problem, however often it happened. Each line gets the same **\[Teleport]**. The summary shows at most 10 lines and counts the rest, and the same warning for that shop is held back for 10 minutes after it. Earnings an offline owner could not be paid in the shop's currency are paid a second after they join, with one line per currency saying how much came in. They wait in the database, so a restart or reload loses nothing. `/chestshop notifications` opens a menu where each player turns these on or off for their own shops: Buy, Sell, Teleport, Out of Stock and Chest Full. Trades made while Buy or Sell is off are not queued, and stock warnings are only queued and shown while Out of Stock or Chest Full is on. Payouts are always made. A player who had turned notices off with the old `/pshop notify` starts with all five off. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/player-shops/trading --- # 🪙 Selling > **Info:** The server-wide sell settings are saved in config.yml and edited under **Editor > Settings > Sell Command**. Players sell an item back to a shop for its sell price. An item with a sell price of 0 cannot be sold. Every sale, whichever way it is made, goes through the same checks as a sale in the shop menu, so requirements and the item's own sell commands still apply. There are two ways to sell: * **Inside a shop.** By default, right-clicking an item in a category opens a screen to pick how many to sell, and shift + right-click sells every one the player carries. [Bulk Selling](#bulk-selling) covers selling whole stacks at once. * **With /sell.** Sells without opening a shop at all, from the hand, the whole inventory or a drop-in menu. See [The /sell Command](#the-sell-command). `/sell` only sells into the shops on the [Whitelisted Shops](#whitelisted-shops) list. ## The /sell Command `/sell` sells straight into your shops without opening one. It only sells into the [whitelisted shops](#whitelisted-shops) the player is allowed to open, and when there are none it tells the player there is no shop to sell to. <figure><img src="../../.gitbook/assets/sell-command/sell-command.png" alt="" width="563"><figcaption><p>Settings (Sell Command)</p></figcaption></figure> | Command | Permission | Description | | --- | --- | --- | | `/sell hand` | phoenixshop.sell.hand | Sells the stack in the main hand. | | `/sell handall` | phoenixshop.sell.handall | Sells every stack identical to the one in the main hand. | | `/sell inventory` | phoenixshop.sell.inventory | Sells everything in the inventory the shops buy. | | `/sell menu` | phoenixshop.sell.menu | Opens the [sell menu](#sell-menu). | All four permissions are given to operators only by default. Grant them to your player group to open `/sell` to everyone. ### /sell hand Sells the stack the player is holding in the main hand. The off-hand is never touched. If none of the whitelisted shops buy it, nothing is sold and the player is told the shop does not buy that item. ### /sell handall Sells the held stack and every other stack in the main inventory and hotbar that is identical to it, same material and same name, lore and data. Copies that differ in any way, such as a renamed one, are left alone. ### /sell inventory Sells every item in the main inventory and hotbar that one of the whitelisted shops buys. Armor and the off-hand are left alone, and anything no shop buys stays where it is. ### Shulker Boxes With **Sell Shulker Contents** on, `/sell inventory`, `/sell hand` and the [sell menu](#sell-menu) also sell what is inside shulker boxes. Whatever the shops do not buy stays in the box. It is on by default, and set under **Editor > Settings > Sell Command**. <figure><img src="../../.gitbook/assets/sell-command/shulker-boxes.png" alt="" width="563"><figcaption><p>Sell Command (Sell Shulker Contents)</p></figcaption></figure> * `/sell hand` on a box that holds items sells only its contents, never the box. An empty box is sold like any other item, if a shop buys it. * `/sell inventory` empties the boxes first, then sells the loose items. * The sell menu accepts a box when anything inside it can be sold, and its worth counts the contents. AutoSell and sell chests never open shulker boxes. ### Minimum Sale An item with a [minimum sale](../items/edit-item.md#minimum-sale) is skipped by `/sell` and AutoSell while the player carries fewer than that many. ### How Items Are Matched Each shop is checked in whitelist order, and within a shop every enabled category and item in turn. The first item that matches a carried stack and has a sell price buys it, so a shop higher on the list always gets first pick. An item sells in lots of its own amount. If a shop item is 16 cobblestone for a price, a player carrying 40 sells 32 and keeps the remaining 8. Items whose currency is not available, or that the player does not meet the requirements for, are skipped. ### Earnings in Several Currencies When the items sold are priced in different currencies, each currency is paid separately and the message lists every total, such as `$120, 4 Gems`. ## Sell Menu > **Info:** The menu's layout is menus/<shop>/sell-menu.yml, taken from the first whitelisted shop the player can open. `/sell menu` opens a chest the player fills with the items they want to sell. Items the whitelisted shops do not buy are refused as they are put in, with the refused sound, so nothing the shops cannot pay for ever sits in the menu. A shulker box is accepted when something inside it can be sold, while [Sell Shulker Contents](#shulker-boxes) is on. Items go in by dragging, shift-clicking from the inventory, the hotbar number keys, or the swap-hands key for the off-hand item. ### Drop Slots The slots items can be put in. By default these are the top five rows, with the bottom row kept for the border and the confirm button. Any slot that is not a drop slot is locked. ### Sell Items The confirm button. Its lore shows what everything in the drop slots is worth, updated as items go in, and clicking it sells them and closes the menu. Anything that could not be sold, such as a stack left over after selling in lots, goes back to the player's inventory, or is dropped at their feet if the inventory is full. ### Sell on Close Whether closing the menu sells what is in it, the same as clicking Sell Items. On by default. When off, closing the menu without clicking Sell Items gives every item back. This is only set in config.yml. While it is on, the Sell Items lore adds a line telling players that closing sells too. > **Info:** Bedrock players get a form instead of the chest while Bedrock sell forms are on. It lists every item in their inventory the shops buy, each with a toggle, and sells the ones left on. ## Whitelisted Shops The list of shops `/sell` and the sell menu may sell into, in priority order. Only the shop called `shop` is on it by default, so a new shop is left out of `/sell` until you add it. <figure><img src="../../.gitbook/assets/whitelisted-shops/whitelisted-shops.png" alt="" width="563"><figcaption><p>Sell Command (Whitelisted Shops)</p></figcaption></figure> A player only sells into the shops on the list they are allowed to open, and a disabled shop is skipped. When none are left for a player, `/sell` tells them there is no shop to sell to. ### Priority When more than one listed shop buys the same item, the one highest on the list gets it. Put a VIP shop with better prices above the regular one, and give it a permission: VIP players sell at the better price, and everyone else falls through to the regular shop. <figure><img src="../../.gitbook/assets/whitelisted-shops/priority.png" alt="" width="563"><figcaption><p>Whitelisted Shops (Priority Reordering)</p></figcaption></figure> **Add Shop** puts a shop at the bottom of the list, and left-clicking a listed shop removes it. To change the order, turn on **Priority Reordering** and click two shops to swap their places. ### Shop No Longer There A shop that was deleted stays on the list, marked as missing, until you remove it. It is simply skipped when selling. ## Sell Feedback > **Info:** These settings are saved in config.yml. They apply to `/sell` and the sell menu, not to selling inside a shop, which uses the shop's own sounds. ### Refused Sound The sound played when an item is refused by the sell menu, or when `/sell` finds nothing to sell. Written as `SOUND, volume, pitch`. Set it to `none` for silence. <figure><img src="../../.gitbook/assets/sell-feedback/refused-sound.png" alt="" width="563"><figcaption><p>Sell Command (Refused Sound)</p></figcaption></figure> ### Sold Sound The sound played after a sale. Written the same way, and `none` turns it off. <figure><img src="../../.gitbook/assets/sell-feedback/sold-sound.png" alt="" width="563"><figcaption><p>Sell Command (Sold Sound)</p></figcaption></figure> ### Sold Title Shows a title across the screen after a sale, with the money earned and how many items were sold. On by default. <figure><img src="../../.gitbook/assets/sell-feedback/sold-title.png" alt="" width="563"><figcaption><p>Sell Command (Sold Title)</p></figcaption></figure> ### Title Time How long the title stays on screen, in ticks. 20 ticks is 1 second, and the editor keeps it between 10 and 200. The fade-in and fade-out times are only set in the file. <figure><img src="../../.gitbook/assets/sell-feedback/title-time.png" alt="" width="563"><figcaption><p>Sell Command (Title Time)</p></figcaption></figure> ### Sold Chat Message Sends a chat message after a sale, with the money earned and how many items were sold. On by default. Turning both this and the title off leaves only the sound. <figure><img src="../../.gitbook/assets/sell-feedback/sold-chat-message.png" alt="" width="563"><figcaption><p>Sell Command (Sold Chat Message)</p></figcaption></figure> ### Messages The text of the title and the message lives in the translations file, under the sell section. | Key | Default | | --- | --- | | sell.sold | You sold %items% %items\_word% for %money%. | | sell.sold-title | +%money% | | sell.sold-subtitle | You sold %amount% %items\_word% | | sell.nothing-to-sell | You have nothing the shop will buy. | | sell.nothing-sold | The shop doesn't buy any of those, so they were given back. | | sell.returned | %amount% %items\_word% couldn't be sold and went back to your inventory. | | sell.empty-hand | Hold the item you want to sell. | | sell.cannot-sell-hand | The shop doesn't buy %item%. | | sell.no-shops | There is no shop to sell to right now. | | Placeholder | Description | | --- | --- | | %items% / %amount% | How many items were sold. In sell.returned, %amount% is how many were given back. | | %items\_word% | "item" or "items", to match the count. | | %money% | What the sale paid, one total per currency. | ## Off-Hand Whether a player's off-hand item is sold depends on how they sell. There is no setting for this. | Way of selling | Off-hand | | --- | --- | | Selling from a shop's item screen | Counted, together with the inventory. | | Sell All and shift + right-click in a category | Counted, together with the inventory. | | Bulk Sell | Counted, together with the inventory. | | `/sell hand` | Never. Only the main hand is sold. | | `/sell inventory` | Never. Only the main inventory and hotbar are sold. | | Sell menu | Only when the player puts it in, with the swap-hands key over a drop slot. | When a sale counts the off-hand and it holds a matching item, the inventory is used first and the off-hand makes up the rest. Buying from a shop works the same way: what does not fit in the inventory goes into the off-hand, if it is empty or holds the same item. Armor slots are never sold from. ## Bulk Selling Inside a shop, players have three ways to sell more than one lot at a time. All of them count the [off-hand](#off-hand) along with the inventory. ### Sell All Click By default, shift + right-clicking an item in a category sells every one of it the player carries, without opening any screen. This needs the `phoenixshop.sell.all` permission, which only operators have unless you grant it. The click is set by the click mappings in config.yml, where `SELL_ALL` can be moved to another click or removed. ### Sell All Button The item's sell screen has a **Sell All** button that sets the amount to everything the player carries, showing what it would pay before they confirm. It needs the same `phoenixshop.sell.all` permission, and shows a barrier to players without it. ### Bulk Sell The **Bulk Sell** button on the item's sell screen opens a menu with one option per number of stacks, from 1 up to 9, each showing the amount and what it pays. Clicking one sells that many at once, and the menu stays open for another sale. No extra permission is needed. A stack here is a full stack of the item, 64 for most items and 16 or 1 for items that stack lower. > **Info:** The Bulk Sell menu's layout is menus/<shop>/bulk-sell.yml, one per shop. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/selling --- # 📦 Bulk Selling ## Bulk Selling Inside a shop, players have three ways to sell more than one lot at a time. All of them count the [off-hand](offhand.md) along with the inventory. ## Sell All Click By default, shift + right-clicking an item in a category sells every one of it the player carries, without opening any screen. This needs the `phoenixshop.sell.all` permission, which only operators have unless you grant it. The click is set by the click mappings in config.yml, where `SELL_ALL` can be moved to another click or removed. ## Sell All Button The item's sell screen has a **Sell All** button that sets the amount to everything the player carries, showing what it would pay before they confirm. It needs the same `phoenixshop.sell.all` permission, and shows a barrier to players without it. ## Bulk Sell The **Bulk Sell** button on the item's sell screen opens a menu with one option per number of stacks, from 1 up to 9, each showing the amount and what it pays. Clicking one sells that many at once, and the menu stays open for another sale. No extra permission is needed. A stack here is a full stack of the item, 64 for most items and 16 or 1 for items that stack lower. > **Info:** The Bulk Sell menu's layout is menus/<shop>/bulk-sell.yml, one per shop. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/selling/bulk-selling --- # 🤚 Off-Hand ## Off-Hand Whether a player's off-hand item is sold depends on how they sell. There is no setting for this. | Way of selling | Off-hand | | --- | --- | | Selling from a shop's item screen | Counted, together with the inventory. | | Sell All and shift + right-click in a category | Counted, together with the inventory. | | Bulk Sell | Counted, together with the inventory. | | `/sell hand` | Never. Only the main hand is sold. | | `/sell inventory` | Never. Only the main inventory and hotbar are sold. | | Sell menu | Only when the player puts it in, with the swap-hands key over a drop slot. | When a sale counts the off-hand and it holds a matching item, the inventory is used first and the off-hand makes up the rest. Buying from a shop works the same way: what does not fit in the inventory goes into the off-hand, if it is empty or holds the same item. Armor slots are never sold from. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/selling/offhand --- # 🤑 The /sell Command ## The /sell Command `/sell` sells straight into your shops without opening one. It only sells into the [whitelisted shops](whitelisted-shops.md) the player is allowed to open, and when there are none it tells the player there is no shop to sell to. <figure><img src="../../.gitbook/assets/sell-command/sell-command.png" alt="" width="563"><figcaption><p>Settings (Sell Command)</p></figcaption></figure> | Command | Permission | Description | | --- | --- | --- | | `/sell hand` | phoenixshop.sell.hand | Sells the stack in the main hand. | | `/sell handall` | phoenixshop.sell.handall | Sells every stack identical to the one in the main hand. | | `/sell inventory` | phoenixshop.sell.inventory | Sells everything in the inventory the shops buy. | | `/sell menu` | phoenixshop.sell.menu | Opens the [sell menu](sell-menu.md). | All four permissions are given to operators only by default. Grant them to your player group to open `/sell` to everyone. ## /sell hand Sells the stack the player is holding in the main hand. The off-hand is never touched. If none of the whitelisted shops buy it, nothing is sold and the player is told the shop does not buy that item. ## /sell handall Sells the held stack and every other stack in the main inventory and hotbar that is identical to it, same material and same name, lore and data. Copies that differ in any way, such as a renamed one, are left alone. ## /sell inventory Sells every item in the main inventory and hotbar that one of the whitelisted shops buys. Armor and the off-hand are left alone, and anything no shop buys stays where it is. ## Shulker Boxes With **Sell Shulker Contents** on, `/sell inventory`, `/sell hand` and the [sell menu](sell-menu.md) also sell what is inside shulker boxes. Whatever the shops do not buy stays in the box. It is on by default, and set under **Editor > Settings > Sell Command**. <figure><img src="../../.gitbook/assets/sell-command/shulker-boxes.png" alt="" width="563"><figcaption><p>Sell Command (Sell Shulker Contents)</p></figcaption></figure> * `/sell hand` on a box that holds items sells only its contents, never the box. An empty box is sold like any other item, if a shop buys it. * `/sell inventory` empties the boxes first, then sells the loose items. * The sell menu accepts a box when anything inside it can be sold, and its worth counts the contents. AutoSell and sell chests never open shulker boxes. ## Minimum Sale An item with a [minimum sale](../items/edit-item.md#minimum-sale) is skipped by `/sell` and AutoSell while the player carries fewer than that many. ## How Items Are Matched Each shop is checked in whitelist order, and within a shop every enabled category and item in turn. The first item that matches a carried stack and has a sell price buys it, so a shop higher on the list always gets first pick. An item sells in lots of its own amount. If a shop item is 16 cobblestone for a price, a player carrying 40 sells 32 and keeps the remaining 8. Items whose currency is not available, or that the player does not meet the requirements for, are skipped. ## Earnings in Several Currencies When the items sold are priced in different currencies, each currency is paid separately and the message lists every total, such as `$120, 4 Gems`. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/selling/sell-command --- # 🔔 Sell Feedback > **Info:** These settings are saved in config.yml. They apply to `/sell` and the sell menu, not to selling inside a shop, which uses the shop's own sounds. ## Refused Sound The sound played when an item is refused by the sell menu, or when `/sell` finds nothing to sell. Written as `SOUND, volume, pitch`. Set it to `none` for silence. <figure><img src="../../.gitbook/assets/sell-feedback/refused-sound.png" alt="" width="563"><figcaption><p>Sell Command (Refused Sound)</p></figcaption></figure> ## Sold Sound The sound played after a sale. Written the same way, and `none` turns it off. <figure><img src="../../.gitbook/assets/sell-feedback/sold-sound.png" alt="" width="563"><figcaption><p>Sell Command (Sold Sound)</p></figcaption></figure> ## Sold Title Shows a title across the screen after a sale, with the money earned and how many items were sold. On by default. <figure><img src="../../.gitbook/assets/sell-feedback/sold-title.png" alt="" width="563"><figcaption><p>Sell Command (Sold Title)</p></figcaption></figure> ## Title Time How long the title stays on screen, in ticks. 20 ticks is 1 second, and the editor keeps it between 10 and 200. The fade-in and fade-out times are only set in the file. <figure><img src="../../.gitbook/assets/sell-feedback/title-time.png" alt="" width="563"><figcaption><p>Sell Command (Title Time)</p></figcaption></figure> ## Sold Chat Message Sends a chat message after a sale, with the money earned and how many items were sold. On by default. Turning both this and the title off leaves only the sound. <figure><img src="../../.gitbook/assets/sell-feedback/sold-chat-message.png" alt="" width="563"><figcaption><p>Sell Command (Sold Chat Message)</p></figcaption></figure> ## Messages The text of the title and the message lives in the translations file, under the sell section. | Key | Default | | --- | --- | | sell.sold | You sold %items% %items\_word% for %money%. | | sell.sold-title | +%money% | | sell.sold-subtitle | You sold %amount% %items\_word% | | sell.nothing-to-sell | You have nothing the shop will buy. | | sell.nothing-sold | The shop doesn't buy any of those, so they were given back. | | sell.returned | %amount% %items\_word% couldn't be sold and went back to your inventory. | | sell.empty-hand | Hold the item you want to sell. | | sell.cannot-sell-hand | The shop doesn't buy %item%. | | sell.no-shops | There is no shop to sell to right now. | | Placeholder | Description | | --- | --- | | %items% / %amount% | How many items were sold. In sell.returned, %amount% is how many were given back. | | %items\_word% | "item" or "items", to match the count. | | %money% | What the sale paid, one total per currency. | Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/selling/sell-feedback --- # 📥 Sell Menu > **Info:** The menu's layout is menus/<shop>/sell-menu.yml, taken from the first whitelisted shop the player can open. ## Sell Menu `/sell menu` opens a chest the player fills with the items they want to sell. Items the whitelisted shops do not buy are refused as they are put in, with the refused sound, so nothing the shops cannot pay for ever sits in the menu. A shulker box is accepted when something inside it can be sold, while [Sell Shulker Contents](sell-command.md#shulker-boxes) is on. Items go in by dragging, shift-clicking from the inventory, the hotbar number keys, or the swap-hands key for the off-hand item. ## Drop Slots The slots items can be put in. By default these are the top five rows, with the bottom row kept for the border and the confirm button. Any slot that is not a drop slot is locked. ## Sell Items The confirm button. Its lore shows what everything in the drop slots is worth, updated as items go in, and clicking it sells them and closes the menu. Anything that could not be sold, such as a stack left over after selling in lots, goes back to the player's inventory, or is dropped at their feet if the inventory is full. ## Sell on Close Whether closing the menu sells what is in it, the same as clicking Sell Items. On by default. When off, closing the menu without clicking Sell Items gives every item back. This is only set in config.yml. While it is on, the Sell Items lore adds a line telling players that closing sells too. > **Info:** Bedrock players get a form instead of the chest while Bedrock sell forms are on. It lists every item in their inventory the shops buy, each with a toggle, and sells the ones left on. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/selling/sell-menu --- # 📋 Whitelisted Shops ## Whitelisted Shops The list of shops `/sell` and the sell menu may sell into, in priority order. Only the shop called `shop` is on it by default, so a new shop is left out of `/sell` until you add it. <figure><img src="../../.gitbook/assets/whitelisted-shops/whitelisted-shops.png" alt="" width="563"><figcaption><p>Sell Command (Whitelisted Shops)</p></figcaption></figure> A player only sells into the shops on the list they are allowed to open, and a disabled shop is skipped. When none are left for a player, `/sell` tells them there is no shop to sell to. ## Priority When more than one listed shop buys the same item, the one highest on the list gets it. Put a VIP shop with better prices above the regular one, and give it a permission: VIP players sell at the better price, and everyone else falls through to the regular shop. <figure><img src="../../.gitbook/assets/whitelisted-shops/priority.png" alt="" width="563"><figcaption><p>Whitelisted Shops (Priority Reordering)</p></figcaption></figure> **Add Shop** puts a shop at the bottom of the list, and left-clicking a listed shop removes it. To change the order, turn on **Priority Reordering** and click two shops to swap their places. ## Shop No Longer There A shop that was deleted stays on the list, marked as missing, until you remove it. It is simply skipped when selling. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/selling/whitelisted-shops --- # 🏪 Shops > **Info:** Every shop is its own file in the shops folder, and its categories sit in a folder of the same name next to it. ## Add a Shop Left-click the lime stained glass in **Editor > Shops** to create a shop. It is created with a generated identifier and its editor opens straight away, so rename it there. <figure><img src="../../.gitbook/assets/shops/shops.png" alt="" width="563"><figcaption><p>Editor (Shops)</p></figcaption></figure> <figure><img src="../../.gitbook/assets/shops/add-a-shop.png" alt="" width="563"><figcaption><p>Shops (New Shop)</p></figcaption></figure> Every shop in the list shows its display name, its identifier and whether it is enabled. A shop priced in a currency whose plugin is not installed, by the shop itself or by any of its items, is marked in the list with the plugin to install. It still opens in the editor. Left-click one to edit it, right-click it to delete it after a confirmation. > **Info:** The Lite edition holds up to 3 shops. The button shows how many you have out of the limit and stops creating once it is reached. On startup, Lite loads only the first 3 shop files it finds and leaves the others untouched on disk. Unlimited shops are available with the Premium Plan. ## Navigation | Features | Description | | --- | --- | | [Identifier](edit-shop.md#identifier) | The unique id of the shop and the name of its file. | | [Display Name](edit-shop.md#display-name) | The name players see at the top of the shop. | | [Open Command](edit-shop.md#open-command) | A command of its own that opens the shop. | | [Conditions](edit-shop.md#conditions) | Who can open the shop. | | [Rotations](edit-shop.md#rotations) | The categories of the shop that rotate. | | [Currency](edit-shop.md#currency) | What everything in the shop is priced in. | | [Currency Format](edit-shop.md#currency-format) | How prices in the shop are written. | | [Categories](../categories/) | The categories of the shop. | | [Enabled](edit-shop.md#enabled) | Turn the shop on or off. | | [Edit Menus](edit-shop.md#edit-menus) | The layout of every menu the shop opens. | | [Actions](edit-shop.md#actions) | What runs on a purchase, a sale, a refusal, a click or a page turn. | | [Delete](edit-shop.md#delete) | Delete the shop. | Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/shops --- # 🖌️ Edit Shop > **Info:** Every option on this page is saved to the shop's own file in the shops folder. ## Identifier The unique id of the shop, used in commands such as `/pshop open` and as the name of its file and category folder. Spaces are not allowed, and two shops cannot share one. Renaming moves the file and the folder, and the /sell shop list follows the new id. <figure><img src="../../.gitbook/assets/shops/identifier.png" alt="" width="563"><figcaption><p>Edit Shop (Identifier)</p></figcaption></figure> > **Danger:** Stock counts are stored against the shop's identifier. Changing it starts the stock of every item in the shop over. ## Display Name The name players see at the top of the shop. Color codes are supported. It cannot be empty. <figure><img src="../../.gitbook/assets/shops/display-name.png" alt="" width="563"><figcaption><p>Edit Shop (Display Name)</p></figcaption></figure> ## Open Command A command of its own that opens this shop, without the slash, such as `shop` or `blocks`. Leave it empty for no command. A command another plugin already owns is not taken over. A new or changed command works straight away, after the edit or a `/pshop reload`, with no restart and no rejoin. <figure><img src="../../.gitbook/assets/shops/open-command.png" alt="" width="563"><figcaption><p>Edit Shop (Open Command)</p></figcaption></figure> ## Conditions Who can open this shop. With no conditions, everyone can. <figure><img src="../../.gitbook/assets/shops/conditions.png" alt="" width="563"><figcaption><p>Edit Shop (Conditions)</p></figcaption></figure> On Premium this opens a list of checks built the same way as [item requirements](../items/requirements.md), with eight types: **permission**, **compare** for a PlaceholderAPI value, **world**, **gamemode**, **platform** (Java or Bedrock), **region** for a [WorldGuard](https://enginehub.org/worldguard) region the player stands in, **world-time** for the time of day in the player's world and **playtime**. Region only shows when WorldGuard is installed, and a region check without it refuses everyone. Minimum sets how many checks have to pass, each check can be negated, and its deny actions run when a player is turned away. On Lite this is a single permission field. The conditions decide who can open the shop, and also which shops `/sell`, sell wands, AutoSell and `/pshop search` use for that player. A player turned away sees the shop-locked message, unless a failed check has deny actions of its own. ## Rotations The categories of this shop that show only some of their items at a time. Left-click a rotation to edit it, right-click to stop it, and use **Make a Category Rotate** to pick another category of this shop. Needs the [Rotating Shop](../../add-ons/rotating-shop/) add-on. ## Currency What everything in this shop is priced in. A category or an item can override it on Premium, see [Edit Category](../categories/edit-category.md#currency) and [Edit Item](../items/edit-item.md#currency). <figure><img src="../../.gitbook/assets/shops/currency.png" alt="" width="563"><figcaption><p>Edit Shop (Currency)</p></figcaption></figure> Left-click swaps between the currency types, skipping any whose plugin is not installed. Right-click opens the chosen type, where the Currency option opens a searchable list to pick from (ExcellentEconomy and PhoenixCurrencies), the Placeholder currency is opened to edit, an item is dropped in and its name, lore and Currency Display are set (Item), and the [Currency Format](#currency-format) is set for every type but Item. Every type, what it needs and which edition has it is listed on [Currencies](../currencies/). > **Warning:** A shop whose currency cannot be used, because its plugin is not installed or the currency no longer exists, does not open at all. The editor marks the field with the plugin to install. ## Currency Format How prices in this shop are written, such as `%amount% PlayerPoints` or `$%amount%`, with `%amount%` where the number goes, or `%amount_short%` for a short form such as `1.5k`. Leave it empty to use the currency's own format, see [Symbols and Formats](../currencies/README.md#symbols-and-formats). It is set from the right-click menu of the [Currency](#currency) option and applies to every price in the shop, including items that use another currency, except in categories that set a [format of their own](../categories/edit-category.md#currency-format). ## Categories Opens the categories of this shop. See [Categories](../categories/). <figure><img src="../../.gitbook/assets/shops/categories.png" alt="" width="563"><figcaption><p>Edit Shop (Categories)</p></figcaption></figure> ## Enabled A disabled shop keeps its configuration but cannot be opened by anyone. <figure><img src="../../.gitbook/assets/shops/enabled.png" alt="" width="563"><figcaption><p>Edit Shop (Enabled)</p></figcaption></figure> ## Sale Premium. Puts every item in the shop on sale, with the same options as a [category sale](../categories/edit-category.md#sale): the discount, a start and end date and time, days of the week, a daily time window and the Start and Stop button. A category whose own sale is running uses that one instead, so a category can run a different deal during a shop-wide sale. <figure><img src="../../.gitbook/assets/shops/sale.png" alt="" width="563"><figcaption><p>Edit Shop (Sale)</p></figcaption></figure> ## Edit Menus Opens the list of every menu this shop uses: the main menu, the buy and sell menus, the bulk buy and bulk sell menus, the sell menu, the confirm menu and one menu per category. The Filter button shows only the shop menus or only the category menus. Left-click one to edit its layout in-game. While you edit, the menu shows its real title and your hotbar holds the editor tools. <figure><img src="../../.gitbook/assets/shops/edit-menus.png" alt="" width="563"><figcaption><p>Edit Shop (Edit Menus)</p></figcaption></figure> ## Actions Lists of [actions](../../plugin-information/action-types.md) run at moments in this shop, such as a sound, a message, a title or a command: Buy and Sell when a purchase or sale goes through, Deny when one is refused, Click when a category or item is clicked, Previous Page and Next Page when the pages are turned, Add and Remove when the amount buttons of the buy and sell menu raise or lower the amount, Fill when the fill button sets the most you can buy or sell, and Back when a menu's back button is clicked. Each list starts with a single sound. Empty a list to run nothing. <figure><img src="../../.gitbook/assets/shops/actions.png" alt="" width="563"><figcaption><p>Edit Shop (Actions)</p></figcaption></figure> `%player%` is filled in everywhere. In Buy, Sell and Deny, `%item%`, `%amount%`, `%price%`, `%currency%` and `%balance%` are filled in as well, and in Click on an item, `%item%`. Inside a category, its own [actions](../categories/edit-category.md#actions) replace Buy, Sell, Deny, Click and the page lists when they are not empty. The shop's main menu always runs the shop's lists. > **Info:** The editor screen is only available with the Premium Plan. On Lite the lists run the same way and are edited in the [shop file](../../configurations/shop-configuration-file.md#shop-file). ## Delete Deletes the shop together with its file, its categories and their items, after a confirmation. <figure><img src="../../.gitbook/assets/shops/delete.png" alt="" width="563"><figcaption><p>Edit Shop (Delete)</p></figcaption></figure> > **Danger:** This option is permanent, and shops can't be restored. Source: https://www.phoenixplugins.com/docs/phoenix-shop/main-features/shops/edit-shop --- # 🚢 Migration ## Migration Our plugin can bring your shops across from other shop plugins, and from some of them the player data too. Below are the available migration options. * **ShopGUIPlus** * **EconomyShopGUI** (free and Premium, shops plus stock, limits and purchase history) * **UltimateShop** * **ExcellentShop** * **Essentials** (worth.yml) * **QuickShop** (Hikari and Reremake, chest shops, as player shops) * **Shop (snowgears)** (chest shops, as player shops) * **ChestShop** (sign shops, as player shops) The three chest shop migrations bring every player's shops across on Lite too, even past the 25 chest shops (30 on a linked server) a player can own there. Imported shops always load, and they count toward the limit, so a player at or over it cannot make another until they are below it. When a migration leaves players over the limit, the chat says how many, and a file in migrations/ lists each of them with how many shops they own. ## Running a Migration Open **Editor > Migrations**. There is one button per plugin, listing the files it reads and whether player data comes across. A button is locked when those files are not in your plugins folder, so the other plugin's folder has to be there, but the plugin itself does not need to be running. <figure><img src=".gitbook/assets/migrations/migrations.png" alt="" width="563"><figcaption><p>Editor (Migrations)</p></figcaption></figure> 1. Click the plugin to read its files and database. Nothing is written yet. 2. A confirmation opens, showing how many shops, categories, items, past transactions and limit counts were found. Confirm to write, or cancel to leave everything as it was. 3. The menu closes and the chat says when the migration has finished, and how many entries came from the old plugin's database. When the old plugin is still running, a second line asks you to remove it, since it would keep answering the same commands and signs. Before anything is written, the whole plugin folder is copied to backups/, the SQLite database included. If the copy fails, nothing is written. The new shops are live straight away. ### Note * Every plugin comes across as one shop opened with `/shop`, with one category per shop or section of the old plugin. `/shop <category>` opens a category directly, as it did before. If one of your shops already uses `/shop`, the import gets no command; give it one in the editor. * Each category is named, described and iconed the way its button looked in the old main menu, head textures and custom model data included, and keeps that button's order. * A shop's identifier that is already taken is skipped, never overwritten. Rename or delete yours first to import over it. Player data for a skipped shop is skipped with it. * Every entry that is left out is named with its file in migrations/, one file per plugin. The chat only says the migration finished, and points to that file when something did not come across. * An item that cannot be read is left out and reported, and the rest of the import still comes across. Items newer than the plugin's material list import as long as the server knows them. * Items come across in the order players saw them, page by page and slot by slot where the old plugin set them, otherwise in the order of the file. The exact slots and pages are not kept. * An item that is bought for itself gives that item, with its name, lore and amount, the same as an item dropped on the editor. When the old plugin showed one item and handed out another, the shop shows the first and gives the second. Command, permission and link entries only run their commands. * Items that carry a potion type, stored enchantments, a spawner mob, a head texture or custom model data are only bought back when the held item matches exactly, so a plain water bottle cannot be sold as a potion. * Colours written as `#RRGGBB`, `{#RRGGBB}` or as a gradient pair are turned into the forms this plugin reads. * The Lite edition holds 3 shops, and the default shop already counts. When the import would go past that, a menu lists the imported shops with the categories each one brings, and you pick as many as there are free slots. They are added next to your shops. When all 3 slots are taken, the import stops and asks you to delete a shop first; it never replaces one. Categories are not limited, so a whole import fits in one shop. * On Lite, whatever needs Premium is left out, and the report says so for each one: currencies per category or item, item and placeholder currencies, requirements, conditions other than a permission, stock, limits, restocks, opening hours, category actions and sales, price modifiers, Sell Boosters entries and rotating sections, which show every item, chest shop staff, and chest shops paid in an item. A shop priced in an item currency is priced in money instead. Past transactions come across. * Stock and per-player limit counts are left out with the Network add-on, since it keeps stock in its own tables. * Past transactions older than the history keeps are left out, see the history setting in config.yml. * An item from another plugin, such as ItemsAdder or Nexo, is kept, and only shows once that plugin is installed. * A chest shop in a chunk that is not loaded during the import is imported anyway and checked when its chunk loads: its sign is rewritten to ours then, and a shop whose sign or container is gone is removed. ## ShopGUIPlus Reads every shop in ShopGUIPlus/shops, the older single shops.yml, and the main menu in config.yml. A shop with a main-menu button is a category on the main menu. A shop that is only reached from another shop, through a link or a decoration that runs `/shopgui <shop>`, opens from that shop as a sub-category, looking like the button that led to it. A shop reached from neither is hidden and opens with `/shop <shop>`. <figure><img src=".gitbook/assets/migrations/shopguiplus.png" alt="" width="563"><figcaption><p>Migrations (Migrate from ShopGUIPlus)</p></figcaption></figure> Menu titles drawn with a resource pack font are not used as names, since they mean nothing in these menus. | ShopGUI+ entry | Becomes | | --- | --- | | `item` | An item, with its amount, prices, name, lore, enchantments, item flags, custom model data, glow, spawner mob, armor trim, potion type, leather colour, banner patterns, goat horn sound and head texture. Its `placeholder` is what the shop shows. Items from ItemsAdder, Nexo, CraftEngine, HeadDatabase, ExecutableItems, Slimefun, MMOItems and MythicMobs keep their plugin item. | | `command` | A buy-only item that runs the same commands, as the buyer when it ran as the buyer. Its command limit becomes the most per purchase. | | `shop_link` | The linked shop opens from this one as a sub-category. A link to a shop that has its own main-menu button is left out. | | `permission` | An item whose purchase gives each node with a LuckPerms command, and whose sale removes them. A node limited to one world is given in that world only. A requirement stops players buying a node they already have. | | `enchantment` | A buy-only item that runs the vanilla `/enchant` command on the held item. A requirement stops the purchase unless the player holds something the enchantment can go on. | Shop and item `messageBuy`, `messageSell` and `messageCannotAfford` become the messages of the category and item. Fireworks and unbreakable items come across as the exact item when the import runs on the server. A command entry without `runSingleCommand` ran once per item bought, so it is bought one at a time here. The click actions of the main config and of each shop become the category's click mappings, and a shop with its buy or sell screen turned off buys or sells one at a time on click. Extra buy and sell commands come across as purchase and sell commands, and required permissions as requirements. A shop's permission, per-item permissions and world blacklist become conditions. The shop's economy is mapped onto our currencies: Vault, PlayerPoints, VotingPlugin and Experience, with `EXP` as experience points and `EXP_LEVELS` as levels, so prices keep their value. Names and lore are only compared on a sale when `compareMeta` was on. An entry with a buy price of 0 becomes a [free](main-features/items/edit-item.md#free) item. ShopGUI+ keeps no stock or limits. Player data comes across as follows: | Data | Becomes | | --- | --- | | Transaction log (shop.log) | Past purchases and sales in the purchase history, read with the log and date formats from its config.yml. Command, permission and enchantment purchases are left out. | | Players in its database, SQLite or MySQL as set in its config.yml | Used to tie each logged name to its player. | | Global permission price modifiers (pricemodifiers.yml) | [Price modifiers](add-ons/sell-boosters/README.md#price-modifiers) in the Sell Boosters add-on, with the same `shopguiplus.pricemodifiers.<id>` permission, so players keep them without changes. Without the add-on they are reported. | | Permission price modifiers for one shop or item | Their sell side becomes a [permission booster](add-ons/sell-boosters/README.md#permission-boosters) in the Sell Boosters add-on, with the same permission. Their buy side is left out. Without the add-on they are reported. | | Per-player price modifiers set with its commands | Left out and counted in the report. Players left at the default are not counted. | > **Warning:** Permission entries assume LuckPerms. On another permissions plugin, change their purchase and sell commands after importing. The requirements on permission and enchantment entries only run on Premium. ## EconomyShopGUI Reads EconomyShopGUI-Premium when it is there, otherwise EconomyShopGUI: the shop and section files, including those in sub-folders, or the older single shops.yml and sections.yml. Everything becomes one shop called `economyshopgui`, with one category per section. A sub-section opens from the section that links to it, named, iconed and ordered like the link button. A hidden section opens with `/shop <section>`. A section's click commands run when its category opens. A section that only decorates the main menu is left out. <figure><img src=".gitbook/assets/migrations/economyshopgui.png" alt="" width="563"><figcaption><p>Migrations (Migrate from EconomyShopGUI)</p></figcaption></figure> Items keep their amount, prices, currency, name, lore, enchantments, item flags, custom model data, glow, spawner mob, armor trim, potion types, goat horn sound, leather colour, head texture, most per purchase and least per sale. `displayname` and `displaylore` are what the shop shows, and `name` and `lore` go on the item the player gets. A `display-item` is what the shop shows while the player gets the item itself. `fixed-stack-size` works like `stack-size`. Plugin items keep their plugin item, except Oraxen, Brewery and EcoItems. Buy and sell commands come across, and items that also gave the item still give it. Delayed commands run straight away, and commands run with temporary OP run as the player. Prices in an `ITEM` economy, or in `buy-prices` and `sell-prices`, become an item currency on Premium. One with a `name` or `id` becomes a currency of its own under that name, and a `name` only accepts the item with that name. With several prices, the first one is kept. A negative price turns that side off, and a buy price of 0 makes the item [free](main-features/items/edit-item.md#free). Fireworks, suspicious stews, ominous bottles, knowledge books, unbreakable items and `components` come across as the exact item when the import runs on the server. Custom model data is read from `CustomModelData`, `NBTData` and `components`. | EconomyShopGUI option | Becomes | | --- | --- | | `permission` | A requirement on `EconomyShopGUI.shop.<section>.item.<permission>`. With `permission-requirement: false`, only players without it can buy. | | `requirements` | `PERMISSION`, `LEVEL`, `REGION`, `PLACEHOLDER`, `TIME`, `PLAYTIME` and `ITEM` lines become requirements, with their denied message. `TIME` checks the time of day in the player's world, and `ITEM` the item's material and name anywhere in the inventory. `QUEST` lines are left out. Level and placeholder checks need PlaceholderAPI. | | `level-requirement` | A requirement on the player's level. | | `click-mappings` | The category's click actions, from the section or from config.yml. | | `damaged-items` | Damaged items sell for their price times the durability left. `price-difference` is left out. | | `max-buy: -1`, `max-sell`, `min-buy`, `hidePricingLore`, `close-menu`, item `click-commands`, `if-not-met` | Left out and reported. | | EconomyShopGUI limit | Becomes | | --- | --- | | Global stock | Stock. Selling an item always puts it back in stock here, as `refill-stock: true` did. | | Player stock | Player limit. | | Player sell limit | Sell limit. | | Restock timer or schedule | Restock. One clock refills an item here, so an item with several keeps the first. A per-player timer becomes one shared clock. | | Global sell limit | Left out. | | Dynamic pricing | Left out, the base price is kept. | Premium also brings the player data across, from its SQLite database or from MySQL with the connection and table prefix in its config.yml: | Data | Becomes | | --- | --- | | Stock left on each item | Stock left. | | Each player's buys and sells within their limits | The same counts against our limits. | | Advanced transaction log | Past transactions in the purchase history. A sale of several items at once is split per item. | | Global sell limit counts, dynamic pricing state, per-player price modifiers | Left out and counted in the report. | Discounts and sell multipliers in its config.yml come across when they are turned on. Those under `all` become [price modifiers](add-ons/sell-boosters/README.md#price-modifiers) in the Sell Boosters add-on with the same `EconomyShopGUI.discounts.<group>` or `EconomyShopGUI.sell-multipliers.<group>` permission. A sell multiplier for one section becomes a [permission booster](add-ons/sell-boosters/README.md#permission-boosters) on that category. A discount for one section is left out. A rotating section becomes a [rotating category](add-ons/rotating-shop/README.md#rotation) with its whole pool when the Rotating Shop add-on is installed, otherwise a normal category that shows every item. `frequency` becomes a cron schedule and wins over `interval`, which becomes a length; with neither it changes daily. `can-repeat`, `broadcast` and each item's `display-chance` are kept. It shows as many items as it had display slots across its pages, in the order of the category, so the slot positions are not kept. Counts and transactions for items that are no longer in the shop files are left out. The plain text transaction log is not read. ## UltimateShop Reads UltimateShop/shops, the main menu in menus/main.yml, and the language files for every `{lang:...}` reference. Everything becomes one shop called `ultimateshop`. A shop file's next-page button folds the next file into the same category. <figure><img src=".gitbook/assets/migrations/ultimateshop.png" alt="" width="563"><figcaption><p>Migrations (Migrate from UltimateShop)</p></figcaption></figure> Items keep their product, amount, name, lore, enchantments, stored enchantments, potion type and effects, head texture, leather colour, banner patterns, spawner mob, armor trim, item model and prices, including the shared prices and the general settings of the file. Its `display-item` is what the shop shows and its product what the player gets. Its `add-lore` lines are added to the shown lore. Buy, sell and give actions that run commands come across as commands, and a product with give actions is still given unless it has `give-item: false`. Such a product sells back only as the exact item. Permission conditions on the shop, the file or the item become conditions and requirements. Slots from the menu layout are not kept. A `match-item` rule that only lists materials sells as the product's material, or the first listed, and `has-name: false` also requires an unnamed item. Any other rule, or a product that is no item at all, leaves the item buy-only. When an item lists several products or prices, the first money price is taken. In `ALL` and `CLASSIC_ALL` price modes, plain prices in one currency are added up; otherwise one is kept and the report says the item is cheaper now. Shared prices from its config.yml are resolved. A price paid in a plain item becomes an item currency on Premium. Prices written as a formula, paid in plugin items, or paid through a placeholder or commands are left out. A buy price of 0, or one that names nothing to pay, makes the item [free](main-features/items/edit-item.md#free). `exp` prices stay experience points and `levels` prices levels. CoinsEngine and ExcellentEconomy currencies keep their currency, other economy plugins are left on the shop's currency. A global buy limit becomes stock, the default buy and sell limits become per-player limits, and `-1` stays unlimited. Products in one `shared-use-times` group get that group's limits and become one limit group, each with its own stock. A timed reset becomes a daily restock at its first time, or a restock that many days after selling out when it sets days. A timer reset becomes one shared refill clock, a cron reset its schedule, and the default reset in config.yml applies to items without one. Limits that depend on a condition are left out. How much each player has already bought and sold, and how much of the global stock is used, come across from its player data files or its database. ## ExcellentShop Reads the virtual shops in ExcellentShop/virtual_shop/shops, both the single-file and the older folder layout, with nightcore's colour scheme and currencies. Everything becomes one shop called `excellentshop`. Each shop's main-menu icon name and description name its category, its main-menu slot orders it, its first alias becomes the category's command, and a required permission becomes `excellentshop.virtual.shop.<shop>`. A shop that turned buying or selling off keeps it off. <figure><img src=".gitbook/assets/migrations/excellentshop.png" alt="" width="563"><figcaption><p>Migrations (Migrate from ExcellentShop)</p></figcaption></figure> Products come across as the exact item, with every detail of the stack, and keep their prices and currency. nightcore colour names such as `<soft_green>` keep the colour they had on that server. Command products run their commands, `player:` ones as the player, and once per purchase unless they use `%amount%`. Items from Nexo, ItemsAdder, MMOItems, CraftEngine and ExecutableItems keep their plugin item. Required and forbidden permissions and ranks become requirements. Dynamic prices come across as their starting price, floating ones as the middle of their range. Global stock and per-player buy and sell limits come across with their restock time. The remaining stock and each player's purchases and sales in data.db come across too. Rotating products are left out, see the Rotating Shop add-on for those. Chest shops and the auction house are not read at all. ## QuickShop Reads QuickShop-Hikari when it is there, otherwise the older QuickShop (Reremake), from its local database or from MySQL with the connection and table prefix in its config.yml. Each shop becomes a [player shop](main-features/player-shops/README.md) on the same container and sign, owned by the same player, and its sign is rewritten to ours. A shop whose sign or container already holds one of ours is left alone, so importing again only adds what is missing. <figure><img src=".gitbook/assets/migrations/quickshop.png" alt="" width="563"><figcaption><p>Migrations (Migrate from QuickShop)</p></figcaption></figure> | QuickShop shop | Becomes | | --- | --- | | Selling | Players buy from the chest, at the same price. | | Buying | Players sell into the chest. | | Frozen | Left out. Unfreeze it and import again. | | Unlimited | An admin shop with endless stock, paying nobody. | | Owned by the server | An admin shop when unlimited, otherwise left out. | The item comes across as the exact stack. With stacking shops turned off, a shop trades one item at a time, as it did. Staff and administrators of a shop become its staff. A currency that is also set up here keeps that currency, any other becomes money. A shop with its display item turned off keeps it off. Shop names, profit sharing, blocked players and per-shop tax accounts are left out and counted in the report. QuickShop-Hikari keeps its shops in an H2 database. Reading it needs the H2 driver, which is downloaded from Maven Central into libs/ the first time and checked against its published checksum. On a server without internet access, put `h2-2.1.214.jar` from Maven Central in that folder yourself. The database is copied before it is read, never opened in place. On Windows, QuickShop-Hikari locks it while running, so remove its jar and restart before importing there. The sign is the empty or QuickShop sign on a side of the container, as QuickShop finds it. A shop in an unloaded chunk takes the first wall sign on its container when that chunk loads. Shops with no sign, or on any container other than a chest, trapped chest, barrel or shulker box, are left out. Purchase logs and offline notifications are not read. ## Shop (snowgears) Reads every owner's shop file in Shop/Data, the admin shops and the older files named after the player, with the currency from its config.yml. Each shop becomes a [player shop](main-features/player-shops/README.md) on the same sign and container, owned by the same player. Signs in loaded chunks are rewritten to ours. A sign that already holds one of ours is left alone, so importing again only adds what is missing. <figure><img src=".gitbook/assets/migrations/shop-snowgears.png" alt="" width="563"><figcaption><p>Migrations (Migrate from Shop (Migrate from Shop (snowgears))</p></figcaption></figure> | Shop type | Becomes | | --- | --- | | `sell` | Players buy from the chest, at the same price for the same amount. | | `buy` | Players sell into the chest. | | `combo` | Both. The sell price is what players pay, the buy price what they get. | | `barter` | Players buy, paying with the barter item. | | `gamble` | Left out. | | Admin shops | Admin shops with endless stock and no owner. | A `VAULT` currency becomes money and `EXPERIENCE` becomes experience points. An `ITEM` currency, the default, makes every shop paid in that item, emerald unless it was changed, with prices as item counts. A trade amount above a stack comes across as it was. Display type `NONE` turns the shop's display off. Shops on an ender chest or any other container than a chest, trapped chest, barrel or shulker box are left out. Offline purchase notifications and its transaction database are not read. ## ChestShop ChestShop keeps its shops only on the signs, so the import reads the saved region files of every loaded world, without loading a chunk. Run `/save-all` first, or shops made since the last save are missed. Each sign becomes a [player shop](main-features/player-shops/README.md) on the same sign and the container ChestShop trades from, owned by the player its users.db names for the sign. A sign that already holds one of ours is left alone, so importing again only adds what is missing. <figure><img src=".gitbook/assets/migrations/chestshop.png" alt="" width="563"><figcaption><p>Migrations (Migrate from ChestShop)</p></figcaption></figure> | Sign | Becomes | | --- | --- | | `B` price | Players buy from the chest, at that price for the sign's amount. | | `S` price | Players sell into the chest. | | Both | Both, each at its own price. | | `free` | A price of 0. | | Amount above a stack, or a stock counter | The same amount. The counter is dropped. | | Item name, shortened name, `:damage` or `#code` | The exact item, `#code` items with every detail from its items.db. Item aliases are followed. | | Admin Shop | An admin shop with endless stock, even where it traded from its chest before. | A container here holds one shop, so when several signs trade from one chest only the first comes across. Admin Shop signs with no chest beside them become admin shops that need no container. Signs whose owner its users.db does not know, unfinished `?` signs, and shops on a container other than a chest, trapped chest, barrel or shulker box are left out. Players who turned off their sale messages keep them off. Discounts, price limits and tax are not read. ## Essentials Reads Essentials/worth.yml, and items.json for older item names. Everything becomes one sell-only shop called `essentials`, sorted into Tools, Armour, Ores, Food, Blocks and Other categories. When two entries name the same item, the one under its current name wins. Prices split by data value price each old variant, such as each sapling, and the `*` price covers the variants with none of their own. Entries that are not an item a player can hold, such as water and lava, are left out. <figure><img src=".gitbook/assets/migrations/essentials.png" alt="" width="563"><figcaption><p>Migrations (Migrate from Essentials)</p></figcaption></figure> Source: https://www.phoenixplugins.com/docs/phoenix-shop/migration --- # 🤖 Action Types In our system's configuration files, you can utilize various action types to perform different actions. These actions enable you to interact with players, send messages, play sounds, set gamemodes, and much more. Actions run from four places: * **Menu buttons**, from the actions of any button in a shop menu. * **Shop actions**, when a player buys, sells, is refused, clicks, turns a page or uses the amount, fill and back buttons in a shop. * **Category actions** ⭐, when a player opens or closes a category. * **Deny actions** ⭐, when a requirement stops a player from buying or selling an item. ## Action Types | Action Type | Description | Where | | ----------- | ----------- | ----- | | \[ACTION\_BAR] | Display a custom action bar to the player | Everywhere | | \[CLOSE\_INVENTORY] | Close the player's current inventory | Everywhere | | \[SOUND] | Play a sound for the player | Everywhere | | \[TITLE] | Display a custom title message to the player | Everywhere | | \[DELAY] | A way to delay some actions | Everywhere | | \[MESSAGE] ⭐ | Display a custom message to the player | Everywhere | | \[COMMAND] ⭐ | Execute a command (console or player) | Everywhere | | \[GAMEMODE] ⭐ | Set the player's gamemode | Everywhere | | \[PARTICLE] ⭐ | Show particles around the player | Everywhere | | \[CATEGORY] | Open a category | Everywhere | | \[SHOP] | Open a shop's main menu | Everywhere | | \[ENCHANT] ⭐ | Enchant the item in the player's hand | Deny actions | | \[PERMISSION] ⭐ | Give or take a permission | Deny actions | Explore each action type to learn more about its syntax and usage. Examples are provided to illustrate how to use these actions effectively in your system or application. > **Info:** The actions do not replace any placeholder themselves. In a menu button, the menu's own placeholders are filled in before the action runs, so a button in a category can use `%player%`. See [Placeholders](placeholders.md#menu-placeholders). ## **Send Action Bar Message** This action displays a custom action bar message to the player. * **Syntax:** `[ACTION_BAR] <message>` * **Example:** `[ACTION_BAR] &aThanks for shopping` ## **Close Inventory** This action closes the inventory the player has open. * **Syntax:** `[CLOSE_INVENTORY]` * **Example:** `[CLOSE_INVENTORY]` ## **Play Sound** This action plays a sound for the player. * **Syntax:** `[SOUND] <sound>; <volume>; <pitch>` * **Example:** `[SOUND] entity_experience_orb_pickup; 1; 1` ## **Send Title Message** This action displays a custom title message to the player. The timings are in ticks. * **Syntax:** `[TITLE] <title>; <subtitle>; <fadein>; <stay>; <fadeout>` * **Example:** `[TITLE] &aCustom title; &7Custom Subtitle; 20; 40; 20` ## **Delay** This action will make a short pause until it continues executing actions. * **Syntax:** `[DELAY] <seconds>` * **Example:** `[DELAY] 3` * **Example:** `[DELAY] 0.5` ## **Open a Category** This action opens a category for the player, with the same checks as clicking it in the main menu: the shop's and the category's conditions apply and a disabled category does not open. A [hidden](../main-features/categories/edit-category.md#hidden) category opens. * **Syntax:** `[CATEGORY] <category>` or `[CATEGORY] <shop>:<category>` * **Example:** `[CATEGORY] ores` * **Example:** `[CATEGORY] blocks:wool` Without a shop, the category is looked up in the shop the action runs in. Outside a shop menu, such as in a deny action, write the shop as well. ## **Open a Shop** This action opens a shop's main menu for the player, with the same checks as its open command. * **Syntax:** `[SHOP] <shop>` * **Example:** `[SHOP] blocks` ## **Send Chat Message** ⭐ This action sends a custom message to the player. * **Syntax:** `[MESSAGE] <message>` * **Example:** `[MESSAGE] &aThis is a custom message` Semicolons inside the message are kept, so you do not have to escape them. ## **Execute Command** ⭐ This action executes a command either from the console or as a player. * **Syntax:** `[COMMAND] <target>; <command>` * **Example:** `[COMMAND] console; give %player% diamond 1` * **Example:** `[COMMAND] player; spawn` The target has to be either `console` or `player`. A leading `/` is optional. ## **Change Gamemode** ⭐ This action sets the gamemode for the player. * **Syntax:** `[GAMEMODE] <gamemode>` * **Example:** `[GAMEMODE] adventure` ## **Show Particles** ⭐ This action spawns particles at the player's location, seen only by that player. * **Syntax:** `[PARTICLE] <particle>; <count>; <offset x>; <offset y>; <offset z>` * **Example:** `[PARTICLE] happy_villager; 20; 0.5; 1; 0.5` Particles that need a color, a block or an item, such as dust, are skipped. ## **Enchant Held Item** ⭐ This action adds an enchantment to the item in the player's main hand. Nothing happens when the hand is empty. * **Syntax:** `[ENCHANT] <enchantment>; <level>` * **Example:** `[ENCHANT] sharpness; 5` ## **Give or Take a Permission** ⭐ This action gives the player a permission, or takes it away when `remove` is added. It needs Vault and a permissions plugin hooked into Vault. * **Syntax:** `[PERMISSION] <permission>; [remove]` * **Example:** `[PERMISSION] essentials.fly` * **Example:** `[PERMISSION] essentials.fly; remove` Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/action-types --- # 🤖 Commands ## Commands The following list shows all available commands for the plugin. **Command alias:** `/phoenixshop`, `/phoenixs`, `/pshop` <> - Required \ \[] - Optional **Player Commands** | Command | Description | | ------- | ----------- | | `/<shop command> [player]` | Opens that shop, such as `/shop`. | | `/pshop open <shop> [category] [player]` | Opens a shop, or one of its categories. | | `/pshop buy <shop> <category> <item> [amount]` | Buys an item without opening the shop. | | `/pshop sell <shop> <category> <item> [amount]` | Sells an item without opening the shop. | | `/sell hand` | Sells the item in your hand. | | `/sell handall` | Sells every stack identical to the item in your hand. | | `/sell inventory` | Sells everything in your inventory. | | `/sell menu` | Opens the sell menu. | | `/pshop search [terms]` ⭐ | Searches for an item across every shop. | | `/pshop search hand` ⭐ | Searches every shop for the item in your hand. | | `/pshop undo` ⭐ | Reverses your last transaction. | | `/pshop alerts toggle` ⭐ | Turns restock and sale alerts off or on. | | `/pshop forms` | Switches between Bedrock forms and chest menus. | **Admin Commands** | Command | Description | | ------- | ----------- | | `/pshop editor` | Opens the in-game editor. | | `/pshop editlayout <shop> <menu>` | Edits the layout of a shop menu in-game. | | `/pshop reload` | Reloads config.yml, the shops and the menus from disk. | | `/pshop doctor` | Checks the license, economy, database, shops and add-ons and prints one line per check. Requires `phoenixshop.admin`. See [Doctor and Dashboard](https://www.phoenixplugins.com/docs/phoenix-plugins/doctor-and-dashboard). | | `/pshop changelog` | Opens the list of released builds and their changes. | | `/pshop link` | Lite only. Links this server to your Phoenix Plugins account for 5 more chest shops per player. See [Linking a Lite Server](licensing.md#linking-a-lite-server). | | `/pshop addons` ⭐ | Lists the official add-ons, green when installed and gray when not, then any third-party add-ons. Clicking an official add-on opens its page. | | `/pshop history [player]` | Opens the purchase history. | | `/pshop history export [player] [shop]` ⭐ | Exports the purchase history to the exports folder. | | `/pshop prices` | Opens the price generator. | | `/pshop audit` ⭐ | Looks for money loops in the prices. | | `/pshop limits reset <player> [shop] [category] [item]` ⭐ | Resets a player's buy and sell limits. | | `/pshop stock set <shop> <category> <item> <amount>` ⭐ | Sets how many of an item are left. | | `/pshop stock restock <shop> <category> <item>` ⭐ | Restocks an item now. | | `/pshop editshop` | Edits the Sign Shop or chest shop you are looking at. | | `/pshop webhooktest` ⭐ | Posts a test message to the Discord webhooks. | | `/pshop database import sqlite [confirm]` ⭐ | Copies the old SQLite data into the MySQL or MariaDB database. See [Moving from SQLite to MySQL](../configurations/main-configuration.md#moving-from-sqlite-to-mysql). | On Lite, `/pshop addons`, `/pshop audit`, `/pshop limits`, `/pshop stock` and `/pshop history export` reply with a link to the Premium page instead. **Chest Shop Commands** | Command | Description | | ------- | ----------- | | `/chestshop notifications` | Opens the menu that turns each kind of [owner notice](../main-features/player-shops/trading.md#owner-notices) about your shops on or off. | | `/chestshop list [search]` | Lists every player shop, or those whose item, owner or name matches. Left-click an entry to teleport, right-click it to trade remotely. | | `/chestshop editor` | Opens the [editor](../main-features/player-shops/edit-player-shop.md) of the chest shop you are looking at, sign or container, the same as right-clicking your own sign. Admins can open any shop's editor this way. | | `/chestshop price <buy\|sell> <price>` | Sets a price on the chest shop you are looking at. | | `/chestshop amount <amount>` | Sets how many items the chest shop you are looking at trades per click. | | `/chestshop mode <buy\|sell\|both>` | Sets the mode of the chest shop you are looking at. | | `/chestshop name <name>` | Names the chest shop you are looking at, `-` clears it. | | `/chestshop discount <percent> <length>` | Starts a timed discount on the chest shop you are looking at, `off` ends it. ⭐ | | `/chestshop find [search] [selling\|buying]` | Opens a menu of the shops that sell and buy an item, found by its name, material or custom id. Without a search it uses the one in your hand. | | `/chestshop market` | Opens the market: every traded item with its cheapest seller and best buyer. ⭐ | | `/chestshop transfer <player>` | Hands the player shop you are looking at to another player. | | `/chestshop tp [shop]` | Teleports to a chest shop, the same as clicking it in the list. Tab completion lists your own shops, by name with spaces as `_`, or by a short code for a shop without a name; admins get every shop. The **\[Teleport]** on an owner notice runs it. With no shop named, it goes to the shop of your latest stock warning. | | `/chestshop transferall <from> <to>` | Moves every player shop of one player to another. | | `/chestshop purge [days] [confirm]` | Counts, then with `confirm` removes, the player shops of owners who have not played for that many days. ⭐ | | `/chestshop clean [confirm]` | Counts, then with `confirm` removes, the shops in loaded chunks that sell to players and hold less than one trade. | | `/chestshop removeall <player> [confirm]` | Counts, then with `confirm` removes, every player shop that player owns. | | `/chestshop ban <player>`, `/chestshop unban <player>` | Stops a player from making chest shops and trading at any chest shop, or lets them again. | | `/chestshop removeworld <world> [confirm]` | Counts, then with `confirm` removes, every chest shop in that world, admin shops included. | ## Chest Shop Command The player shop commands are under `/chestshop`, alias `/cs`. Both names can be changed, or the command turned off, in the commands section of config.yml, see [Chest Shop Command](../main-features/player-shops/settings.md#chest-shop-command). The details of each are on [Player Shops](../main-features/player-shops/README.md). ## Shop Commands Every shop registers its own command, named after the shop's open command rather than its identifier, so renaming a shop does not move its command. Adding the player's name opens the shop for them, which needs `phoenixshop.command.open-others`. If another plugin already owns that command, the shop gets none and the console says so. The shop is still reachable with `/pshop open <shop>`. A category can have an [open command](../main-features/categories/edit-category.md#open-command) of its own in the same way. A command a shop already uses is not given to a category. `/pshop open` works from the console as long as a player is named. When its second word is not a category of the shop but is an online player, the shop's main menu opens for that player, so `/pshop open <shop> <player>` keeps working. ## Quick Buy and Sell `/pshop buy` and `/pshop sell` trade one item by its shop, category and item identifier, and tab complete each in turn. The `amount` is in items and is rounded down to whole lots, with at least one lot. Without it, one lot is traded. Everything a trade in the menu checks still applies: the shop's conditions, requirements, stock, limits and prices, along with the messages and the shop and category actions. A disabled shop, category or item refuses. The limits and stock commands are covered on [Stock & Restock](../main-features/items/stock-and-restock.md#commands), and the alerts command on [Restock & Sale Alerts](../features/restock-and-sale-alerts.md). ## Arguments | Argument | Accepts | | -------- | ------- | | `<menu>` | `main`, `buy`, `sell`, `bulk-buy`, `bulk-sell`, `sell-menu`, or the identifier of one of the shop's categories. | | `[player]` in history | A player name, or `*` for everyone. | `/pshop forms` only works for Bedrock players, and only while Bedrock forms and the opt-out are both enabled in config.yml. > **Info:** `/sell` takes over the command from any other plugin that registered it first. That plugin's own command stays reachable with its prefix, such as `/essentials:sell`. ## Add-on Commands The add-ons register commands of their own, documented on each add-on's page. Add-ons load on Premium only. | Add-on | Commands | | ------ | -------- | | AutoSell | `/autosell`, `/pshop autosell`, `/pshop sellchest` | | Rotating Shop ⭐ | `/rotatingshop`, `/rshop` | | Sell Boosters ⭐ | `/sellbooster`, `/sellboosters` | | Sell Wands ⭐ | `/sellwand`, `/sellwands` | Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/commands --- # 🪪 Lite and Premium > **Info:** License keys, sessions, startup validation and failures work the same for every Phoenix plugin and are covered on the general [Licensing](https://www.phoenixplugins.com/docs/phoenix-plugins/licensing) page. Phoenix Shop comes in two jars. PhoenixShopLite is the free version and PhoenixShop is the Premium one. Both share the same editor, menus and file format, so everything built on Lite keeps working after an upgrade. ## When Validation Fails On Premium, the plugin switches to a limited mode instead of turning off, so nothing a player or an owner has is lost. There is no time limit. | Keeps working | Paused | | ------------- | ------ | | Chest shop protection, and owners opening and breaking their own chest shops | Buying and selling in the shops, `/sell`, and admin sign shops | | Chest shop earnings, paid out when the owner joins | Chest shop trading and new chest shops | | The Auction House collection bin and cancelling your own listings | Buying, bidding and listing in the Auction House | | `/pshop reload`, `/pshop doctor` and `/pshop history` | The editors and every add-on | A player who tries to use something paused is told the shop is paused while the server fixes its license. Open editors and sell menus are closed, and the items in a sell menu are handed back. Admins with `phoenixshop.admin` get a message on join with the reason, and the console prints what is wrong and how to fix it. Fix the cause and run `/pshop reload`: once the license is valid the full plugin runs again without a restart. `/pshop doctor` shows the details. The causes and their console messages are listed under [When Validation Fails](https://www.phoenixplugins.com/docs/phoenix-plugins/licensing#when-validation-fails). ## What the Lite Version Limits | Feature | Lite | Premium | | --- | --- | --- | | Shops | 3 | Unlimited | | Currencies | Vault, PlayerPoints, VotingPlugin, ExcellentEconomy, PhoenixCurrencies, Levels | Adds Item and Placeholder | | Currency per category and per item | No | Yes | | Database | SQLite | SQLite, MySQL, MariaDB | | Menu actions | Action Bar, Close Inventory, Sound, Title, Delay | Adds Command, Gamemode, Message, Particle | | Stock, player limits and restocking | No | Yes | | Requirements | No | Yes | | Category open and close actions | No | Yes | | Add multiple items at once | No | Yes | | Player chest shops | Up to 25 per player, 30 on a linked server | Unlimited, set per player | | Admin chest shops | Up to 25 | Unlimited | | Chest shop staff, discounts and trade limits | No | Yes | | Chest shops paid in items or in other currencies | Default currency only | Yes | | Remote trading, map markers and `/chestshop market` | No | Yes | | Purging inactive chest shops | No | Yes | | Admin sign shops | Up to 20 | Unlimited | | Purchase history | Yes | Yes | | History filters and export | No | Yes | | Undo | No | Yes | | Search, preview and restock and sale alerts | No | Yes | | Price modifiers (Sell Boosters add-on) | No | Yes | | Price generator | Yes | Yes | | Price audit | Loop count only | Yes | | Discord webhooks | No | Yes | | Auction House | Fixed-price listings, up to 10 per player, in the default currency, with the built-in categories | Adds auctions with bids, bundles, the watchlist, the price guide, listing again, more currencies, limits and tax by permission, tax and prices per currency and item, your own categories, the allow-list, `/ah open` and the server restock with automatic prices | | Auction House migrations | Every listing, past the per-player limit | Yes | | Migrations | Up to 3 shops, picked when there are more | Every shop | | Chest shop migrations (QuickShop, Shop, ChestShop) | Every shop, past the per-player limit | Yes | | Migrated stock and limit counts | No | Yes | | Add-ons | None | Free add-ons, and the paid ones your license owns | Premium buttons stay visible in the Lite editor, marked as Premium only. Clicking one closes the menu and sends a chat link to the Premium page. `/pshop history export`, and for `phoenixshop.admin` also `/pshop addons`, `/pshop audit`, `/pshop limits` and `/pshop stock`, answer on Lite with the same link. When a shop, chest shop or sign shop limit stops a player holding `phoenixshop.admin`, the limit message is followed by the same link, and for the chest shop limit on a server that is not linked also by a pointer to `/pshop link`. Other players only see the limit message. Bedrock players cannot click chat links, so they also get the address as plain text, here and on the version notices below. ## How the Limits Behave ### Shops Lite loads 3 shop files. Any other file in the shops folder is skipped with a console warning and left untouched, so it loads again the moment Premium is installed. The editor stops offering to create a shop once the limit is reached. When a migration would bring the server past 3 shops, it first lists the imported shops so you can pick as many as there are free slots, and they are added next to your current ones. When all 3 slots are taken, the migration asks you to delete a shop first and never replaces one. ### Chest and Sign Shops On Lite every player can own up to 25 chest shops, or 30 on a [linked server](#linking-a-lite-server). [Max Per Player](../main-features/player-shops/settings.md#max-per-player) and the per-player permissions can lower that but not raise it. Admin chest shops work on Lite up to 25 across the server, and admin sign shops up to 20. Staff, discounts, trade limits, paying with an item, currencies other than the default, remote trading, map markers, `/chestshop market` and purging inactive shops are Premium. On Lite their buttons show as Premium only to admins, players do not see them, and `/chestshop discount` and `/chestshop market` are not registered. Names, item displays, holograms, the shop list and find, teleporting, transfers, claims, tax and the rest of the settings work the same as on Premium. After a downgrade, staff keep their access, a running discount runs until it ends, trade limits stay in force, and shops in another currency or paid in items keep trading, but none of them can be set up or changed. Chest shops brought in by a chest shop migration always load, even past 25, but count toward the limit, so a player at or over it cannot make another. After a downgrade, the other chest shops a player made past their first 30 are kept in the database but not loaded. Admin shops beyond the cap are kept the same way. Both load again once Premium is back. ### Currencies Item and Placeholder currencies are not loaded on Lite, and the console says so once on startup. A shop priced in one of them does not open, and an item priced in one cannot be bought or sold. ### Database If config.yml asks for MySQL or MariaDB on Lite, the plugin uses SQLite instead and warns in the console. Your database settings are left as they are. ### Add-ons Lite loads no add-ons, custom ones included. Each jar in the addons folder is skipped with a console message, and an empty addons folder is removed on startup. On Premium, a paid add-on loads only when it is attached to your license on phoenixplugins.com. Otherwise the console says it was not loaded, and the rest of the plugin runs as usual. Free and third-party add-ons always load. `/pshop addons` shows which ones are installed. ## Linking a Lite Server Link a Lite server to your Phoenix Plugins account and every player can own 30 chest shops instead of 25. Run `/pshop link` with `phoenixshop.admin`. You get a link to click and a code to enter on the website; the code is valid for 15 minutes. Once you confirm it, the console and online admins are told the bonus is active. `/pshop link` on a linked server says so. The link is remembered across restarts and website outages. Unlink a server on the website under **Settings > Linked Lite Servers**. After unlinking, players cannot make chest shops past 25, but the ones made while linked stay and keep loading. ## Server Statistics Lite sends the server version, software, the domains players join through and the online player count to our servers on startup, every 5 minutes and on shutdown, so the server shows on the **My Servers** page of the website. `send-server-statistics` in config.yml turns it off. Linking works without it. ## Version Notices Players holding `phoenixshop.admin` are told on join when a newer build is out, on Lite too, and the first time they join after an update they can click to see what changed. `/pshop changelog`, or the Changelog button in the editor, lists every released build with its changes. `notify-if-new-version` in config.yml turns the notices off. ## Upgrading to Premium 1. Stop the server. 2. Remove PhoenixShopLite-?.jar and add PhoenixShop-?.jar. 3. Copy the contents of `plugins/PhoenixShopLite` into `plugins/PhoenixShop`. 4. Start the server. > **Warning:** The two versions use different plugin folders. Skipping step 3 starts Premium with a fresh default shop instead of yours. Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/licensing --- # 🔒 Permissions ## Player Permissions **Player Permissions** | Permission | Default | Description | | ---------- | ------- | ----------- | | phoenixshop.command.buy | Everyone | Allows user to use `/pshop buy`. | | phoenixshop.command.sell | Everyone | Allows user to use `/pshop sell`. | | phoenixshop.sell.hand | OP | Allows user to use `/sell hand`. | | phoenixshop.sell.handall | OP | Allows user to use `/sell handall`. | | phoenixshop.sell.inventory | OP | Allows user to use `/sell inventory`. | | phoenixshop.sell.menu | OP | Allows user to use `/sell menu`. | | phoenixshop.sell.all | OP | Allows user to sell every matching item at once from a shop menu. | | phoenixshop.buy.fill-inventory | OP | Allows user to fill the whole inventory in one purchase from the buy menu. | | phoenixshop.sign.create | Everyone | Allows user to build a chest shop of their own. | | phoenixshop.sign.limit.\<number> | Nobody | Sets how many chest shops the user can own, such as `phoenixshop.sign.limit.10`. With several, the highest counts. Without one, [Max Per Player](../main-features/player-shops/settings.md#max-per-player) applies. Lite caps it at 25. | | phoenixshop.sign.limit.unlimited | OP | Removes the user's chest shop limit. Lite still caps it at 25. | | phoenixshop.sign.transfer | Everyone | Allows user to hand their own chest shop to another player with `/chestshop transfer`. | | phoenixshop.sign.list | Everyone | Allows user to use `/chestshop list`. | | phoenixshop.sign.find | Everyone | Allows user to use `/chestshop find`. | | phoenixshop.sign.teleport | Everyone | Allows user to teleport to a chest shop from `/chestshop list` and `/chestshop find`, while [Teleport](../main-features/player-shops/settings.md#teleport) is on. | | phoenixshop.sign.remote | Everyone | Allows user to trade with a chest shop from `/chestshop list` and `/chestshop find` without walking to it, while [Remote Trading](../main-features/player-shops/settings.md#remote-trading) is on. | | phoenixshop.search ⭐ | Everyone | Allows user to use `/pshop search`. | | phoenixshop.undo ⭐ | Everyone | Allows user to use `/pshop undo`. | | phoenixshop.alerts ⭐ | Everyone | Allows user to receive [restock and sale alerts](../features/restock-and-sale-alerts.md) and to use `/pshop alerts toggle`. | | phoenixshop.preview ⭐ | Everyone | Allows user to preview what an item gives. | > **Info:** The `/sell` permissions default to OP. Give them to your players, or to a group, for `/sell` to work for them. ## Admin Permissions **Admin Permissions** | Permission | Description | | ---------- | ----------- | | phoenixshop.admin | Counts as every other permission on this page except the command ones, and allows `/pshop webhooktest` and `/pshop doctor`. | | phoenixshop.command.editor | Allows user to use `/pshop editor` and `/pshop editlayout`. | | phoenixshop.command.reload | Allows user to reload the plugin. | | phoenixshop.command.changelog | Allows user to open the changelog with `/pshop changelog`. | | phoenixshop.command.addons ⭐ | Allows user to list the add-ons with `/pshop addons`. | | phoenixshop.command.open-others | Allows user to open a shop for another player. | | phoenixshop.command.history | Allows user to open the purchase history, and to export it ⭐. | | phoenixshop.command.prices | Allows user to open the price generator. | | phoenixshop.command.audit ⭐ | Allows user to run the price audit. | | phoenixshop.command.database ⭐ | Allows user to import the old SQLite data with `/pshop database import sqlite`. | | phoenixshop.command.limits ⭐ | Allows user to reset a player's buy and sell limits with `/pshop limits`. | | phoenixshop.command.stock ⭐ | Allows user to set and restock stock with `/pshop stock`. | | phoenixshop.sign.bypass | Allows user to build a chest shop in one of the [Blocked Worlds](../main-features/player-shops/settings.md#blocked-worlds). Also skips the [claim check](../main-features/player-shops/settings.md#require-claim). | | phoenixshop.sign.admin | Allows user to break anyone's chest shop, to make admin chest shops, and to place, break and edit admin sign shops. Also allows `/chestshop editor` and `/chestshop transfer` on any chest shop, `/chestshop transferall`, `/chestshop purge`, `/chestshop clean`, `/chestshop removeall`, `/chestshop removeworld`, `/chestshop ban` and `/chestshop unban`. | Every admin permission defaults to OP. > **Warning:** phoenixshop.admin does not unlock the `/pshop` commands. Give each command its own permission, or grant `phoenixshop.command` to cover all of them. ## Shop Permissions Each shop can require its own permission before a player can open it. It is empty by default, which leaves the shop open to everyone, and is set per shop from the editor. An admin opening a shop for another player skips that player's permission. ## Price Modifier Permissions ⭐ Each [price modifier](../add-ons/sell-boosters/README.md#price-modifiers) group of the Sell Boosters add-on names its own permission, such as `phoenixshop.modifier.vip`. It only counts when it is set on the player, directly or through a group, so OP alone does not give it. ## Sign Shop Permissions **Sign Shop Permissions** | Permission | Default | Description | | ---------- | ------- | ----------- | | phoenixshop.signs.use.\<shop> | OP | Allows user to use the admin sign shops of that shop that require a permission. | | phoenixshop.signs.use.\* | OP | Allows user to use every admin sign shop that requires a permission. | | phoenixshop.signs.buy-stack | Everyone | Allows user to buy a stack from a sign shop. | | phoenixshop.signs.sell-stack | Everyone | Allows user to sell a stack to a sign shop. | | phoenixshop.signs.buy-inventory | Everyone | Allows user to fill their inventory from a sign shop. | | phoenixshop.signs.sell-all | Everyone | Allows user to sell everything that matches to a sign shop. | A sign shop can name its own permission instead of `phoenixshop.signs.use.<shop>`. ## Add-on Permissions The add-ons add permissions of their own, documented on each add-on's page. Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/permissions --- # 🔍 Placeholders Phoenix Shop supports **PlaceholderAPI**, allowing you to use placeholders from other plugins inside the shop. Below is where PlaceholderAPI placeholders are read, as well as our **internal placeholders** that you can use in commands, menus and signs. ## PlaceholderAPI The plugin registers the placeholders below. The AutoSell and Rotating Shop add-ons register their own, listed on their pages. PlaceholderAPI placeholders are resolved for the player in: * Purchase commands and sell commands. * The input and output of a requirement. ⭐ * The balance of a Placeholder currency. ⭐ `<shop>`, `<category>` and `<item>` are identifiers, not display names, in any case. Separate them with `:`. An item is looked up in every category of the shop. A placeholder naming something that does not exist is left as it is. ### Sales ⭐ | Placeholder | Description | | ----------- | ----------- | | `%phoenixshop_sale_<shop>%` | The percent off of the shop-wide sale running now. `0` without one. | | `%phoenixshop_sale_<shop>:<category>%` | The percent off the category gets now: its own sale, or the shop-wide one. | | `%phoenixshop_sale_active_<shop>%`, `%phoenixshop_sale_active_<shop>:<category>%` | `true` while that sale runs, otherwise `false`. | | `%phoenixshop_sale_ends_<shop>%`, `%phoenixshop_sale_ends_<shop>:<category>%` | The time until the running sale stops: its end date, the end of its time window or the end of its last day, whichever comes first. `-` when no sale runs, `Never` when it has no end. | | `%phoenixshop_sale_ends_<shop>_seconds%`, `%phoenixshop_sale_ends_<shop>:<category>_seconds%` | The same in seconds. `0` when no sale runs, `-1` when it has no end. | ### Items | Placeholder | Description | | ----------- | ----------- | | `%phoenixshop_buy_<shop>:<item>%` | The price the player pays for one purchase now, as the category menu shows it. `-` when the item cannot be bought. | | `%phoenixshop_sell_<shop>:<item>%` | The price the player gets for one sale now. `-` when the item cannot be sold. | | `%phoenixshop_buy_<shop>:<item>_raw%`, `%phoenixshop_sell_<shop>:<item>_raw%` | The same price as a plain number. `-1` when it cannot be bought or sold. | | `%phoenixshop_stock_<shop>:<item>%` | The stock left, or `Unlimited`. ⭐ | | `%phoenixshop_restock_<shop>:<item>%` | The time until the item restocks. `-` when no restock is due. ⭐ | | `%phoenixshop_restock_<shop>:<item>_seconds%` | The same in seconds, `-1` when no restock is due. ⭐ | | `%phoenixshop_limit_<shop>:<item>%` | How many more the player can buy before their purchase limit. `Unlimited` without a limit, `-` while the player is offline. ⭐ | ### Player Shops | Placeholder | Description | | ----------- | ----------- | | `%phoenixshop_playershops%` | How many player shops the player owns. | | `%phoenixshop_playershops_limit%` | How many they can own, or `Unlimited`. Limit permissions only count while the player is online. | | `%phoenixshop_playershops_left%` | How many more they can create. | ### Player Stats ⭐ Counted from the purchase history: shops and admin sign shops, without player shop trades or undone transactions. They refresh about once a minute and show `0` until the first load. | Placeholder | Description | | ----------- | ----------- | | `%phoenixshop_spent%`, `%phoenixshop_spent_<shop>%` | The money spent, per currency, separated by commas. | | `%phoenixshop_earned%`, `%phoenixshop_earned_<shop>%` | The money earned, per currency. | | `%phoenixshop_bought%`, `%phoenixshop_bought_<shop>%` | The number of items bought. | | `%phoenixshop_sold%`, `%phoenixshop_sold_<shop>%` | The number of items sold. | | `%phoenixshop_transactions%`, `%phoenixshop_transactions_<shop>%` | The number of transactions. | ### Leaderboards ⭐ The top 10 players, counted like the player stats. `<stat>` is `spent`, `earned`, `bought`, `sold` or `transactions`, and `<n>` is a place from 1 to 10. Add a shop before the place for that shop's board. A shop id may contain `_`, since the place is read from the end. Boards load the first time they are asked for, refresh every 5 minutes and stay empty until the first load. Money boards rank one currency: `money` server-wide, the shop's own currency for a shop board. Trades in other currencies do not count there. | Placeholder | Description | | ----------- | ----------- | | `%phoenixshop_top_<stat>_<n>_name%`, `%phoenixshop_top_<stat>_<shop>_<n>_name%` | The name of the player in that place. `-` when nobody holds it yet. | | `%phoenixshop_top_<stat>_<n>_value%`, `%phoenixshop_top_<stat>_<shop>_<n>_value%` | Their total, in the ranked currency for `spent` and `earned`, a plain number otherwise. `-` when nobody holds the place. | | `%phoenixshop_top_<stat>_position%`, `%phoenixshop_top_<stat>_<shop>_position%` | The player's own place on that board, `-` without any trade counted. | For example `%phoenixshop_top_spent_1_name%` or `%phoenixshop_top_sold_ore_shop_3_value%`. ## Command Placeholders Available in an item's purchase commands and sell commands. | Placeholders | Description | | ------------ | ----------- | | %player% | The name of the player. | | %amount% | The number of times the item was bought or sold. | | %item% | The name of the item. | | %price% | The total price paid or earned. | | %currency% | The name of the currency. | | %shop% | The name of the shop. | ## Placeholder Currency ⭐ Available in the buy and sell commands of a Placeholder currency, which always run from the console. | Placeholders | Description | | ------------ | ----------- | | %player% | The name of the player. | | %amount% | The amount to take or give. | | %amount\_int% | The amount to take or give, rounded up to a whole number. | ## Menu Placeholders Available in the titles, names and lore of the shop menus. Every `%shop%`, `%category%` and `%item%` has a `_colored` version that keeps the colors, such as `%shop_colored%`. | Placeholders | Menus | Description | | ------------ | ----- | ----------- | | %shop% | Every menu | The name of the shop. | | %category% | Category | The name of the category. | | %player% | Category | The name of the player. | | %item% | Buy, Sell, Bulk Buy, Bulk Sell | The name of the item. | | %amount% | Buy, Sell | The number of items selected. | | %lots% | Buy, Sell | The number of times the item is selected. | | %max% | Buy, Sell | The most items the player can buy or sell. | | %unit\_price% | Buy, Sell | The price of one. | | %price% | Buy, Sell | The price of the selected amount. | | %max\_price% | Buy, Sell | The price of the most the player can buy or sell. | | %balance% | Buy, Sell | The balance of the player in the item's currency. | | %stock% | Buy, Sell | The stock left of the item. ⭐ | | %buy\_price\_base%, %sell\_price\_base% | Category, Search | The price before any [price modifier](../add-ons/sell-boosters/README.md#price-modifiers). ⭐ | | %price\_base%, %unit\_price\_base% | Buy, Sell | The price before any price modifier. ⭐ | | %price\_base% | Bulk Buy, Bulk Sell | The price before any price modifier. ⭐ | | %sale% | Main, Category | The [category sale](../main-features/categories/edit-category.md#sale) badge while the sale runs, empty otherwise. ⭐ | | %sale_ends% | Main | A line with the time left on the sale, counting down every second. Left out while no sale with an end is running. ⭐ | | %category\_lore% | Main | The category's [lore](../main-features/categories/edit-category.md#lore), or its icon item's lore when none is set. One line of the template per lore line. | | %count%, %price% | Preview | How many items one purchase gives, and its price. ⭐ | ## Message Placeholders Available in the messages sent after a transaction. | Placeholders | Description | | ------------ | ----------- | | %amount% | The number of items bought or sold. | | %item% | The name of the item. | | %price% | The total price paid or earned. | | %currency% | The name of the currency. | | %balance% | The balance of the player after the transaction. | ## Sign Shop Placeholders Available in the lines of an admin sign shop. | Placeholders | Description | | ------------ | ----------- | | %id% | The identifier of the sign. | | %name% | The name of the sign. | | %shop% | The name of the shop. | | %category% | The name of the category. | | %item% | The name of the item. | | %amount% | The number of items per click. | | %stock% | The stock left of the item. ⭐ | | %buy\_price% | The buy price per click. | | %sell\_price% | The sell price per click. | | %mode% | Whether the sign buys, sells or both. | Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/placeholders --- # ⁉️ Questions & Answers ## Setup and opening shops <details id="why-does-my-shop-say-it-cannot-open"> <summary>Why does my shop say it cannot open?</summary> A shop checks its own currency before it opens, and says what is wrong instead of opening a menu where nothing can be clicked. | Message | Cause | | ----------------------------------------- | --------------------------------------------------------------------------------------- | | **cannot open: it is priced in ...** | The plugin behind the shop's currency is not installed, such as Vault for money. Install it and run /pshop reload, or pick another currency for the shop. | | **is priced in ..., which is not a currency this plugin knows** | The currency named in the shop file does not exist, often a typo or an ExcellentEconomy currency that was removed. | | **is turned off** | The shop is disabled. | | **You don't have permission to do that** | The shop has a permission and the player does not have it. | On start, the console also lists every currency whose plugin is missing, with the plugin to install. > **Info:** The default shop is priced in money, which needs Vault and an economy plugin such as EssentialsX. See [Do I need Vault?](#do-i-need-vault) </details> <details id="do-i-need-vault"> <summary>Do I need Vault?</summary> Only to use money. Phoenix Shop has no required dependencies, but the default shop is priced in money, which needs Vault and an economy plugin such as EssentialsX. Without them the shop does not open and says which plugin is missing. On Folia, use VaultUnlocked instead of Vault. To run without Vault, change the shop's currency to one that needs no economy plugin. | Currency | Needs | | ----------------- | -------------------------------------- | | Money | Vault and an economy plugin | | Points | PlayerPoints | | Vote Points | VotingPlugin | | ExcellentEconomy | ExcellentEconomy | | PhoenixCurrencies | PhoenixCurrencies | | Levels | Nothing | | Item ⭐ | Nothing | | Placeholder ⭐ | PlaceholderAPI | The creation cost of a chest shop is always charged in money, so it needs Vault too. PlaceholderAPI is also needed for requirements that compare placeholders ⭐. </details> <details id="why-doesnt-my-shop-command-work"> <summary>Why doesn't my shop's own command work?</summary> Another plugin already owns that command. Phoenix Shop does not take a command away from another plugin, so the shop is left without a command of its own, and the console says so on start. Pick a command nobody else uses in the shop's settings, or open the shop with /pshop open \<shop>, which always works. A new or changed command is registered straight away from the editor, and on /pshop reload after editing the file. </details> <details id="why-is-cs-an-unknown-command"> <summary>Why is /cs an unknown command for my players?</summary> WorldEdit and FastAsyncWorldEdit have a /cs command of their own and hide it from players without their permission. Phoenix Shop takes the label over and, on Paper, puts its own /cs back into the command list every player receives, so it works for everyone. If /cs still shows in red, another plugin is removing it after Phoenix Shop. Players can always use /chestshop, or you can change the aliases in the chest-shop section of config.yml to one no other plugin uses, such as `cshop`, and run /pshop reload. See [Chest Shop Command](../../main-features/player-shops/settings.md#chest-shop-command). </details> <details id="why-cant-i-create-a-second-shop"> <summary>Why can't I create another shop?</summary> The Lite version holds up to 3 shops. The **New Shop** button in the editor shows the count, such as `3/3`, and stops creating shops once it is reached. Categories are not limited, so one shop can hold as many categories as you like. A shop file past the third dropped into the `shops` folder by hand is not loaded either. The console says so, and the file is left untouched. ``` Not loading shop "vip": the Lite edition holds 3 shops, Premium loads all of them. The file is still there and was not changed. ``` A migration that brings more shops than are free asks which ones to keep. Unlimited shops are part of the [Premium version](https://www.phoenixplugins.com). </details> <details id="what-does-missing-translation-mean"> <summary>What does "Missing translation" mean?</summary> The plugin tried to show a message that is in neither your translation file nor the one inside the jar. The console names it: ``` Missing translation for "..." ``` This almost always means an add-on and the plugin come from different versions. Update both to the latest build and restart. A key you deleted from your translation file does not cause it. Missing keys are written back with their English default on the next start, and the console prints `Missing value for key "..."` for each one. See [Languages & Translations](../../configurations/languages.md). </details> ## Items and selling <details id="why-is-an-item-missing-from-my-shop"> <summary>Why is an item missing from my shop?</summary> A category only shows the items a player can actually trade. An item is hidden when: * It is **disabled**. * Its **currency cannot be used**, because the plugin behind it is not installed. The editor warns about this on the item's currency option. This is the most common cause when an item or a category overrides the shop's currency. * Its **material does not exist** on your server version. A whole category is hidden when it is disabled. An item whose buy and sell prices are both `0` is still shown, but it can be neither bought nor sold. </details> <details id="why-is-my-item-shown-as-dirt"> <summary>Why is my item shown as dirt?</summary> The item comes from another plugin, such as `itemsadder:ruby` or `nexo:silver`, and that plugin is not installed or does not know the item. The shop shows dirt in its place, and the item cannot be bought or sold until it loads. The console names the item the first time it happens: ``` Shop item "ruby" uses "itemsadder:ruby", which could not be loaded. It shows as dirt and cannot be bought or sold. ``` Install the plugin, or fix the item's id, and run /pshop reload. The prefix of each supported plugin is listed on [Shop Configuration File](../../configurations/shop-configuration-file.md#materials). </details> <details id="why-wont-the-shop-accept-my-item-when-selling"> <summary>Why won't the shop accept my item when selling?</summary> The item you hold has to match the shop item under that item's **Selling Rule**. The default is **Exact**, where the name, lore, enchantments and custom data must all be the same. A renamed, enchanted or damaged copy is refused. When the shop item has [purchase items](../../main-features/items/README.md#purchase-items), selling matches against the first one, not against the item shown in the menu. | Rule | What has to match | | --------------------- | ------------------------------------------ | | **Exact** | Everything | | **Material And Name** | The material and the display name | | **Material** | Only the material | Loosen the rule only on items the shop does not sell, or a player can buy something cheap, change it and sell it back as something else. If the rule is not the cause, check that: * The item has a sell price. A price of `0` means it cannot be sold. * The item and its category are enabled. * The item's currency can be used, since an item whose currency plugin is missing cannot be sold. * For /sell and the sell menu, the shop is listed under `sell.shops-whitelisted` in `config.yml` and the player can open it. </details> <details id="why-does-shift-right-click-say-i-need-a-permission"> <summary>Why does shift + right-click say I need a permission?</summary> By default, shift + right-click on an item sells every matching item the player carries. That action needs `phoenixshop.sell.all`, which only operators have by default. Give it to your players with your permission plugin, or change what the click does under `click-mappings` in `config.yml`. See [Main Configuration](../../configurations/main-configuration.md#click-mappings). </details> <details id="why-does-a-spawner-show-a-warning-in-its-tooltip"> <summary>Why does a spawner show a warning in its tooltip?</summary> A spawner that spawns a set mob carries block data, and the game client adds a warning line to the tooltip of any item that does. It is not an error from the plugin, and the spawner works normally once placed. The plugin cannot remove that warning without removing the mob from the item, which would break stacking plugins that read it. On Paper 1.21.5 and newer it does hide the extra line naming the mob, so name the spawner or add the mob to its lore if players should see which one it is. </details> ## Compatibility and purchases <details id="is-phoenixshop-folia-compatible"> <summary>Is PhoenixShop Folia compatible?</summary> Yes, both the free and the premium version run on Folia. </details> <details id="does-the-plugin-support-bedrock-versions"> <summary>Does the plugin support Bedrock players?</summary> Yes. With Geyser or Floodgate installed, Bedrock players get native forms instead of chest menus, with buttons, amount sliders and confirmations. A Bedrock player who prefers the chest menus can switch with /pshop forms. Every option is on [GeyserMC / Bedrock](../../configurations/geysermc-bedrock.md). </details> <details id="can-the-plugin-run-as-a-forge-or-fabric-mod"> <summary>Can the plugin run as a Forge or Fabric mod?</summary> No. It is a Java plugin and there is no mod version of it. Hybrid servers such as Arclight or Mohist can load it, but we do not recommend them. Faults caused by the hybrid itself are not plugin issues. </details> <details id="do-you-offer-refunds"> <summary>Do you offer refunds?</summary> No. Once the product has been downloaded it is not refundable. See point 7 of our [Terms and Conditions](https://www.phoenixplugins.com/terms-and-conditions). </details> Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/questions-and-answers --- # ⁉️ Can the plugin run as a Forge or Fabric mod? ## Answer No. It is a Java plugin and there is no mod version of it. Hybrid servers such as Arclight or Mohist can load it, but we do not recommend them. Faults caused by the hybrid itself are not plugin issues. Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/questions-and-answers/can-the-plugin-run-as-a-forge-or-fabric-mod --- # ⁉️ Does the plugin support bedrock versions? ## Answer Yes. With Geyser or Floodgate installed, Bedrock players get native forms instead of chest menus, with buttons, amount sliders and confirmations. A Bedrock player who prefers the chest menus can switch with /pshop forms. Every option is on [GeyserMC / Bedrock](../../configurations/geysermc-bedrock.md). Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/questions-and-answers/does-the-plugin-support-bedrock-versions --- # ❓ Do I need Vault? ## Answer Only to use money. Phoenix Shop has no required dependencies, but the default shop is priced in money, which needs Vault and an economy plugin such as EssentialsX. Without them the shop does not open and says which plugin is missing. On Folia, use VaultUnlocked instead of Vault. To run without Vault, change the shop's currency to one that needs no economy plugin. | Currency | Needs | | ----------------- | -------------------------------------- | | Money | Vault and an economy plugin | | Points | PlayerPoints | | Vote Points | VotingPlugin | | ExcellentEconomy | ExcellentEconomy | | PhoenixCurrencies | PhoenixCurrencies | | Levels | Nothing | | Item ⭐ | Nothing | | Placeholder ⭐ | PlaceholderAPI | The creation cost of a chest shop is always charged in money, so it needs Vault too. PlaceholderAPI is also needed for requirements that compare placeholders ⭐. Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/questions-and-answers/do-i-need-vault --- # ⁉️ Do you offer refunds? ## Answer No. Once the product has been downloaded it is not refundable. See point 7 of our [Terms and Conditions](https://www.phoenixplugins.com/terms-and-conditions). Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/questions-and-answers/do-you-offer-refunds --- # ⁉️ Is PhoenixShop Folia compatible? ## Answer Yes, both the free and the premium version run on Folia. Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/questions-and-answers/is-phoenixshop-folia-compatible --- # ❓ What does "Missing translation" mean? ## Answer The plugin tried to show a message that is in neither your translation file nor the one inside the jar. The console names it: ``` Missing translation for "..." ``` This almost always means an add-on and the plugin come from different versions. Update both to the latest build and restart. A key you deleted from your translation file does not cause it. Missing keys are written back with their English default on the next start, and the console prints `Missing value for key "..."` for each one. See [Languages & Translations](../../configurations/languages.md). Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/questions-and-answers/what-does-missing-translation-mean --- # ❓ Why can't I create another shop? ## Answer The Lite version holds up to 3 shops. The **New Shop** button in the editor shows the count, such as `3/3`, and stops creating shops once it is reached. Categories are not limited, so one shop can hold as many categories as you like. A shop file past the third dropped into the `shops` folder by hand is not loaded either. The console says so, and the file is left untouched. ``` Not loading shop "vip": the Lite edition holds 3 shops, Premium loads all of them. The file is still there and was not changed. ``` A migration that brings more shops than are free asks which ones to keep. Unlimited shops are part of the [Premium version](https://www.phoenixplugins.com). Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/questions-and-answers/why-cant-i-create-a-second-shop --- # ❓ Why does a spawner show a warning in its tooltip? ## Answer A spawner that spawns a set mob carries block data, and the game client adds a warning line to the tooltip of any item that does. It is not an error from the plugin, and the spawner works normally once placed. The plugin cannot remove that warning without removing the mob from the item, which would break stacking plugins that read it. On Paper 1.21.5 and newer it does hide the extra line naming the mob, so name the spawner or add the mob to its lore if players should see which one it is. Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/questions-and-answers/why-does-a-spawner-show-a-warning-in-its-tooltip --- # ❓ Why does my shop say it cannot open? ## Answer A shop checks its own currency before it opens, and says what is wrong instead of opening a menu where nothing can be clicked. | Message | Cause | | ----------------------------------------- | --------------------------------------------------------------------------------------- | | **cannot open: it is priced in ...** | The plugin behind the shop's currency is not installed, such as Vault for money. Install it and run /pshop reload, or pick another currency for the shop. | | **is priced in ..., which is not a currency this plugin knows** | The currency named in the shop file does not exist, often a typo or an ExcellentEconomy currency that was removed. | | **is turned off** | The shop is disabled. | | **You don't have permission to do that** | The shop has a permission and the player does not have it. | On start, the console also lists every currency whose plugin is missing, with the plugin to install. > **Info:** The default shop is priced in money, which needs Vault and an economy plugin such as EssentialsX. See [Do I need Vault?](do-i-need-vault.md) Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/questions-and-answers/why-does-my-shop-say-it-cannot-open --- # ❓ Why doesn't my shop's own command work? ## Answer Another plugin already owns that command. Phoenix Shop does not take a command away from another plugin, so the shop is left without a command of its own, and the console says so on start. Pick a command nobody else uses in the shop's settings, or open the shop with /pshop open \<shop>, which always works. A new or changed command is registered straight away from the editor, and on /pshop reload after editing the file. Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/questions-and-answers/why-doesnt-my-shop-command-work --- # ❓ Why does shift + right-click say I need a permission? ## Answer By default, shift + right-click on an item sells every matching item the player carries. That action needs `phoenixshop.sell.all`, which only operators have by default. Give it to your players with your permission plugin, or change what the click does under `click-mappings` in `config.yml`. See [Main Configuration](../../configurations/main-configuration.md#click-mappings). Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/questions-and-answers/why-does-shift-right-click-say-i-need-a-permission --- # ❓ Why is an item missing from my shop? ## Answer A category only shows the items a player can actually trade. An item is hidden when: * It is **disabled**. * Its **currency cannot be used**, because the plugin behind it is not installed. The editor warns about this on the item's currency option. This is the most common cause when an item or a category overrides the shop's currency. * Its **material does not exist** on your server version. A whole category is hidden when it is disabled. An item whose buy and sell prices are both `0` is still shown, but it can be neither bought nor sold. Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/questions-and-answers/why-is-an-item-missing-from-my-shop --- # ❓ Why is my item shown as dirt? ## Answer The item comes from another plugin, such as `itemsadder:ruby` or `nexo:silver`, and that plugin is not installed or does not know the item. The shop shows dirt in its place, and the item cannot be bought or sold until it loads. The console names the item the first time it happens: ``` Shop item "ruby" uses "itemsadder:ruby", which could not be loaded. It shows as dirt and cannot be bought or sold. ``` Install the plugin, or fix the item's id, and run /pshop reload. The prefix of each supported plugin is listed on [Shop Configuration File](../../configurations/shop-configuration-file.md#materials). Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/questions-and-answers/why-is-my-item-shown-as-dirt --- # ❓ Why won't the shop accept my item when selling? ## Answer The item you hold has to match the shop item under that item's **Selling Rule**. The default is **Exact**, where the name, lore, enchantments and custom data must all be the same. A renamed, enchanted or damaged copy is refused. When the shop item has [purchase items](../../main-features/items/purchase-items.md), selling matches against the first one, not against the item shown in the menu. | Rule | What has to match | | --------------------- | ------------------------------------------ | | **Exact** | Everything | | **Material And Name** | The material and the display name | | **Material** | Only the material | Loosen the rule only on items the shop does not sell, or a player can buy something cheap, change it and sell it back as something else. If the rule is not the cause, check that: * The item has a sell price. A price of `0` means it cannot be sold. * The item and its category are enabled. * The item's currency can be used, since an item whose currency plugin is missing cannot be sold. * For /sell and the sell menu, the shop is listed under `sell.shops-whitelisted` in `config.yml` and the player can open it. Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/questions-and-answers/why-wont-the-shop-accept-my-item-when-selling --- # 📒 Version Support ## Version Support The plugin supports Spigot, any Spigot forks, Paper and any Paper forks. It should also work on any custom modded servers. > **Warning:** Folia is supported, but the support is still **experimental**. Test it on a staging server before putting it in front of your players, and report anything you run into. <table><thead><tr><th>Minecraft Version</th><th data-type="checkbox"></th></tr></thead><tbody><tr><td>26.x</td><td>true</td></tr><tr><td>1.21.x</td><td>true</td></tr><tr><td>1.20.4 - 1.20.6</td><td>true</td></tr><tr><td>1.20.3 and older</td><td>false</td></tr></tbody></table> Bedrock players joining through GeyserMC get Bedrock forms instead of chest menus when Floodgate or Geyser is installed. Source: https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/version-support --- # 🏠 Homepage ## Introduction Phoenix Shop is a GUI shop plugin built around an in-game editor. Shops, categories, items, prices and menus are all set up without touching a file, and every shop gets its own command. Players buy and sell through menus, the `/sell` command, chest shops they build themselves or sign shops placed by the staff. Items can be priced in money, points, experience levels, another item or any PlaceholderAPI value, and shops from other plugins can be imported in a few clicks. ## Documentation This doc page includes every feature provided by the plugin, both in the Lite and Premium versions. Be sure to take an in-depth look, and if you have any questions or suggestions, feel free to contact our team. - Every feature exclusive to the Premium version is marked with a ⭐ - Every feature added via an add-on is marked with a 💎 ## Premium Version In the following table, you can see the additional perks available with the premium version of Phoenix Shop. ### Purchase Phoenix Shop from our [Website](https://www.phoenixplugins.com) <table data-full-width="false"><thead><tr><th>Lite Version</th><th>Premium Extra Perks</th></tr></thead> <tbody><tr><td>Shops Limit 3</td><td>Unlimited Shops</td></tr> <tr><td>Currencies: Vault, PlayerPoints, VotingPlugin, ExcellentEconomy, PhoenixCurrencies, Levels</td><td>Item and Placeholder currencies</td></tr> <tr><td>One currency per shop</td><td>Currency per category and per item</td></tr> <tr><td>No Stock</td><td>Limited Stock, Player Limits and Restocking</td></tr> <tr><td>No Requirements</td><td>Requirements with Deny Actions</td></tr> <tr><td>No Category Actions</td><td>Open and Close Actions per Category</td></tr> <tr><td>Menu Actions: Action Bar, Close Inventory, Sound, Title, Delay</td><td>Command, Gamemode, Message, Particle</td></tr> <tr><td>Player Chest Shops, 25 per Player</td><td>Unlimited Player Chest Shops</td></tr> <tr><td>Admin Chest Shops, 25 per Server</td><td>Unlimited Admin Chest Shops</td></tr> <tr><td>Admin Sign Shops, 20 per Server</td><td>Unlimited Admin Sign Shops</td></tr> <tr><td>Purchase History</td><td>History Filters and CSV Export</td></tr> <tr><td>No Undo</td><td>Undo the Last Transaction</td></tr> <tr><td>No Search</td><td>Search Across Every Shop</td></tr> <tr><td>Price Generator</td><td>Price Audit</td></tr> <tr><td>No Discord Webhooks</td><td>Discord Webhooks</td></tr> <tr><td>Migrations Bring Up to 3 Picked Shops</td><td>Migrate Every Shop</td></tr> <tr><td>SQLite Database Support</td><td>MySQL and MariaDB Database Support</td></tr> <tr><td>No Add-ons</td><td>Free Add-ons and the Paid Ones Your License Owns</td></tr> <tr><td>Community Based Support</td><td>Specialized Support</td></tr> <tr><td>Response Time ( NO ETA )</td><td>Response Time ( 1-48 Hours )</td></tr> <tr><td>Hot Fixes ( NO ETA )</td><td>Bug Fixes ( 1-7 Days )</td></tr> <tr><td>Doesn't Include a Discord Role</td><td>Discord Role</td></tr></tbody></table> The premium version includes all the features of the Lite version, along with additional premium features. The full breakdown is on [Licensing](plugin-information/licensing.md). ## Bug Reports Before reporting an issue to our team, make sure you have tested the latest available build. If you are experiencing an issue on an older version, it will likely not be checked by our team. Source: https://www.phoenixplugins.com/docs/phoenix-shop === # Phoenix Plugins documentation Docs: https://www.phoenixplugins.com/docs/phoenix-plugins --- # 🩺 Doctor & Dashboard > **Info:** This page covers Phoenix Crates, Phoenix Duels, Phoenix Lobby and Phoenix Shop. Both features are admin commands. ## Doctor The doctor checks the plugin and prints one screen. Each line is marked OK, WARN or FAIL with a short fix underneath. Phoenix Lobby and Phoenix Shop write PASS instead of OK. WARN is something worth fixing, FAIL is something that is broken. | Command | Permission | | --- | --- | | /crates doctor | `phoenixcrates.command.doctor` | | /pduels doctor | `phoenixduels.admin` | | /plobby doctor | `phoenixlobby.admin` | | /pshop doctor | `phoenixshop.admin` | ### What It Checks Every plugin checks these: | Line | What it checks | | --- | --- | | License | Valid, running on the saved license while our servers can't be reached and for how long, or [not loaded](licensing.md#when-validation-fails) and why. A free jar has no license to check. | | Server | The server software and version, Folia, Java and the players online. | | Database | The database type, and how long it takes to answer. A slow answer is a WARN, no answer a FAIL. | | Add-ons | The loaded add-ons, and the ones that did not start. | Each plugin adds checks of its own: | Plugin | Extra checks | | --- | --- | | Phoenix Crates | Version, broken rewards, crates placed in worlds that are not loaded or of types that no longer exist, add-ons older than the ones that ship with the plugin, hooks, keys waiting to be delivered. See [Health Check](../phoenix-crates/plugin-information/backups-and-health-check.md#health-check). | | Phoenix Duels | Version, Bedrock support, arenas and maps, modes without arenas, kits, queues, hooks and WorldEdit. | | Phoenix Lobby | Modules, the proxy link, the servers your menus point to, the lobby spawn, hooks and broken config files. | | Phoenix Shop | Bedrock support, currencies, broken config files, shop items with a bad material or price, chest shops in missing worlds or without a container, the auction house. | ### Sending the Report to Support Crates and Duels also save the report as a text file in the plugin folder with `doctor file`, ready to attach to a support ticket: | Command | | --- | | /crates doctor file | | /pduels doctor file | Phoenix Lobby and Phoenix Shop have no file option. Copy the lines from the console instead. The Crates report never contains your license key, database password or address. ## Server Dashboard The web dashboard shows what happens on your server on phoenixplugins.com: activity, counts and the current setup of the plugin. It is on by default and talks to `api.phoenixplugins.com`, so the server needs outbound HTTPS access. A server is not tied to your account until you link it. ### Linking a Server Run the link command. The plugin prints a link and a code that expire after a few minutes. In chat the link is clickable. Open it while logged in to your account to connect the server. | Command | Permission | | --- | --- | | /crates dashboard link | `phoenixcrates.command.dashboard` | | /pduels dashboard link | `phoenixduels.admin` | | /plobby dashboard link | `phoenixlobby.admin` | Without `link`, the command shows the connection status: whether the server is registered with the dashboard, when data was last sent, how many events are waiting to be sent and the last error. If the dashboard is switched off, the command says so. ### What It Sends Every plugin sends the same server details about once a minute: * The plugin, its edition and version, and your license key if the jar has one. * The server software, server version and Minecraft version. * The players online and the maximum. * The names of the installed add-ons. On top of that, each plugin sends its own activity. Player names and UUIDs are part of it, which the console also says when the dashboard starts. | Plugin | Activity | Overview of the setup | | --- | --- | --- | | Phoenix Crates | Crates opened, keys given, rewards won, rare rewards that are broadcast. | Every crate with its rewards, weights and linked keys, and every key. | | Phoenix Duels | Matches that ended with the players, results, kills, deaths and elo changes, deaths in FFA, players joining a queue. | Modes, maps and the queues. | | Phoenix Lobby | Players joining and leaving, server transfers, queue requests, menus opened. | The servers on your network with their players, when the proxy is linked. | Events that cannot be sent are kept on disk and sent later, for up to 30 days. > **Warning:** `web-dashboard.enabled` in config.yml turns the dashboard off for that plugin. Source: https://www.phoenixplugins.com/docs/phoenix-plugins/doctor-and-dashboard --- # 🪪 Licensing > **Info:** This page covers Phoenix Crates, Phoenix Duels, Phoenix Lobby and Phoenix Shop. Only Premium jars are licensed. A Lite jar has no license. Lite Crates, Duels and Shop still send server statistics and can be linked to your account for a small bonus; see each plugin's Licensing page. ## Which Jars Are Licensed | Plugin | Licensed | Not licensed | What Lite limits | | --- | --- | --- | --- | | Phoenix Crates | Premium | Lite | [Lite vs Premium](https://www.phoenixplugins.com/compare/phoenix-crates) | | Phoenix Duels | Premium | Lite | [Lite vs Premium](https://www.phoenixplugins.com/compare/phoenix-duels) | | Phoenix Shop | Premium | Lite | [Lite and Premium](https://www.phoenixplugins.com/docs/phoenix-shop/plugin-information/licensing#what-the-lite-version-limits) | | Phoenix Lobby | Every lobby server | The same jar on BungeeCord or Velocity | No Lite version | ## Your License Key Every jar downloaded from our website is stamped with the license of the account that downloaded it, so in almost every case there is nothing to fill in. The key lives in the plugin's config.yml: ```yaml product-license: 'your-license-key' ``` Each plugin has its own key, so a Phoenix Crates key does not work for Phoenix Duels. To set one by hand, copy it from [My Licenses](https://portal.myphoenixstore.com/licenses), paste it exactly as it appears and restart the server. If we issue you a new key, the old one stops working and you get an email with the new one. Paste it on every server that uses the license, or download the jar again, which already carries it. ## Sessions Every running server that validates counts as one session. A license allows 5 sessions at once by default, enough for a main server, the servers behind its proxy and a test server. A proxy running Phoenix Lobby does not count, since it never validates. A license covers one server or one network. Running it on a second, separate network needs its own license. A clean shutdown frees the session straight away. A server that crashes and is started again on the same machine takes its own session back. A crashed server that is never started again holds its slot for up to 4 hours. If you need more sessions at once, contact us on [Discord](https://www.phoenixplugins.com/media/discord). ## Moving to Another Machine Stop the old server first so its session is freed, copy the plugin folder across and start the new one. The key stays the same. If the old machine crashed and cannot be started again, its session clears by itself within 4 hours. ## Renewal A license does not expire, so there is nothing to renew or pay again. While the server runs, the plugin renews its session with our servers in the background, and nothing needs restarting for it. ## What Happens on Startup On every start the plugin prints `Validating license...` and contacts our servers. Once the check passes you will see: ``` Great news! Your license is valid and active. Plugin loaded successfully! ``` > **Warning:** The server needs outbound HTTPS access to `api.phoenixplugins.com`. A permanently offline machine cannot run a Premium jar. ## When Validation Fails A failed validation never shuts the server down. The jar stays enabled but the plugin does not load. Fix the cause and restart. A license that is disabled while servers run it, including one whose purchase was refunded or disputed, stops the plugin on those servers at their next renewal. No restart is needed for that. | Plugin | While the license is invalid | | --- | --- | | Phoenix Crates | Every PhoenixCrates command is blocked, and players who run one are told why. | | Phoenix Duels | No arenas, modes or queues load. Every PhoenixDuels command is blocked, and players who run one are told why. | | Phoenix Lobby | No modules, NPCs, holograms or hotbar items load. Block breaking, placing and damage are cancelled so the lobby cannot be griefed, and the lobby commands are blocked. | | Phoenix Shop | No shop loads or opens. | ### The License Is Refused Our servers reached the license and turned it down, and the console prints the reason: | Reason | Cause and fix | | --- | --- | | Unknown key, or a key for another product | The key has a typo, a stray space or a newline, or it belongs to another plugin of ours. | | "Maximum concurrent sessions" | The license is already running on as many servers as it allows. See [Sessions](#sessions). | | "This license is disabled" | Contact us on [Discord](https://www.phoenixplugins.com/media/discord). | A server that hits the session limit or a disabled license while it runs unloads the plugin. ### "HttpResponseCode: 429" Too many validation requests arrived from your license in a short window. This is not a problem with your key. A server restarting in a loop, or a whole network booting at the same moment, is the usual cause. Stop the server, leave it down for a few minutes, then start it once. The limit clears on its own. A plugin that cannot validate retries every 5 minutes, so a rate limited server left running keeps the limit up. ### Other "HttpResponseCode" numbers | Code | What it usually means | | --- | --- | | **400** | The key is empty. Fill it in or download the jar again. | | **404** | A very old build. Update the plugin. | | **5xx** | Our side is having a problem. Try again later. | ### "connect timed out" or "UnknownHostException" The server never reached `api.phoenixplugins.com`. Check that outbound HTTPS is allowed. Some budget hosts block outbound connections by default and open them on a support ticket. ### "Authentication expiration time already expired. Is your clock with right time?" The machine's clock is wrong. Sync it with NTP and restart. ### "Signature is invalid." The saved validation file in plugins/PhoenixPlugins is corrupt or was edited. Delete the `*_auth.json` file of that plugin and restart with a working connection. ## Grace Period The grace period covers temporary connection problems for up to 2 days. If the plugin validated in the last 2 days and our servers cannot be reached now, it keeps working and tells you how long is left: ``` Oh no! Apparently there was an error contacting our server. But don't worry, the grace period has been activated. Grace period will expire in 23h 41m, so contact us before that happens! ``` Fix the connection before the grace period runs out. ## Paid Add-ons Phoenix Crates, Phoenix Duels and Phoenix Shop check each paid add-on against your license on startup and on every reload. One you do not own does not load, and the console names it and says why. The rest of the plugin keeps running. If our servers cannot confirm it, the add-on is skipped until the next restart or reload. Free and third-party add-ons are never checked. A Lite jar loads no add-ons at all. | Plugin | Lists installed add-ons | | --- | --- | | Phoenix Crates | /crates addons | | Phoenix Duels | /pduels addons | | Phoenix Shop | /pshop addons | ## Version Notices Every Phoenix plugin, Lite included, checks phoenixplugins.com for a newer build on startup and every 6 hours. The console reports one when it is out, and admins are told on join with a link to the update page. The first time admins join after an update, they are told what version they are on and can click to open the changelog. `notify-if-new-version` in config.yml turns all of this off. The changelog command opens a menu with every released build and its changes. Clicking a build sends the update link. | Plugin | Join notice permission | Changelog | | --- | --- | --- | | Phoenix Crates | `phoenixcrates.admin` | /crates changelog | | Phoenix Duels | `phoenixduels.admin` | /pduels changelog | | Phoenix Lobby | `phoenixlobby.admin` | /plobby changelog | | Phoenix Shop | `phoenixshop.admin` | /pshop changelog | Source: https://www.phoenixplugins.com/docs/phoenix-plugins/licensing --- # 🏠 Homepage These pages cover what Phoenix Crates, Phoenix Duels, Phoenix Lobby and Phoenix Shop have in common. Each plugin's own docs link here and keep only what is specific to it. | Page | Covers | | --- | --- | | [Licensing](licensing.md) | License keys, sessions, startup validation, failures, paid add-ons and version notices | Source: https://www.phoenixplugins.com/docs/phoenix-plugins