From f9a823e4b04290505ce3745a77ae4e1b3e15c3a0 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Sat, 23 Mar 2013 16:22:48 +0100 Subject: [PATCH] Fixes partial name matching with /mcrank --- .../java/com/gmail/nossr50/commands/player/McrankCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java b/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java index 760afc788..6f3a07285 100644 --- a/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java @@ -58,10 +58,10 @@ public class McrankCommand implements CommandExecutor { } if (Config.getInstance().getUseMySQL()) { - sqlDisplay(sender, args[0]); + sqlDisplay(sender, mcMMOPlayer.getPlayer().getName()); } else { - flatfileDisplay(sender, args[0]); + flatfileDisplay(sender, mcMMOPlayer.getPlayer().getName()); } return true;