Update CmdExecuter.java
This commit is contained in:
parent
73d574adef
commit
a15d667244
@ -47,20 +47,19 @@ public class CmdExecuter implements CommandExecutor, TabCompleter {
|
||||
}
|
||||
switch (args[1].toLowerCase()) {
|
||||
case "createreportlog":
|
||||
Bukkit.getScheduler().runTaskAsynchronously(T2CodeLibMain.getPlugin(), new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
CreateReportLog.create(sender);
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
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){
|
||||
if (args.length != 3) {
|
||||
T2Csend.sender(sender, "§4Use: §7/t2code debug deleteReportLog [id]");
|
||||
return false;
|
||||
}
|
||||
@ -74,7 +73,7 @@ public class CmdExecuter implements CommandExecutor, TabCompleter {
|
||||
T2Csend.sender(sender, "§4Use: §7/t2code debug createReportLog/deleteReportLog");
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
return false;
|
||||
|
||||
default:
|
||||
T2Csend.sender(sender, "§4Use: §7/t2code debug createReportLog");
|
||||
|
Loading…
Reference in New Issue
Block a user