#Playerlist menu with commands.

1 messages · Page 1 of 1 (latest)

twin sequoia
#

Hello im wondering is it possible to make a menu with online players.
I want so if i click on number 1 player in the menu i get something like.
Add player to plot, remove player from plot, inspect player.

So everytime i click on a specific player in the playerlist menu i get actions to that specific player ^^
Is that even possible? 🙂

normal sky
#

its technically "possible", but gl with that

twin sequoia
normal sky
#

that placeholder returns either the player's name at the position (starts at 0) or Offline (or an empty string, I forgot if I changed the default config or not but it can be changed either way)

#

you can use it in the item's display_name, lore, click_commands, view_requirement and click_requirement

#

view_requirement to show the item if the placeholder returns an actual player name and not Offline or nothing, and in the click_commands to run commands with the player name