mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Make matchPlayer return only the exact-matched player, if there is one.
This commit is contained in:
1 parent
2e0413558f
commit
1edd1fa0ca
1 file changed
+1
@@ -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