Skip to content

Commit

Permalink
Change to contains placeholders method
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Jan 18, 2024
1 parent dbc1e2a commit 6c2c19c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/net/citizensnpcs/api/util/Placeholders.java
Expand Up @@ -42,7 +42,13 @@ private static class PlaceholderProvider {
}
}

public static boolean containsPlayerPlaceholder(String text) {
public static boolean containsPlaceholders(String text) {
try {
if (PLACEHOLDERAPI_ENABLED && PlaceholderAPI.containsPlaceholders(text))
return true;
} catch (Exception e) {
e.printStackTrace();
}
return PLAYER_PLACEHOLDER_MATCHER.matcher(text).find();
}

Expand Down

0 comments on commit 6c2c19c

Please sign in to comment.