Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add player in faction placeholder for PlaceholderAPI? #1456

Closed
catches opened this issue Mar 15, 2023 · 3 comments
Closed

Add player in faction placeholder for PlaceholderAPI? #1456

catches opened this issue Mar 15, 2023 · 3 comments

Comments

@catches
Copy link

catches commented Mar 15, 2023

Just checks if a player is in a faction or not.

@catches catches changed the title Add player in faction placeholder? Add player in faction placeholder for PlaceholderAPI? Mar 15, 2023
@mbax
Copy link
Collaborator

mbax commented Mar 17, 2023

To confirm, do you mean a placeholder that returns something like true or false based on being in a faction?

There already are a few placeholders that do things distinct for not being in a faction, such as (I'm not including the %factions_...% bit):

player_role - It's empty if not in a faction
player_role_name - It's the lang.yml PLACEHOLDER->ROLE->NAME entry if not in a faction
player_factionless - It's empty if in a faction, and whatever your lang.yml calls factionless players if not in one
faction_only_space - It's literally a single space if in a faction and empty if not.

@mbax mbax closed this as completed Mar 29, 2023
@catches
Copy link
Author

catches commented Jul 19, 2023

Yo @mbax sorry I didn't get to this, but it was more so a placeholder that returns true or false yeah, since I'm using plugins that have conditions where I'm trying to detect if a player is in a faction, and I don't know how to do that with just empty spaces.

@mbax
Copy link
Collaborator

mbax commented Jul 19, 2023

Do those plugins truly only take 'true' or 'false'? That's very odd to use placeholders that way and not allow for detecting if(value is empty) or similar for using that empty/notempty string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants