diff --git a/.idea/artifacts/T2CodeLib.xml b/.idea/artifacts/T2CodeLib.xml
deleted file mode 100644
index 03e425d..0000000
--- a/.idea/artifacts/T2CodeLib.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- $PROJECT_DIR$/../../Libarys
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/artifacts/T2CodeLib_1_0_0_32.xml b/.idea/artifacts/T2CodeLib_1_0_0_32.xml
deleted file mode 100644
index ec9b69d..0000000
--- a/.idea/artifacts/T2CodeLib_1_0_0_32.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- $PROJECT_DIR$/../../Testserver/1.17.1/Server/plugins
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_code_findbugs_jsr305_3_0_2.xml b/.idea/libraries/Maven__com_google_code_findbugs_jsr305_3_0_2.xml
deleted file mode 100644
index 1c380d0..0000000
--- a/.idea/libraries/Maven__com_google_code_findbugs_jsr305_3_0_2.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_code_gson_gson_2_8_8.xml b/.idea/libraries/Maven__com_google_code_gson_gson_2_8_8.xml
deleted file mode 100644
index 1da2fef..0000000
--- a/.idea/libraries/Maven__com_google_code_gson_gson_2_8_8.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_errorprone_error_prone_annotations_2_7_1.xml b/.idea/libraries/Maven__com_google_errorprone_error_prone_annotations_2_7_1.xml
deleted file mode 100644
index 3df0929..0000000
--- a/.idea/libraries/Maven__com_google_errorprone_error_prone_annotations_2_7_1.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_guava_failureaccess_1_0_1.xml b/.idea/libraries/Maven__com_google_guava_failureaccess_1_0_1.xml
deleted file mode 100644
index 36e948e..0000000
--- a/.idea/libraries/Maven__com_google_guava_failureaccess_1_0_1.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_guava_guava_31_0_1_jre.xml b/.idea/libraries/Maven__com_google_guava_guava_31_0_1_jre.xml
deleted file mode 100644
index 08b28cc..0000000
--- a/.idea/libraries/Maven__com_google_guava_guava_31_0_1_jre.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_guava_listenablefuture_9999_0_empty_to_avoid_conflict_with_guava.xml b/.idea/libraries/Maven__com_google_guava_listenablefuture_9999_0_empty_to_avoid_conflict_with_guava.xml
deleted file mode 100644
index 4e15702..0000000
--- a/.idea/libraries/Maven__com_google_guava_listenablefuture_9999_0_empty_to_avoid_conflict_with_guava.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_j2objc_j2objc_annotations_1_3.xml b/.idea/libraries/Maven__com_google_j2objc_j2objc_annotations_1_3.xml
deleted file mode 100644
index bacaa45..0000000
--- a/.idea/libraries/Maven__com_google_j2objc_j2objc_annotations_1_3.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/libraries/Maven__net_md_5_bungeecord_chat_1_16_R0_4.xml b/.idea/libraries/Maven__net_md_5_bungeecord_chat_1_16_R0_4.xml
deleted file mode 100644
index 9a850ea..0000000
--- a/.idea/libraries/Maven__net_md_5_bungeecord_chat_1_16_R0_4.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_checkerframework_checker_qual_3_12_0.xml b/.idea/libraries/Maven__org_checkerframework_checker_qual_3_12_0.xml
deleted file mode 100644
index 1b2a35b..0000000
--- a/.idea/libraries/Maven__org_checkerframework_checker_qual_3_12_0.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_spigotmc_spigot_api_1_18_R0_1_SNAPSHOT.xml b/.idea/libraries/Maven__org_spigotmc_spigot_api_1_18_R0_1_SNAPSHOT.xml
deleted file mode 100644
index ea3de8d..0000000
--- a/.idea/libraries/Maven__org_spigotmc_spigot_api_1_18_R0_1_SNAPSHOT.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_yaml_snakeyaml_1_28.xml b/.idea/libraries/Maven__org_yaml_snakeyaml_1_28.xml
deleted file mode 100644
index 1f853f7..0000000
--- a/.idea/libraries/Maven__org_yaml_snakeyaml_1_28.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 41df30e..64eb3eb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
net.t2code
T2CodeLib
- 11.4
+ 11.5
jar
T2CodeLib
diff --git a/src/main/java/net/t2code/lib/Spigot/Lib/messages/TextBuilder.java b/src/main/java/net/t2code/lib/Spigot/Lib/messages/TextBuilder.java
index 280b45a..2a82fa7 100644
--- a/src/main/java/net/t2code/lib/Spigot/Lib/messages/TextBuilder.java
+++ b/src/main/java/net/t2code/lib/Spigot/Lib/messages/TextBuilder.java
@@ -28,6 +28,7 @@ public class TextBuilder {
}
public TextComponent build() {
+ if (this.text.contains("[empty]")) return null;
TextComponent textComponent = new TextComponent();
textComponent.setText(this.text);
if (this.hover != null) {
diff --git a/src/main/java/net/t2code/lib/Spigot/Lib/messages/send.java b/src/main/java/net/t2code/lib/Spigot/Lib/messages/send.java
index 93fad33..54495e5 100644
--- a/src/main/java/net/t2code/lib/Spigot/Lib/messages/send.java
+++ b/src/main/java/net/t2code/lib/Spigot/Lib/messages/send.java
@@ -14,22 +14,29 @@ public class send {
*/
public static void console(String msg) {
+ if (msg == null || msg.contains("[empty]")) return;
Bukkit.getConsoleSender().sendMessage(msg);
}
public static void player(Player player, String msg) {
+ if (msg == null || msg.contains("[empty]")) return;
player.sendMessage(msg);
}
public static void title(Player player, String msg, String msg2) {
+ if (msg == null || msg.contains("[empty]")) return;
+ if (msg2 == null || msg2.contains("[empty]")) return;
player.sendTitle(msg, msg2);
}
public static void title(Player player, String msg, String msg2, int i, int i1, int i2) {
+ if (msg == null || msg.contains("[empty]")) return;
+ if (msg2 == null || msg2.contains("[empty]")) return;
player.sendTitle(msg, msg2, i, i1, i2);
}
public static void sender(CommandSender sender, String msg) {
+ if (msg == null || msg.contains("[empty]")) return;
sender.sendMessage(msg);
}
diff --git a/target/classes/bungee.yml b/target/classes/bungee.yml
index b69853e..b8f3455 100644
--- a/target/classes/bungee.yml
+++ b/target/classes/bungee.yml
@@ -1,5 +1,5 @@
name: T2CodeLib
-version: 11.4
+version: 11.5
main: net.t2code.lib.Bungee.BMain
author: JaTiTV, Jkobs
description: Libarie from T2Code Plugins
\ No newline at end of file
diff --git a/target/classes/net/t2code/lib/Spigot/Lib/messages/TextBuilder$ClickEventType.class b/target/classes/net/t2code/lib/Spigot/Lib/messages/TextBuilder$ClickEventType.class
index 2cb13f5..2f3bc95 100644
Binary files a/target/classes/net/t2code/lib/Spigot/Lib/messages/TextBuilder$ClickEventType.class and b/target/classes/net/t2code/lib/Spigot/Lib/messages/TextBuilder$ClickEventType.class differ
diff --git a/target/classes/net/t2code/lib/Spigot/Lib/messages/TextBuilder.class b/target/classes/net/t2code/lib/Spigot/Lib/messages/TextBuilder.class
index 3428d2e..3e79af7 100644
Binary files a/target/classes/net/t2code/lib/Spigot/Lib/messages/TextBuilder.class and b/target/classes/net/t2code/lib/Spigot/Lib/messages/TextBuilder.class differ
diff --git a/target/classes/net/t2code/lib/Spigot/Lib/messages/send.class b/target/classes/net/t2code/lib/Spigot/Lib/messages/send.class
index eb24d60..d0c6c6e 100644
Binary files a/target/classes/net/t2code/lib/Spigot/Lib/messages/send.class and b/target/classes/net/t2code/lib/Spigot/Lib/messages/send.class differ
diff --git a/target/classes/plugin.yml b/target/classes/plugin.yml
index 070b9b7..cb50ff6 100644
--- a/target/classes/plugin.yml
+++ b/target/classes/plugin.yml
@@ -1,5 +1,5 @@
name: T2CodeLib
-version: 11.4
+version: 11.5
main: net.t2code.lib.Spigot.system.Main
api-version: 1.13
prefix: T2CodeLib