#Executable items/placeholderAPI, nested placeholders

1 messages · Page 1 of 1 (latest)

crimson latch
#

Hi,

I want to use a custom psuedocommand ( /denypickup [ITEM] ), and then add that input (%arg1%) to a list (%score_variables_blockList%).
I am trying to make the command deny adding the same input to the list if it already exists there.
The only way I can think of doing that is by checking the boolean %score_variables-contains_blockList_%arg1%% to see if it's true, then denying the command if it is true.

But this isn't working, presumably because it's reading the denoting pairs from left to right, and seeing %score_variables-contains_blockList_%arg1%% as two seperate placeholders, one called %score_variables-contains_blockList_% and one with no name.