Merge branch 'main' into NewDebugZip
This commit is contained in:
commit
73d574adef
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>net.t2code</groupId>
|
<groupId>net.t2code</groupId>
|
||||||
<artifactId>T2CodeLib</artifactId>
|
<artifactId>T2CodeLib</artifactId>
|
||||||
<version>13.3_DEV</version>
|
<version>13.3</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>T2CodeLib</name>
|
<name>T2CodeLib</name>
|
||||||
|
@ -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.CreateReportLog;
|
||||||
import net.t2code.t2codelib.SPIGOT.system.config.config.SelectLibConfig;
|
import net.t2code.t2codelib.SPIGOT.system.config.config.SelectLibConfig;
|
||||||
import net.t2code.t2codelib.Util;
|
import net.t2code.t2codelib.Util;
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
@ -46,11 +47,17 @@ 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() {
|
||||||
|
@Override
|
||||||
|
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){
|
||||||
|
@ -34,7 +34,7 @@ public class Util {
|
|||||||
|
|
||||||
public static List<String> getT2cPlugins() {
|
public static List<String> getT2cPlugins() {
|
||||||
return Arrays.asList(
|
return Arrays.asList(
|
||||||
"T2CodeLib",
|
//"T2CodeLib",
|
||||||
"T2C-LuckyBox",
|
"T2C-LuckyBox",
|
||||||
"WonderBagShop",
|
"WonderBagShop",
|
||||||
"CommandGUI",
|
"CommandGUI",
|
||||||
|
Loading…
Reference in New Issue
Block a user