#{args} in %parseother%

1 messages · Page 1 of 1 (latest)

autumn comet
#

Hello. I'm trying to create a /bio menu that allows users to set aspects of their personal bio, and a separate menu to view the bio selections of other users.

I have an arg {name} and parse_placeholders_after_arguments set to true within my menu. I'm trying to parse this placeholder %parseother_{{name}}_{luckperms_last_group_on_tracks_bio_pronouns}%, but it turns up blank within the actual menu (even though {name} when used alone does display the provided arg text).

Thinking that maybe this was an issue with the luckperms placeholder, I tried using DM's meta placeholder instead:
%parseother_{{name}}_{deluxemenus_meta_newbio_BOOLEAN_?}%
%parseother_{Gallaxx}_{deluxemenus_meta_newbio_BOOLEAN_?}%
Results in the screenshot attached. If I manually input a username into the parseother placeholder it works, but not if I use the {name} argument.

Both of these placeholders parse if I test them with /papi parse me <parseother placeholder>, but not within the menu. Is there something I can do to fix this?

autumn comet
#
  'pronouns':
     material: hdb-52464
     slot: 11
     display_name: '&#f24645&lPronouns'
     lore:
     - '&#ec5b5aDescription:'
     - ' &#ec5b5a&l• &#ffa0a0Viewing {name}''s pronouns.'
     - ''
     - '&#ec5b5aDescription:'
     - ' &#ec5b5a&l• &#ffa0a0Selected: &#EF8F64%utils_parseother:[{name}]_luckperms_last_group_on_tracks_bio_pronouns%'
     click_commands:
     - '[sound] ENTITY_CAT_BEG_FOR_FOOD 1.9 10'
#

Here's another example, this time with the item yml. The placeholder parses just fine when I run papi parse me, but stops working in the menu.

#
args:
- name
args_usage_message: "§x§e§1§3§d§0§7§l§f§l≫ §x§f§0§6§f§2§eWhoops! You must provide a player name to search."
parse_placeholders_after_arguments: true
#

same result using %utils_parseplaceholder:[{name}]_luckperms_last_group_on_tracks_bio_pronouns%

uneven canyon
#

is the user online when you're testing this?

#

both deluxemenus meta and luckperms wouldn't work when offline just fyi

uneven canyon
# autumn comet

this version is BEFORE the parse_placeholders_after_arguments option was added it seems

autumn comet
#

Ah, I was afraid of that. Alright, I'll update the plugin shortly and test again, thank you. 🙂

uneven canyon
#

I am a little curious as to where you saw it as an option though, if it wasn't that change log lol

autumn comet
#

Honestly, I thought I was updated. It's working perfectly now! Thank you. 😄