mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2026-02-05 11:57:14 +01:00
Add convenience booleanValue method to PlaceholderAPI class
This commit is contained in:
@@ -323,4 +323,8 @@ public final class PlaceholderAPI {
|
||||
public static boolean containsBracketPlaceholders(String text) {
|
||||
return text != null && BRACKET_PLACEHOLDER_PATTERN.matcher(text).find();
|
||||
}
|
||||
|
||||
public static String booleanValue(final boolean value) {
|
||||
return value ? PlaceholderAPIPlugin.instance().configManager().config().booleanValue().trueValue() : PlaceholderAPIPlugin.instance().configManager().config().booleanValue().falseValue();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user