mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 05:11:27 +01:00
Make matchPlayer return only the exact-matched player, if there is one.
By: Animosity <nullcline@gmail.com>
This commit is contained in:
parent
0e4e6c21e5
commit
08343616c6
@ -90,6 +90,7 @@ public final class CraftServer implements Server {
|
||||
|
||||
if (partialName.equalsIgnoreCase(iterPlayerName)) {
|
||||
// Exact match
|
||||
matchedPlayers.clear();
|
||||
matchedPlayers.add(iterPlayer);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user