This update adds support for placeholders also in the onClick , to allow more flexibility .
Example: %player_name% will be replaced with the name of the player who is click-ing in the menu
Code (YAML):
test:
type: MODAL
title: Test gui
description: Long text to explain thigs out here, idk what else can be wrote, but you have a lot of space
buttons:
bottone_1:
text: Maybe
yes?
onClick: "command tell %player_name% hello" bottone_2:
text: Maybe
no?
onClick: "command tell %player_name% hi"