diff --git a/pom.xml b/pom.xml index c650669..79564b8 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ net.t2code T2CodeLib - 13.2 + 13.3 jar T2CodeLib @@ -86,12 +86,12 @@ BenCodez Repo https://nexus.bencodez.com/repository/maven-public/ - + @@ -145,7 +145,7 @@ net.kyori adventure-platform-bukkit - 4.1.3-SNAPSHOT + 4.1.2 diff --git a/src/main/java/net/t2code/t2codelib/SPIGOT/api/messages/T2CminiMessage.java b/src/main/java/net/t2code/t2codelib/SPIGOT/api/messages/T2CminiMessage.java index 97ad915..e654ca2 100644 --- a/src/main/java/net/t2code/t2codelib/SPIGOT/api/messages/T2CminiMessage.java +++ b/src/main/java/net/t2code/t2codelib/SPIGOT/api/messages/T2CminiMessage.java @@ -16,11 +16,12 @@ public class T2CminiMessage { public static void sendMiniMessage(String msg) { T2CodeLibMain.adventure().console().sendMessage(replace(msg)); } - public static void miniMessage(String msg, Player player){ + + public static void miniMessage(String msg, Player player) { T2CodeLibMain.adventure().player(player).sendMessage(replace(msg)); } - protected static Component replace(String text){ + protected static Component replace(String text) { return MiniMessage.miniMessage().deserialize(T2Creplace.convertColorCode(text)); } } diff --git a/src/main/java/net/t2code/t2codelib/SPIGOT/api/update/T2CupdateObject.java b/src/main/java/net/t2code/t2codelib/SPIGOT/api/update/T2CupdateObject.java index 529d7ca..5145de9 100644 --- a/src/main/java/net/t2code/t2codelib/SPIGOT/api/update/T2CupdateObject.java +++ b/src/main/java/net/t2code/t2codelib/SPIGOT/api/update/T2CupdateObject.java @@ -6,18 +6,15 @@ public class T2CupdateObject { public String pluginName; public String pluginVersion; public String publicVersion; - public String changeLog; public Boolean load; public T2CupdateObject(String pluginName, String pluginVersion, - String publicVersion , - String changeLog , + String publicVersion, Boolean load) { this.pluginName = pluginName; this.pluginVersion = pluginVersion; this.publicVersion = publicVersion; - this.changeLog = changeLog; - this.load=load; + this.load = load; } } diff --git a/src/main/java/net/t2code/t2codelib/SPIGOT/system/CmdExecuter.java b/src/main/java/net/t2code/t2codelib/SPIGOT/system/CmdExecuter.java index 7904140..05672a9 100644 --- a/src/main/java/net/t2code/t2codelib/SPIGOT/system/CmdExecuter.java +++ b/src/main/java/net/t2code/t2codelib/SPIGOT/system/CmdExecuter.java @@ -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; @@ -44,7 +45,12 @@ public class CmdExecuter implements CommandExecutor, TabCompleter { return false; } if ("createreportlog".equals(args[1].toLowerCase())) { - CreateReportLog.create(sender); + Bukkit.getScheduler().runTaskAsynchronously(T2CodeLibMain.getPlugin(), new Runnable() { + @Override + public void run() { + CreateReportLog.create(sender); + } + }); } else T2Csend.sender(sender, "§4Use: §7/t2code debug createReportLog"); return false; diff --git a/src/main/java/net/t2code/t2codelib/SPIGOT/system/T2CodeLibMain.java b/src/main/java/net/t2code/t2codelib/SPIGOT/system/T2CodeLibMain.java index 73e0900..d5f9cf8 100644 --- a/src/main/java/net/t2code/t2codelib/SPIGOT/system/T2CodeLibMain.java +++ b/src/main/java/net/t2code/t2codelib/SPIGOT/system/T2CodeLibMain.java @@ -159,6 +159,7 @@ public final class T2CodeLibMain extends JavaPlugin { if (adventure == null) { throw new IllegalStateException("Tried to access Adventure when the plugin was disabled!"); } + Bukkit.getConsoleSender().sendMessage(Util.getPrefix() + " Adventure load"); return adventure; } diff --git a/src/main/java/net/t2code/t2codelib/Util.java b/src/main/java/net/t2code/t2codelib/Util.java index ea6ab55..72b0d99 100644 --- a/src/main/java/net/t2code/t2codelib/Util.java +++ b/src/main/java/net/t2code/t2codelib/Util.java @@ -31,7 +31,7 @@ public class Util { public static List getT2cPlugins() { return Arrays.asList( - "T2CodeLib", + //"T2CodeLib", "T2C-LuckyBox", "WonderBagShop", "CommandGUI",