Skip to content

Commit

Permalink
Updated player retreval by name to allow for non-casesensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
svenar-nl committed Dec 15, 2023
1 parent 99bc3b3 commit 3cb99cc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ public static PRPlayer getPlayer(String identifier) {
} catch (IllegalArgumentException e) {
}

for (PRPlayer player : registeredPlayersByName.values()) {
if (player.getName().equalsIgnoreCase(identifier)) {
return player;
}
}

return prPlayer;
}

Expand Down

0 comments on commit 3cb99cc

Please sign in to comment.