File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,6 +30,21 @@ menu-settings:
3030* `action`: the [Action]({{% ref "action/overview" %}}) to be called when the argument length is not enough
3131* `invalid-action`: the [Action]({{% ref "action/overview" %}}) to be called when the argument is invalid
3232
33+ # # Targeted Variables
34+
35+ You can fetch the [Variable]({{% ref "misc/variable" %}}) for the target player argument by using this format :
36+ ` ` `
37+ {arg_<processor_name>_<variable_name>}
38+ ` ` `
39+ For PlaceholderAPI's placeholders, use this format :
40+ ` ` `
41+ {arg_<processor_name>_papi_<placeholder_without_brackets>}
42+ ` ` `
43+ For example (given that your argument processor name is `target`) :
44+ - ` {level}` will be `{arg_target_level}`
45+ - ` {uuid}` will be `{arg_target_uuid}`
46+ - ` %player_gamemode%` will be `{arg_target_papi_player_gamemode}`
47+
3348# # Example
3449
3550` ` ` yaml
@@ -46,6 +61,14 @@ menu-settings:
4661button:
4762 slot: 0
4863 id: ender_pearl
49- name: "&bTeleport"
64+ name: "&bTeleport to {arg_target}"
65+ lore:
66+ - ""
67+ - "&7&lTarget Info"
68+ - "&7- &fName: &e{arg_target}"
69+ - "&7- &fUUID: &e{arg_target_uuid}"
70+ - "&7- &fLocation: &e{arg_target_world} {arg_target_x} {arg_target_y} {arg_target_z}"
71+ - "&7- &fTarget PlaceholderAPI: &e{arg_target_papi_player_gamemode}"
72+ - ""
5073 command: "console: tp {arg_player} {arg_target}"
5174` ` `
You can’t perform that action at this time.
0 commit comments