Make matchPlayer return only the exact-matched player, if there is one.

This commit is contained in:
Animosity 2011-01-08 00:08:30 +08:00 committed by Dinner Bone
parent 2e0413558f
commit 1edd1fa0ca

View file

@ -90,6 +90,7 @@ public final class CraftServer implements Server {
if (partialName.equalsIgnoreCase(iterPlayerName)) {
// Exact match
matchedPlayers.clear();
matchedPlayers.add(iterPlayer);
break;
}