From aee5b4bf8f3f7f543c2ab8809e83ec330fd27c4d Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Sat, 16 Apr 2022 17:07:43 +0200 Subject: [PATCH] 11.5 --- .idea/artifacts/T2CodeLib.xml | 8 -------- .idea/artifacts/T2CodeLib_1_0_0_32.xml | 8 -------- ..._com_google_code_findbugs_jsr305_3_0_2.xml | 13 ------------- ...Maven__com_google_code_gson_gson_2_8_8.xml | 13 ------------- ...rorprone_error_prone_annotations_2_7_1.xml | 13 ------------- ...__com_google_guava_failureaccess_1_0_1.xml | 13 ------------- ...ven__com_google_guava_guava_31_0_1_jre.xml | 13 ------------- ...9_0_empty_to_avoid_conflict_with_guava.xml | 13 ------------- ...m_google_j2objc_j2objc_annotations_1_3.xml | 13 ------------- ...en__net_md_5_bungeecord_chat_1_16_R0_4.xml | 13 ------------- ...g_checkerframework_checker_qual_3_12_0.xml | 13 ------------- ...spigotmc_spigot_api_1_18_R0_1_SNAPSHOT.xml | 13 ------------- .../Maven__org_yaml_snakeyaml_1_28.xml | 13 ------------- pom.xml | 2 +- .../lib/Spigot/Lib/messages/TextBuilder.java | 1 + .../t2code/lib/Spigot/Lib/messages/send.java | 7 +++++++ target/classes/bungee.yml | 2 +- .../messages/TextBuilder$ClickEventType.class | Bin 1574 -> 1574 bytes .../lib/Spigot/Lib/messages/TextBuilder.class | Bin 2174 -> 2279 bytes .../t2code/lib/Spigot/Lib/messages/send.class | Bin 3357 -> 3623 bytes target/classes/plugin.yml | 2 +- 21 files changed, 11 insertions(+), 162 deletions(-) delete mode 100644 .idea/artifacts/T2CodeLib.xml delete mode 100644 .idea/artifacts/T2CodeLib_1_0_0_32.xml delete mode 100644 .idea/libraries/Maven__com_google_code_findbugs_jsr305_3_0_2.xml delete mode 100644 .idea/libraries/Maven__com_google_code_gson_gson_2_8_8.xml delete mode 100644 .idea/libraries/Maven__com_google_errorprone_error_prone_annotations_2_7_1.xml delete mode 100644 .idea/libraries/Maven__com_google_guava_failureaccess_1_0_1.xml delete mode 100644 .idea/libraries/Maven__com_google_guava_guava_31_0_1_jre.xml delete mode 100644 .idea/libraries/Maven__com_google_guava_listenablefuture_9999_0_empty_to_avoid_conflict_with_guava.xml delete mode 100644 .idea/libraries/Maven__com_google_j2objc_j2objc_annotations_1_3.xml delete mode 100644 .idea/libraries/Maven__net_md_5_bungeecord_chat_1_16_R0_4.xml delete mode 100644 .idea/libraries/Maven__org_checkerframework_checker_qual_3_12_0.xml delete mode 100644 .idea/libraries/Maven__org_spigotmc_spigot_api_1_18_R0_1_SNAPSHOT.xml delete mode 100644 .idea/libraries/Maven__org_yaml_snakeyaml_1_28.xml 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 2cb13f5813d934825a3a80a1197ad86f02ee98a2..2f3bc958a37375b448d59ce319baa3cd99c21a96 100644 GIT binary patch delta 41 tcmZ3+vy5lMY8FQA$!l2jf#e+)J0K~|nh7LZS*uue82lKtC$q3A0RRE{3bOzJ delta 41 tcmZ3+vy5lMY8FPV$!l2jf#e+)J0K~|nh7LZS*uvJ8T=TuCbO_90RRDu3atPD 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 3428d2e7402506397303b4eca36a39442dc8e04e..3e79af78803180a9866b78ac4e444222f8b0ce6c 100644 GIT binary patch delta 780 zcmYjPO>YuW6g_Vk`sgsUP!R=6p-_+y1+A^LRs?L-s%WifE&Z^;med+Wt!Uz^|G>n& zRX0ZeL8BF-B(4k#|AQv3T>1x0<9$<7S;bMMTa{kKE=zW3!TfDx>`(f%x1 zaFl^BRvtgCy;|1bftRCShYte`_J`${<=v)hwq6Z>nB)=CF@&%fVMFRMhLAz9nlxKCVu*7j zbR5SC@zdNd2o>)XE{){4OeiLqRgz&NyTst1*s-1OB~7K z@x&+C;yaWokOegZc9N^Z9mV)TF;30)i}CBYVR*@MUxybrNj+4?YsdqJKm9N>9jU{;4Kv$m!e44&u#k{&9YG4V7W|1OBBc+AHj&&a zNvwgBbqqIfrjBvCJ6rHku(#kMYDQA*5^f+{$AyHP*<{QdgoScHEi*vN8^i#D2qT0% zoim8wKB67FSZfdCqVbEkP1f%qEf;6%`HNu=e}HC~qk;--2VX2ReV4I delta 691 zcmYk4%}x_h6vuye20GJmkU=YB3;hsE!71WLsfvmeL_~#(h&5ffa-$11ChnWKG%?ZK zC-4nKrA=&NTy^2X*Ko-Tn8q`mhBT8oC+F*T{`b!O9qW3|@9vMEz#>mRIfpTe(~5%r zI9wQY@G(O(;W9~DzgKyc)o;v6-Bpek=L}O8(=K^t6oK9`l2WLuS-ov6oG5VCWtg-> zfuhSi=ky0-$`C8>a?n))CE;Z4vFZD2o*C z%224o4QXC5e?VdY8EH%kG9_9jdemIhe?)b;!%3kDgH3r2RD-+R>o3^H>glSr@#`&; zTgBizR+E&tkq+5nn@s&Hxi*D*m})WCM6PS0$wi419n#{w4&%~U4qLo1-Qr4Q3-2s2#vE)w@#oqn6kCVj$%Y?$;dL0(uMAH z-#f!gXZqA<`Vd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fH~1bNT_&lGW5uTv6mQ1K`(ssZIZ zEv0Q&dT15f8X3J%(C0Dwd^@dmwdd>rw-2j5Fa#?Xm6uL`zX==h(r(ZAz5LG4&bAJc8)Vj!Ikuoc#Qt~ zH9N?_4~1X~KE@{=OsVP3lTZNri!iCTJNySuvj`5cT@9~b+)zw$W$$aR87b)YqL!U zvn449Tj$TXNs(^VFU|?p*U1nwS!1r%R~%opW-c~kj**%97v|TknPxNQSu)Q(kty(v Ir`Nat01X8g{r~^~ 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