#Open a GUI with selectors through command blocks

1 messages · Page 1 of 1 (latest)

south vigil
#

Is it possible to open a GUI for a selector such as @s with commands? I tried /dm open <menu-name> @s and it said 'Player: @s is not online!' lol

dense steppe
#

put your name

south vigil
#

yeah but i need it to do it for other people too

dense steppe
#

open in menu, right ?

south vigil
#

yeah

dense steppe
#

you have placeholderAPI plugin yet ?

south vigil
#

yes

dense steppe
#

so install player from ecloud

south vigil
#

done

dense steppe
#

and you this placeholder

#

%player_name%

#

this thing will return player name

#

work for everyone

#

/dm open <menu-name> %player_name%

south vigil
#

it still gives me the player: %player_name% is not online error

dense steppe
#

just work on menu

#

you can try action

#

[openguimenu] <menu-name>

#
click_commands:
  - '[openguimenu] <menu-name>'
#

or use /dm open <menu-name> %player_name% like this

#
click_commands:
  - '[console] dm open <menu-name> %player_name%'
south vigil
#

oh im dumb is there a way of doing it not from a different gui?

dense steppe
#

different gui?

south vigil
#

can I execute a command from a command block in a way for anyone to be able open a menu without already being in one?

dense steppe
#

execute everyone open menu in one command ?

south vigil
#

I have a command block that can execute a command when someone clicks on a villager but i don't know how to make the custom menu open for that player

dense steppe
#

like open main menu to open menu1, menu2, menu3 ?

south vigil
#

kind of but the problem is opening the main menu

#

im really bad at explaining

dense steppe
#

and im not good at english as well

#

😩

dense steppe
south vigil
#

when I right click on the villager, it runs an execute command to test if i right clicked on the villager, and if I did I want it to open the menu. currently right clicking on the villager will do nothing. if there's another way of doing this without command blocks, that could probably work as well, but I need some way of going from right clicking on a villager to being in a custom menu

dense steppe
#

reload plugin after download player from ecloud ?

south vigil
#

i tried

#

the %player_name% works in the yml files but not in command blocks for me