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

By: Animosity <nullcline@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2011-01-08 00:08:30 +08:00
parent 0e4e6c21e5
commit 08343616c6

View File

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