From ccf75c04295e52635098a3ff7ea09db905834b9b Mon Sep 17 00:00:00 2001 From: cerevisiae Date: Wed, 1 Dec 2010 13:40:18 -0600 Subject: [PATCH] Fixed /whois requiring full name --- vMinecraftCommands.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/vMinecraftCommands.java b/vMinecraftCommands.java index 1f498a87e..9dbd788e9 100644 --- a/vMinecraftCommands.java +++ b/vMinecraftCommands.java @@ -341,14 +341,8 @@ public class vMinecraftCommands{ player.sendMessage(Colors.Rose + "Usage is /whois [player]"); else { //Get the player by name - Player playerTarget = null; - for( Player p : etc.getServer().getPlayerList()) - { - if (p.getName().equalsIgnoreCase(args[0])) - { - playerTarget = p; - } - } + Player playerTarget = etc.getServer().matchPlayer(args[0]); + //If the player exists if (playerTarget != null){