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

Conditional placeholders #7

Open
jschenke488 opened this issue Dec 23, 2021 · 0 comments
Open

Conditional placeholders #7

jschenke488 opened this issue Dec 23, 2021 · 0 comments

Comments

@jschenke488
Copy link

An option for conditional placeholders. For example, with the pronouns mod you could have the placeholder displayed like this:

if %playerpronouns:pronouns% != "Unknown" then
  display " (%playerpronouns:pronouns%)"
else
  display ""
end

The way I suggest implementing this is in a config file, a server owner could specify these conditions and give the conditions an ID. This ID could then be used in a placeholder.

@Patbox Patbox added the enhancement New feature or request label Feb 19, 2022
@Patbox Patbox removed the enhancement New feature or request label Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants