# 🤖 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