diff options
author | Animosity <nullcline@gmail.com> | 2011-01-08 00:08:30 +0800 |
---|---|---|
committer | Dinner Bone <dinnerbone@dinnerbone.com> | 2011-01-08 00:14:06 +0800 |
commit | 1edd1fa0cac56460ae4cd8808e6a3e2bee0b399f (patch) | |
tree | df83b2e82a044988e1422938fba956d2d8fcfc7e /src | |
parent | 2e0413558f19f8b92012eeea6f2c783b7f61743d (diff) | |
download | craftbukkit-1edd1fa0cac56460ae4cd8808e6a3e2bee0b399f.tar craftbukkit-1edd1fa0cac56460ae4cd8808e6a3e2bee0b399f.tar.gz craftbukkit-1edd1fa0cac56460ae4cd8808e6a3e2bee0b399f.tar.lz craftbukkit-1edd1fa0cac56460ae4cd8808e6a3e2bee0b399f.tar.xz craftbukkit-1edd1fa0cac56460ae4cd8808e6a3e2bee0b399f.zip |
Make matchPlayer return only the exact-matched player, if there is one.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 2d0d0c96..c3b9c7cd 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; } |