Fixed mcrank and/or mctop

This commit is contained in:
ile123ile 2014-08-23 14:24:47 -07:00
parent ebd02dc30e
commit 3d7b6e13c9

View File

@ -37,6 +37,9 @@ public class McrankCommandDisplayTask extends BukkitRunnable {
if (useChat) { if (useChat) {
displayChat(); displayChat();
} }
if(sender instanceof Player) {
mcMMO.p.getServer().getPlayerExact(playerName).removeMetadata(mcMMO.databaseCommandKey, mcMMO.p);
}
} }
private void displayChat() { private void displayChat() {
@ -57,7 +60,6 @@ public class McrankCommandDisplayTask extends BukkitRunnable {
rank = skills.get(null); rank = skills.get(null);
sender.sendMessage(LocaleLoader.getString("Commands.mcrank.Overall", (rank == null ? LocaleLoader.getString("Commands.mcrank.Unranked") : rank))); sender.sendMessage(LocaleLoader.getString("Commands.mcrank.Overall", (rank == null ? LocaleLoader.getString("Commands.mcrank.Unranked") : rank)));
player.removeMetadata(mcMMO.databaseCommandKey, mcMMO.p);
} }
public void displayBoard() { public void displayBoard() {