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 6f3a07285..760afc788 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, mcMMOPlayer.getPlayer().getName()); + sqlDisplay(sender, args[0]); } else { - flatfileDisplay(sender, mcMMOPlayer.getPlayer().getName()); + flatfileDisplay(sender, args[0]); } return true;