NewDebugZip #11

Merged
JaTiTV merged 10 commits from NewDebugZip into 13.3 2022-11-13 15:31:20 +00:00
3 changed files with 10 additions and 3 deletions
Showing only changes of commit 73d574adef - Show all commits

View File

@ -6,7 +6,7 @@
<groupId>net.t2code</groupId>
<artifactId>T2CodeLib</artifactId>
<version>13.3_DEV</version>
<version>13.3</version>
<packaging>jar</packaging>
<name>T2CodeLib</name>

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){

View File

@ -34,7 +34,7 @@ public class Util {
public static List<String> getT2cPlugins() {
return Arrays.asList(
"T2CodeLib",
//"T2CodeLib",
"T2C-LuckyBox",
"WonderBagShop",
"CommandGUI",