> For the complete documentation index, see [llms.txt](https://pqdev.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pqdev.gitbook.io/docs/plugin-usage/commands-and-permissions.md).

# Commands And Permissions

#### /home Command

* **Usage**: `/home <slot> <player>`
* **Permissions**:
  * `bedhome.home` - Allows a player to open the home GUI and teleport to their homes.
  * `bedhome.home.other` - Allows a player to open the home GUI of another player.
* **Description**: Allows players to open the home GUI, making it easy to manage homes. When providing the `<slot>` argument, the player is teleported directly to the specified home.

#### /bedhome Command

* **Usage**: `/bedhome <argument>`
* **Available Arguments**:
  * `reload`: Reloads the plugin configuration.
  * `migrate`: Transfers data from SQLite database to MySQL.
  * `tp <player> <slot>`: Teleports to a specific home of the player.
  * `addhome <player> <slot>`: Adds a home to the specified slot for a player if it doesn't exist.
  * `addhomeloc <player> <slot>`: Adds a location to the specified home slot.
    * **How to Use**:
      * As an administrator, use the `/bedhome addhomeloc` command with the following arguments:
        * `<player>`: The name of the player for whom you want to add a home location.
        * `<slot>`: The slot number to which you want to add the home location.
      * Stand at the desired location where you want the home to be set.
      * Make sure you are targeting the bed (within 2 blocks) in the direction where the player's home should be.
      * Execute the command.
      * The location for the specified player's home slot will be automatically set based on your current location and orientation.
  * `delhome <player> <slot>`: Deletes the home in the specified slot for a player.
  * `delhomeloc <player> <slot>`: Removes the location from the specified home slot.
  * `setdisplayname <player> <slot> <name>`: Sets a new display name for the specified home slot. If `<name>` is empty, displayname is deleted.
* **Permission**: `bedhome.admin`
* **Description**: The `/bedhome` command is designed for administrators. It allows seamless management of player homes, including reloading configurations, transferring data, teleporting, adding/removing homes, customizing display names, and adding home locations.

### Conclusion

With these powerful commands and permissions, the BedHome plugin offers a versatile and user-friendly home management solution for both players and administrators. Whether you're a player looking to teleport between homes or an admin fine-tuning the plugin, BedHome has you covered.
