Command Tags

Tags that can be used in the panel commands section.

Command Tags

Example Command: console= gamemode creative %cp-player-name% (the space in between the console= and the command is required)

Tag

Description

open=

Open a panel. open= <panel name> [placeholder:value] {location}

For example open= example_panel [cname:Rocky]

using %cp-cname% in the panel will activate that placeholder.

If you want another panel to open in the players inventory area or the hotbar area use the location settings, example:

open= example_panel {Middle}

See the Multi Panels page for more info.

This is useful if you want to handle panel variables, see the Panel Variables page for more info. This cannot be used to open the currently opened panel.

close=

Works similarly to the cpc tag but you can choose which location to close.

Top = Chest location

Middle = Player location

Bottom = Hotbar location

For example doing: close= Middle will close the middle panel.

cpc

Using this in the commands section will close the panel. If this command is being used, use commandpanelclose instead.

refresh

Force refreshes the panel. Ensure the panel does not close at the same time when the item is clicked. If the players normal inventory is open, it will also refresh the players Panel Hotbar items.

server=

Use to teleport the player to a specific server with BungeeCord. server= [name] This will make sure the player has permission to join the server.

force-server=

Use to teleport the player to a specific server with BungeeCord. server= [name] This will not check the player's permissions.

delay=

Delay a specific command. delay= <ticks> <command>

eg, delay= 20 msg= This message took 1 second to appear.

sudo=

You can execute player only commands directly as the player using sudo= [command].

console=

Executes the command in the console.

event=

Trigger the PanelCommandEvent with a message attached. For example, event= <message>.

broadcast=

Allows the user to broadcast a message to all users in the server. broadcast= <message>

broadcast-perm=

Allows the user to broadcast a message to all users with the specified permission. broadcast-perm= <perm> <message>

sequence=

This will allow for sequencing if you want to use the same commands for different items. sequence= [YAML location]

nopapi=

Will stop PlaceholderAPI placeholders from being executed.

title=

Used to display a title onto the Players screen. To separate the title from the subtitle, if you want a subtitle, simply put the following in between the title and subtitle contents: /n/. title= [player] [fadeIn] [stay] [fadeOut] [title contents]

Click Tags

These types of Tags must come in front of regular Command Tags! There is a space required between these tags, other tags and commands. These tags are only used for regular commands in items.

commands:
- 'msg= &cThis message will appear from any type of click'
- 'right= msg= Right clicked item!'

Tag

Description

right=

The player must right-click to execute the command

rightshift=

The player must right-shift click to execute the command

left=

The player must left-click to execute the command

leftshift=

The player must left-shift click to execute the command

middle=

The player must middle click to execute the command

Last updated