diff --git a/.idea/misc.xml b/.idea/misc.xml
index 63ea76a..eb70eb9 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -5,6 +5,9 @@
+
+
+
diff --git a/pom.xml b/pom.xml
index 46d0628..f22c1bd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
net.t2code
T2CodeLib
- 16.7_dev-3
+ 16.7_dev-4
diff --git a/src/main/java/net/t2code/t2codelib/SPIGOT/api/messages/T2Csend.java b/src/main/java/net/t2code/t2codelib/SPIGOT/api/messages/T2Csend.java
index 8fb8196..2e5ee82 100644
--- a/src/main/java/net/t2code/t2codelib/SPIGOT/api/messages/T2Csend.java
+++ b/src/main/java/net/t2code/t2codelib/SPIGOT/api/messages/T2Csend.java
@@ -58,15 +58,30 @@ public class T2Csend {
player.sendTitle(title, subtitle, fadeIn, stay, fadeOut);
}
+ /**
+ *
+ * Use: T2Cdebug.debug(Plugin plugin, String msg) or T2Cdebug.debug(Plugin plugin, String msg, Integer stage)
+ */
+ @Deprecated
public static void debug(Plugin plugin, String msg) {
debug(plugin, msg, null);
}
+ /**
+ *
+ * Use: T2Cdebug.debug(Plugin plugin, String msg) or T2Cdebug.debug(Plugin plugin, String msg, Integer stage)
+ */
+ @Deprecated
public static void debug(Plugin plugin, String msg, Integer stage) {
// if (!new File(Main.getPath(), "config.yml").exists()) return;
T2Cdebug.debug(plugin, msg, stage);
}
+ /**
+ *
+ * Use: T2Cdebug.debugmsg(plugin, msg)
+ */
+ @Deprecated
public static void debugmsg(Plugin plugin, String msg) {
T2Cdebug.debugmsg(plugin, msg);
}
diff --git a/src/main/java/net/t2code/t2codelib/SPIGOT/api/messages/T2Ctemplate.java b/src/main/java/net/t2code/t2codelib/SPIGOT/api/messages/T2Ctemplate.java
index 3d77367..abb9886 100644
--- a/src/main/java/net/t2code/t2codelib/SPIGOT/api/messages/T2Ctemplate.java
+++ b/src/main/java/net/t2code/t2codelib/SPIGOT/api/messages/T2Ctemplate.java
@@ -2,6 +2,7 @@ package net.t2code.t2codelib.SPIGOT.api.messages;
import net.t2code.t2codelib.SPIGOT.api.update.T2CupdateAPI;
import net.t2code.t2codelib.SPIGOT.system.T2CodeLibMain;
+import net.t2code.t2codelib.T2CconfigItem;
import net.t2code.t2codelib.T2CupdateWebData;
import net.t2code.t2codelib.Util;
import org.bukkit.command.CommandSender;
@@ -35,10 +36,9 @@ public class T2Ctemplate {
*/
- T2Csend.console(prefix + " §e╔════════════════════════════════════");
- onStartMsg(prefix,"");
+
for (String s : Util.getLoadLogo()) {
- onStartMsg(prefix, s);
+ T2Csend.console(prefix + " §e" + s);
}
onStartMsg(prefix,"");
onStartMsg(prefix,"§2Author §6" + String.valueOf(autor).replace("[", "").replace("]", ""));
@@ -58,8 +58,14 @@ public class T2Ctemplate {
onLoadSeparateStroke(prefix);
if (version.toLowerCase().contains("dev") || version.toLowerCase().contains("snapshot") || version.toLowerCase().contains("beta")) {
- T2Csend.console(prefix + " §eYou are running §4" + version + " §eof " + prefix + "§e! Some features may not be working as expected. Please report all" +
- " bugs here: http://dc.t2code.net §4UpdateChecker & bStats may be disabled!");
+ T2Csend.warning(T2CodeLibMain.getPlugin(), "");
+ T2Csend.warning(T2CodeLibMain.getPlugin(), "");
+ onStartMsg(prefix, "§eYou are running §4" + version + " §eof " + prefix + "§e!");
+ onStartMsg(prefix, "§eSome features may not be working as expected.");
+ onStartMsg(prefix, "§ePlease report all bugs here: http://dc.t2code.net");
+ onStartMsg(prefix, "§4UpdateChecker & bStats may be disabled!");
+ T2Csend.warning(T2CodeLibMain.getPlugin(), "");
+ T2Csend.warning(T2CodeLibMain.getPlugin(), "");
onLoadSeparateStroke(prefix);
try {
diff --git a/src/main/java/net/t2code/t2codelib/SPIGOT/api/minecraftVersion/T2CmcVersion.java b/src/main/java/net/t2code/t2codelib/SPIGOT/api/minecraftVersion/T2CmcVersion.java
index 7d49a5f..7abd124 100644
--- a/src/main/java/net/t2code/t2codelib/SPIGOT/api/minecraftVersion/T2CmcVersion.java
+++ b/src/main/java/net/t2code/t2codelib/SPIGOT/api/minecraftVersion/T2CmcVersion.java
@@ -31,6 +31,7 @@ public class T2CmcVersion {
mc1_19 = mcVersion.contains("MC: 1.19");
mc1_20 = mcVersion.contains("MC: 1.20");
mc1_21 = mcVersion.contains("MC: 1.21");
+ mc1_22 = mcVersion.contains("MC: 1.22");
nms1_8_R1 = nms.contains("1_8_R1");
nms1_8_R2 = nms.contains("1_8_R2");
@@ -57,6 +58,7 @@ public class T2CmcVersion {
nms1_20_R3 = nms.contains("1_20_R3");
nms1_20_R4 = nms.contains("1_20_R4");
nms1_21_R1 = nms.contains("1_21_R1");
+ nms1_21_R2 = nms.contains("1_21_R2");
}
private static String mcVersion;
@@ -75,6 +77,7 @@ public class T2CmcVersion {
private static boolean mc1_19;
private static boolean mc1_20;
private static boolean mc1_21;
+ private static boolean mc1_22;
private static String nms;
private static boolean nms1_8_R1;
@@ -102,6 +105,7 @@ public class T2CmcVersion {
private static boolean nms1_20_R3;
private static boolean nms1_20_R4;
private static boolean nms1_21_R1;
+ private static boolean nms1_21_R2;
public static String getMcVersion() {
return mcVersion;
@@ -167,6 +171,10 @@ public class T2CmcVersion {
return mc1_21;
}
+ public static boolean isMc1_22() {
+ return mc1_22;
+ }
+
public static String getNms() {
return nms;
}
diff --git a/src/main/java/net/t2code/t2codelib/SPIGOT/api/minecraftVersion/T2CnmsEnum.java b/src/main/java/net/t2code/t2codelib/SPIGOT/api/minecraftVersion/T2CnmsEnum.java
index f22f553..fa97c67 100644
--- a/src/main/java/net/t2code/t2codelib/SPIGOT/api/minecraftVersion/T2CnmsEnum.java
+++ b/src/main/java/net/t2code/t2codelib/SPIGOT/api/minecraftVersion/T2CnmsEnum.java
@@ -28,4 +28,5 @@ public enum T2CnmsEnum {
v1_20_R3,
v1_20_R4,
v1_21_R1,
+ v1_21_R2,
}
diff --git a/src/main/java/net/t2code/t2codelib/SPIGOT/api/yaml/T2CconfigWriter.java b/src/main/java/net/t2code/t2codelib/SPIGOT/api/yaml/T2CconfigWriter.java
index c83214a..654548c 100644
--- a/src/main/java/net/t2code/t2codelib/SPIGOT/api/yaml/T2CconfigWriter.java
+++ b/src/main/java/net/t2code/t2codelib/SPIGOT/api/yaml/T2CconfigWriter.java
@@ -93,6 +93,7 @@ public class T2CconfigWriter {
addSection((ConfigurationSection) value, comments, builder, fullKey, indentLevel + 1);
} else {
// Add value with proper indentation
+ // builder.append(indent).append(key).append(": ").append(value).append("\n");
if (value instanceof List) {
builder.append(indent).append(key).append(": ").append("\n");
List