Merge branch 'main' into NewDebugZip

This commit is contained in:
Jkobs
2022-11-10 19:11:28 +01:00
3 changed files with 10 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ import net.t2code.t2codelib.SPIGOT.api.messages.T2Ctemplate;
import net.t2code.t2codelib.SPIGOT.system.CreateReportLog;
import net.t2code.t2codelib.SPIGOT.system.config.config.SelectLibConfig;
import net.t2code.t2codelib.Util;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
@@ -46,11 +47,17 @@ public class CmdExecuter implements CommandExecutor, TabCompleter {
}
switch (args[1].toLowerCase()) {
case "createreportlog":
try {
Bukkit.getScheduler().runTaskAsynchronously(T2CodeLibMain.getPlugin(), new Runnable() {
@Override
public void run() {
try {
CreateReportLog.create(sender);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
});
break;
case "deleteReportLog":
if(args.length != 3){