Skip to content

Commit

Permalink
Handle casing differences in position placeholder checking
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCodez committed Oct 29, 2024
1 parent 3c78db5 commit 9beaa4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public String getPlaceholderValue(OfflinePlayer p, String identifier, boolean ja
identifier = PlaceholderUtils.replaceJavascript(p, identifier);
}

if (!identifier.endsWith("Position")) {
if (!identifier.toLowerCase().endsWith("position")) {
for (NonPlayerPlaceHolder<VotingPluginUser> placeholder : nonPlayerPlaceholders) {
if (placeholder.matches(identifier)) {
String str = placeholder.placeholderRequest(identifier);
Expand Down

0 comments on commit 9beaa4e

Please sign in to comment.