From 3d7b6e13c95765f2f0db36f6f659de99e47124cf Mon Sep 17 00:00:00 2001 From: ile123ile Date: Sat, 23 Aug 2014 14:24:47 -0700 Subject: [PATCH] Fixed mcrank and/or mctop --- .../nossr50/runnables/commands/McrankCommandDisplayTask.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/runnables/commands/McrankCommandDisplayTask.java b/src/main/java/com/gmail/nossr50/runnables/commands/McrankCommandDisplayTask.java index ce96c8252..e9da91e89 100644 --- a/src/main/java/com/gmail/nossr50/runnables/commands/McrankCommandDisplayTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/commands/McrankCommandDisplayTask.java @@ -37,6 +37,9 @@ public class McrankCommandDisplayTask extends BukkitRunnable { if (useChat) { displayChat(); } + if(sender instanceof Player) { + mcMMO.p.getServer().getPlayerExact(playerName).removeMetadata(mcMMO.databaseCommandKey, mcMMO.p); + } } private void displayChat() { @@ -57,7 +60,6 @@ public class McrankCommandDisplayTask extends BukkitRunnable { rank = skills.get(null); sender.sendMessage(LocaleLoader.getString("Commands.mcrank.Overall", (rank == null ? LocaleLoader.getString("Commands.mcrank.Unranked") : rank))); - player.removeMetadata(mcMMO.databaseCommandKey, mcMMO.p); } public void displayBoard() {