hello, can anyone help me with this?
https://paste.helpch.at/dijejevono.csharp
i try to parse MythicMobs placeholder https://git.lumine.io/mythiccraft/MythicMobs/-/wikis/Skills/Placeholders
but an error showed up after i typed /papi parse me %mythic_var_<skill.var.aura-name>%
is there something wrong with the way i use placeholders?
#MythicMobs PlaceholderAPI Integration
1 messages · Page 1 of 1 (latest)
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
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
good news
i have found a way to fix it, i just need to remove _ from the someVar
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
then what should i do to fix it?
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