Update CmdExecuter.java

This commit is contained in:
Jkobs 2022-11-10 19:13:54 +01:00
parent 73d574adef
commit a15d667244

View File

@ -47,20 +47,19 @@ public class CmdExecuter implements CommandExecutor, TabCompleter {
} }
switch (args[1].toLowerCase()) { switch (args[1].toLowerCase()) {
case "createreportlog": case "createreportlog":
Bukkit.getScheduler().runTaskAsynchronously(T2CodeLibMain.getPlugin(), new Runnable() { Bukkit.getScheduler().runTaskAsynchronously(T2CodeLibMain.getPlugin(), new Runnable() {
@Override @Override
public void run() { public void run() {
try { try {
CreateReportLog.create(sender); CreateReportLog.create(sender);
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
} }
}); });
break; break;
case "deleteReportLog": case "deleteReportLog":
if(args.length != 3){ if (args.length != 3) {
T2Csend.sender(sender, "§4Use: §7/t2code debug deleteReportLog [id]"); T2Csend.sender(sender, "§4Use: §7/t2code debug deleteReportLog [id]");
return false; return false;
} }
@ -74,7 +73,7 @@ public class CmdExecuter implements CommandExecutor, TabCompleter {
T2Csend.sender(sender, "§4Use: §7/t2code debug createReportLog/deleteReportLog"); T2Csend.sender(sender, "§4Use: §7/t2code debug createReportLog/deleteReportLog");
break; break;
} }
return false; return false;
default: default:
T2Csend.sender(sender, "§4Use: §7/t2code debug createReportLog"); T2Csend.sender(sender, "§4Use: §7/t2code debug createReportLog");