Closed manashard closed 1 year ago
Is it possible to add some sort custom selector like [player] or {player}? Using @p(proximity) is not suitable in some cases.
[player] selector will be replaced for the player name who clicked An example usage:
[player]
"action": { "actions": [ { "command": "/give [player] diamond", "fromServer": true, "type": "Command" }, { "type": "CloseGui" } ], "type": "Require" },
Does the self selector @s work for this?
@s
Sadly not work, in some cases selectors are doable but in general passing the name of the clicker is the best option
Version 3.4.0 adds support for PlaceHolder Api. You should be able to use the player name with %player:name%
Thanks
Is it possible to add some sort custom selector like [player] or {player}? Using @p(proximity) is not suitable in some cases.
[player]
selector will be replaced for the player name who clicked An example usage: