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;