mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 09:02:09 -07:00
Make matchPlayer return only the exact-matched player, if there is one.
This commit is contained in:
@@ -90,6 +90,7 @@ public final class CraftServer implements Server {
|
||||
|
||||
if (partialName.equalsIgnoreCase(iterPlayerName)) {
|
||||
// Exact match
|
||||
matchedPlayers.clear();
|
||||
matchedPlayers.add(iterPlayer);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user