Update CmdExecuter.java

This commit is contained in:
Jkobs 2022-11-10 14:28:51 +01:00
parent 82905c0d66
commit 1012c8c008

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