main #10

Closed
Jakob wants to merge 9 commits from main into NewUpdateChecker
Showing only changes of commit 1012c8c008 - Show all commits

View File

@ -5,6 +5,7 @@ import net.t2code.lib.Spigot.Lib.messages.send;
import net.t2code.lib.Spigot.Lib.update.UpdateAPI; import net.t2code.lib.Spigot.Lib.update.UpdateAPI;
import net.t2code.lib.Spigot.system.config.SelectLibConfig; import net.t2code.lib.Spigot.system.config.SelectLibConfig;
import net.t2code.lib.Util; import net.t2code.lib.Util;
import org.bukkit.Bukkit;
import org.bukkit.command.Command; import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
@ -42,7 +43,12 @@ public class CmdExecuter implements CommandExecutor, TabCompleter {
return false; return false;
} }
if ("createreportlog".equals(args[1].toLowerCase())) { if ("createreportlog".equals(args[1].toLowerCase())) {
Bukkit.getScheduler().runTaskAsynchronously(T2CodeMain.getPlugin(), new Runnable() {
@Override
public void run() {
CreateReportLog.create(sender); CreateReportLog.create(sender);
}
});
} else send.sender(sender, "§4Use: §7/t2code debug createReportLog"); } else send.sender(sender, "§4Use: §7/t2code debug createReportLog");
return false; return false;