I am using ItsMyConfig to display two different strings dependent on whether the user is bedrock or java. As shown here:
custom-placeholder:
glyph-playerprefix:
value: 'b' # show this if viewer passed requirements
requirements:
isjava:
type: "string equals ignorecolor "
input: "%player_displayname%"
output: ".%player_displayname%"
deny: "j<glyph:player>" # if viewer did not pass requirements show this (if viewer is java)
So I want to display value: if the user passes requirements. I want to display deny: if the user does not pass requirements.
I need some input that can parse the user, see if they're bedrock or not and if so display value: if bedrock or deny: if java.
What placeholder(s) could I use? I need some way to parse it for the viewer only, as for example, I don't want playerprefix to show value: to the target (bedrock) and value: to the viewer (java) and vice versa.
I thought maybe using utils_parseother:[name]_placeholder. I thought maybe just checking if player's displayname has a dot or not, but that doesn't seem like it'll work either.
So, what I'm getting at is how can I do something like this? Is anyone familiar enough to know what placeholders I could try to do this. I could use floodgate_isbedrock to see if it returns false or true but I still don't know how to handle the viewer / target thing.
If anyone has ideas or suggestions on easier ways to do this that'd be great.