TextPlaceholderAPI icon indicating copy to clipboard operation
TextPlaceholderAPI copied to clipboard

Conditional placeholders

Open jschenke488 opened this issue 4 years ago • 0 comments

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.

jschenke488 avatar Dec 23 '21 00:12 jschenke488