diff options
author | Tahg <tahgtahv@gmail.com> | 2011-01-17 16:55:48 -0500 |
---|---|---|
committer | Tahg <tahgtahv@gmail.com> | 2011-01-17 16:55:48 -0500 |
commit | 19e98ffc71289a6dea420a6841ecd9dcb5f7f2ee (patch) | |
tree | 4e2ed02df311f4b2b8a23a9f438b595787a6b29b /src/main/java/org/bukkit | |
parent | 1b7279b7c67548a670c89d651d594b284b1b9967 (diff) | |
download | craftbukkit-19e98ffc71289a6dea420a6841ecd9dcb5f7f2ee.tar craftbukkit-19e98ffc71289a6dea420a6841ecd9dcb5f7f2ee.tar.gz craftbukkit-19e98ffc71289a6dea420a6841ecd9dcb5f7f2ee.tar.lz craftbukkit-19e98ffc71289a6dea420a6841ecd9dcb5f7f2ee.tar.xz craftbukkit-19e98ffc71289a6dea420a6841ecd9dcb5f7f2ee.zip |
fixed exact name matching
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 04019347..f53d0866 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -83,11 +83,11 @@ public final class CraftServer implements Server for (Player player : players) { if (player.getName().toLowerCase().startsWith(lowerName)) { int curDelta = player.getName().length() - lowerName.length(); - if(curDelta == 0) break; if (curDelta < delta) { found = player; delta = curDelta; } + if(curDelta == 0) break; } } return found; |