#MythicMobs PlaceholderAPI Integration

1 messages · Page 1 of 1 (latest)

humble cedar
foggy garnet
#

usually you don't include <> in these things

#

not saying that's the case here, but I would try it

#

because I see a ton of <> on the documentation

#

try:
%mythic_var_skill.var.aura-name%
%mythic_var_aura-name%

#

it looks like the <> might be required for internal usage, but maybe not papi usage

humble cedar
#

thanks for the respone

#

but I have tried it before posting here and wrote it in another plugin, but it just send me another error

humble cedar
#

good news
i have found a way to fix it, i just need to remove _ from the someVar

foggy garnet
#

The _ or the -?

#

Just so I can know for the future

humble cedar
#

the _ so the variable from MythicMobs shouldn't have _

#

lets say i have variable named test_aura_name
%mythic_var_someVar% the name of the var cant have _ so must name it to testauraname -> %mythic_var_testauraname%

#

and for the %mythic_var_aura-name% it doesn't work at all

#

i tried all of this variable, none of them work for me

"%mythic_var_skill.aura-name%"
"%mythic_var_caster.var.aura-name%"
"%mythic_var_caster.aura-name%"
"%mythic_var_var.aura-name%"
"%mythic_var_aura-name%"```
#

if i parse the placeholder, it will just send me an error again

#

and one more thing, the placeholder will still be visible even if i don't have the variable

#

when the player dont have the variable

#

and when player have the variable

foggy garnet
#

yikes

#

they have to work on their papi integration...

humble cedar
#

then what should i do to fix it?

foggy garnet
#

ask them to fix it

#

I suppose you could use changeoutput in the meantime

#

%changeoutput_contains_input:{mythic_var_testAuraName}_matcher:mythic_var__ifmatch:_else:{mythic_var_testAuraName}%

#

this will check if mythic_var_testAuraName returns something including mythic_var_ (which means there is no variable set), and if so, it will return an empty string, otherwise it will just return the variable