From 1edd1fa0cac56460ae4cd8808e6a3e2bee0b399f Mon Sep 17 00:00:00 2001 From: Animosity Date: Sat, 8 Jan 2011 00:08:30 +0800 Subject: [PATCH] Make matchPlayer return only the exact-matched player, if there is one. --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 2d0d0c96eb..c3b9c7cdab 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -90,6 +90,7 @@ public final class CraftServer implements Server { if (partialName.equalsIgnoreCase(iterPlayerName)) { // Exact match + matchedPlayers.clear(); matchedPlayers.add(iterPlayer); break; }