package com.github.games647.scoreboardstats.commands;

import com.github.games647.scoreboardstats.Language;
import com.github.games647.scoreboardstats.ScoreboardStats;

import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.scheduler.BukkitRunnable;

/**
 * Handle the Reload command for the plugin.
 */
public class ReloadCommand implements CommandExecutor {

    @Override
    public boolean onCommand(CommandSender commandSender, Command cmd, final String label, final String[] args) {
        if (!commandSender.hasPermission("scoreboardstats.reload")) {
            commandSender.sendMessage(Language.get("noPermission"));
            return true;
        }
        final ScoreboardStats instance = ScoreboardStats.getInstance();
        instance.getServer().getScheduler().runTask(instance, new BukkitRunnable() {
            @Override
            public void run() {
                instance.onReload();
            }
        });
        commandSender.sendMessage(Language.get("onReload"));
        return true;
    }
}

@@ -771,277 +771,57 @@
     
-final ScoreboardStats instance = ScoreboardStats.getInstance();%0D%0A        instance.getServer().getScheduler().runTask(instance, new BukkitRunnable() %7B%0D%0A            @Override%0D%0A            public void run() %7B%0D%0A                instance.onReload();%0D%0A            %7D%0D%0A        %7D
+%0D%0A        ScoreboardStats.getInstance().onReload(
 );%0D%0A

Fix redundant asynch running