package com.gmail.nossr50.runnables.commands; import java.util.Map; import org.bukkit.command.CommandSender; import org.bukkit.scheduler.BukkitRunnable; import com.gmail.nossr50.mcMMO; public class McrankCommandAsyncTask extends BukkitRunnable { private final String playerName; private final CommandSender sender; public McrankCommandAsyncTask(String playerName, CommandSender sender) { this.playerName = playerName; this.sender = sender; } @Override public void run() { Map skills = mcMMO.getDatabaseManager().readRank(playerName); new McrankCommandDisplayTask(skills, sender, playerName).runTaskLater(mcMMO.p, 1); } }