Skip to content

Commit

Permalink
Fixed location placeholder is not detected correctly (#1240)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Jul 7, 2022
1 parent 44c0b4e commit a9bc284
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -263,10 +263,9 @@ public String handlePluginPlaceholder(@Nullable OfflinePlayer offlinePlayer, Str
String subPlaceholder = matcher.group(1).toLowerCase(Locale.ENGLISH);
Island island = superiorPlayer == null ? null : subPlaceholder.startsWith("location_") ?
plugin.getGrid().getIslandAt(superiorPlayer.getLocation()) : superiorPlayer.getIsland();

subPlaceholder = subPlaceholder.replace("location_", "");

placeholderResult = parsePlaceholdersForIsland(island, superiorPlayer, placeholder, subPlaceholder);
placeholderResult = parsePlaceholdersForIsland(island, superiorPlayer,
placeholder.replace("location_", ""),
subPlaceholder.replace("location_", ""));
}
}

Expand Down

0 comments on commit a9bc284

Please sign in to comment.