# Commands

## Commands

The following list shows all available commands for the plugin.

**Command alias:** `/phoenixholograms`, `/phoenixh`, `/pholo`, `/phologram`, `/pholograms`, `/hologram`, `/holograms`, `/holo`, `/holos`

<> - Required \
\[] - Optional

**Hologram Commands**

| Command | Description |
| ------- | ----------- |
| `/pholo create <id>` | Creates a hologram where you stand. |
| `/pholo delete <hologram>` | Deletes a hologram and its file. |
| `/pholo list` | Lists every hologram with its location, pages and lines. |
| `/pholo teleport <hologram>` | Teleports you to a hologram. |
| `/pholo tphere <hologram>` | Moves a hologram to where you stand. |
| `/pholo center <hologram>` | Moves a hologram to the middle of its block. |
| `/pholo moveto <hologram> <x> <y> <z> [world]` | Moves a hologram to coordinates, in your world unless one is given. Whole numbers for x and z put it in the middle of that block. `~` keeps a coordinate and `~<amount>` moves from where the hologram is, such as `/pholo moveto board ~ ~-0.2 ~`. On a hologram linked to an NPC, only `~` heights work: they change its [height above the NPC](../main-features/holograms/edit-hologram.md#npc-link). |
| `/pholo move <hologram> <up\|down> <amount>` | Moves a hologram up or down by an amount of blocks, such as `/pholo move board up 0.25`. On a hologram linked to an NPC, it changes its height above the NPC. |
| `/pholo rotate <hologram> <yaw> [pitch]` | Sets which way a hologram faces. Only shows on holograms that do not turn to face the player. |
| `/pholo info <hologram>` | Shows the location, pages, lines, group, visibility and any setup problem of a hologram. |
| `/pholo refresh <hologram>` | Spawns a hologram again for everyone who sees it. |
| `/pholo test <hologram> [left\|right\|shift-left\|shift-right]` | Runs the hologram's click actions on you, a right-click unless another click is given. Costs and rewards are real. |
| `/pholo debug visibility <hologram> [player]` | Tells you why a player, or you, cannot see a hologram. |
| `/pholo debug click <hologram> [player]` | Tells you why a player's clicks on a hologram do nothing: no actions, a missing permission or a running cooldown, or which clicks do something. |
| `/pholo clone <hologram> [id]` | Clones a hologram to where you stand. Without an id it gets the original's id with a number, `arena` becomes `arena1`. |
| `/pholo editor [hologram]` | Opens the in-game editor, or one hologram in it. |
| `/pholo problems` | Lists every hologram with a setup problem, such as an unloaded world, a missing image, a missing linked NPC or a leaderboard line without a leaderboard. Click one to edit it. |
| `/pholo near [radius]` | Lists the holograms around you, 32 blocks unless a radius up to 256 is given, with buttons to teleport to or edit each one. |
| `/pholo example <example>` | Places a ready-made example hologram in front of you. |
| `/pholo toggle` | Hides or shows every hologram for you only. Remembered across restarts. |
| `/pholo stats [reset]` | Shows the load, packets and update rates of the holograms, or resets them. |
| `/pholo reload` | Reloads config.yml, the translations, the animations and every hologram, and switches to the [storage type](../features/storage.md#storage) set in config.yml. |

**Edit Commands**

| Command | Description |
| ------- | ----------- |
| `/pholo edit` | Opens the editor of the hologram you look at within 32 blocks, or else the one nearest to you within 8 blocks. |
| `/pholo edit <hologram>` | Opens the editor of a hologram. |
| `/pholo edit <hologram> movehere` | Moves a hologram to where you stand. |
| `/pholo edit <hologram> rename <new-id>` | Changes the id of a hologram. Its NPC link and the pages players are on are kept. |
| `/pholo edit <hologram> link <npc>` | Links a hologram to a PhoenixNPCs NPC: it follows the NPC and replaces its name. See [NPC Link](../main-features/holograms/edit-hologram.md#npc-link). |
| `/pholo edit <hologram> unlink` | Removes a hologram's NPC link and leaves it where the NPC was. |
| `/pholo edit <hologram> setgroup <group>` | Puts a hologram in a group, or `none` to take it out. |

**Line Commands**

| Command | Description |
| ------- | ----------- |
| `/pholo edit <hologram>[:page] addline <text>` | Adds a text line at the bottom. |
| `/pholo edit <hologram>[:page] setline <line> <text>` | Replaces a line with text. |
| `/pholo edit <hologram>[:page] removeline <line>` | Removes a line. |
| `/pholo edit <hologram>[:page] additem <item>` | Adds an item line: a material, a hook id such as `nexo:ruby`, or `hand` for the item you hold. Turn on Show as Block in the editor to show it as a block. |
| `/pholo edit <hologram>[:page] addhead <head>` | Adds a [head line](../main-features/pages-and-lines/edit-line.md#head): a player name, `%player%` for each viewer's own head, or a base64 texture. |
| `/pholo edit <hologram>[:page] addimage <image> [width]` | Adds an [image line](../main-features/pages-and-lines/edit-line.md#image) from a file in the images folder or a URL. |
| `/pholo edit <hologram>[:page] addcommand <command>` | Adds a [command output line](../main-features/pages-and-lines/edit-line.md#command). Also needs `phoenixholograms.command-lines`. |

**Player Commands**

| Command | Description |
| ------- | ----------- |
| `/pholo page <hologram> <player> <page>` | Shows a page to a player: `next`, `previous`, `first`, `last` or a number. |
| `/pholo show <hologram> <player>` | Shows a hologram to a player. |
| `/pholo hide <hologram> <player>` | Hides a hologram from a player. |

**Other Commands**

| Command | Description |
| ------- | ----------- |
| `/pholo group <group> <enable\|disable\|show\|hide>` | Changes every hologram of a group at once. |
| `/pholo backup` | Makes a [backup](../features/backups.md) now. |
| `/pholo storage status` | Shows the storage type in use, the one config.yml asks for, and why the database could not be reached if the plugin fell back to the YAML files. |
| `/pholo storage migrate <from> <to> [confirm]` | Copies every hologram, player page state and leaderboard value from one [storage type](../features/storage.md#copying-between-storage-types) to another: `yaml`, `sqlite`, `mysql`, `mariadb` or `postgresql`. Copying into the storage the server uses right now needs `confirm` and reloads the holograms afterwards. |

## Hologram Ids

An id is 1 to 48 lowercase letters, numbers, `_` or `-`, and names the hologram's file. Group names follow the same rule.

## Pages in Line Commands

The line commands work on page 1 unless the hologram is followed by `:` and a page number, such as `/pholo edit lobby:2 addline &eSecond page`. `addline`, `additem`, `addhead`, `addimage` and `addcommand` may name the page after the last one, which creates it. Lines are numbered from the top, starting at 1.

## Show and Hide

`/pholo show` adds the player to a hologram's [Chosen Players](../main-features/visibility.md#viewers) list and shows it to them. `/pholo hide` takes them off the list and hides it from them whatever the visibility, until `/pholo show` is used again. Both are remembered across restarts.

Source: https://www.phoenixplugins.com/docs/phoenix-holograms/plugin-information/commands