Skip to main content

Click actions

EasyMenu 6 uses action to describe what happens after a player clicks an item.

Legacy command values still work, but action is recommended for new menus.

Player command

action:
type: player-command
command: "spawn"

type: command behaves the same way.

The leading / is optional.

Open another menu

action:
type: open-menu
menu: shop

Use the menu ID rather than a path such as sub/shop.yml.

Show a message

action:
type: message
message: "&aOpening the shop."

Close the menu

action:
type: close-menu

Run multiple actions

actions runs several actions from top to bottom.

actions:
- type: message
message: "&aMoving to the lobby."
- type: player-command
command: "spawn"

Do not use action and actions on the same item.

Request chat input

action:
type: input
prompt: "Enter an amount."
input-type: integer
min: 1
max: 1000000
timeout-seconds: 60
command: "money pay admin {input}"

The player's answer replaces {input}.

SettingDescription
promptMessage asking the player for a value
input-typestring, integer, or decimal
minMinimum numeric value
maxMaximum numeric value
timeout-secondsNumber of seconds to wait. Must be 1 or greater
commandPlayer command run after input. Must contain {input}

The player can enter cancel to stop.

The old input request ends when it times out, the player leaves, or a new request begins.

Conflicting settings

CombinationResult
command and actionUse action and show a warning
action and actionsStop reload with a configuration error
location and slotUse slot and show a warning

A failed reload does not remove the last working menu.