Skip to content

Actions

Adding and using Click-Actions in your Holograms

DecentHolograms allows you to add click-actions to individual hologram pages that get executed when the player either left or right-clicks the hologram.

Format

Actions themself are in the following formats:

<action_type>
<action_type>:<args>

Note that you don't have to include the <> brackets!

Click Types

These click types are used in the addaction page command to add the action for a specific click type.

  • LEFT
  • RIGHT
  • SHIFT_LEFT
  • SHIFT_RIGHT

Action Types

MESSAGE:<message>

Sends <message> to the player who clicked the hologram.

COMMAND:<command>

Executes <command> as the player who clicked the hologram. If <command> doesn't start with / will it be send as a message from the player.

CONSOLE:<command>

Executes <command> as the console.

Important

This action will not work with commands provided by a BungeeCord/Velocity proxy or a plugin running on one.

CONNECT:<server>

Sends the player who clicked to <server>. Only works on a BungeeCord/Velocity network.

TELEPORT:<world>:<x>:<y>:<z> / TELEPORT:<x>:<y>:<z>

Teleports the player to the provided world and coordinates. If no world is provided will the world the player is in be used.

SOUND:<sound>

Plays a sound for the player who clicked.

What sounds you can use depends on the server version. A list of known sound names for each version can be found here: https://docs.andre601.ch/Spigot-Sounds

PERMISSION:<permission>

Checks whether the player who clicked has the specified permission and if not, all the actions after this one will not be executed.

NEXT_PAGE:<hologram> / NEXT_PAGE

Switches to the next page of the specified hologram. If no hologram is provided will the one the player clicked on be used.

PREV_PAGE:<hologram> / PREV_PAGE

Switches to the previous page of the specified hologram. If no hologram is provided will the one the player clicked on be used.

PAGE:<hologram>:<page> / PAGE:<page>

Switches to the specified page of the specified hologram. If no hologram is provided will the one the player clicked on be used.