# 🤖 Commands & Permissions

## Command List

Below, you will find information on various commands available, their functionalities, and how to use them effectively.&#x20;

**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