From ed63004ebfd0785c40c7b8247ae5959f57312349 Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Fri, 31 Dec 2021 01:32:59 +0100 Subject: [PATCH 01/13] Change Version to 9.0_Snapshot_1 --- pom.xml | 2 +- target/classes/bungee.yml | 2 +- target/classes/plugin.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index ddae598..2dd2510 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ net.t2code T2CodeLib - 8.1 + 9.0_Snapshot_1 jar T2CodeLib diff --git a/target/classes/bungee.yml b/target/classes/bungee.yml index 5972f7a..4329b66 100644 --- a/target/classes/bungee.yml +++ b/target/classes/bungee.yml @@ -1,5 +1,5 @@ name: T2CodeLib -version: 8.1 +version: 9.0_Snapshot_1 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/plugin.yml b/target/classes/plugin.yml index 3435ea1..32bf696 100644 --- a/target/classes/plugin.yml +++ b/target/classes/plugin.yml @@ -1,5 +1,5 @@ name: T2CodeLib -version: 8.1 +version: 9.0_Snapshot_1 main: net.t2code.lib.Spigot.system.Main api-version: 1.13 prefix: T2CodeLib -- 2.34.1 From 34e59872c0800af95bc22348a7d96abccb8bd05a Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Fri, 31 Dec 2021 01:33:59 +0100 Subject: [PATCH 02/13] Update DEV / Snapshot / Beta Version Startmessage --- .../net/t2code/lib/Spigot/Lib/messages/T2CodeTemplate.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/t2code/lib/Spigot/Lib/messages/T2CodeTemplate.java b/src/main/java/net/t2code/lib/Spigot/Lib/messages/T2CodeTemplate.java index 04f9da2..238053a 100644 --- a/src/main/java/net/t2code/lib/Spigot/Lib/messages/T2CodeTemplate.java +++ b/src/main/java/net/t2code/lib/Spigot/Lib/messages/T2CodeTemplate.java @@ -29,8 +29,13 @@ public class T2CodeTemplate { send.console(prefix + " §4 §e| §2Discord: §6" + discord); send.console(prefix + " §4 §e-------------------"); if (version.toLowerCase().contains("dev") || version.toLowerCase().contains("snapshot") || version.toLowerCase().contains("beta")) { - send.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"); + send.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!"); send.console(prefix + " §4 §e-------------------"); + try { + Thread.sleep(5000); + } catch (InterruptedException e) { + e.printStackTrace(); + } } //onLoadSeparateStroke(prefix); return long_; -- 2.34.1 From f545068330c24344aa7d38741f9268fca2798973 Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Fri, 31 Dec 2021 01:34:10 +0100 Subject: [PATCH 03/13] add 1.19 --- .../net/t2code/lib/Spigot/Lib/minecraftVersion/MCVersion.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/t2code/lib/Spigot/Lib/minecraftVersion/MCVersion.java b/src/main/java/net/t2code/lib/Spigot/Lib/minecraftVersion/MCVersion.java index ff6854a..0d41e80 100644 --- a/src/main/java/net/t2code/lib/Spigot/Lib/minecraftVersion/MCVersion.java +++ b/src/main/java/net/t2code/lib/Spigot/Lib/minecraftVersion/MCVersion.java @@ -16,6 +16,7 @@ public class MCVersion { public static boolean minecraft1_16; public static boolean minecraft1_17; public static boolean minecraft1_18; + public static boolean minecraft1_19; public static void onCheck(){ isVersion = Bukkit.getServer().getVersion(); isBuckitVersion = Bukkit.getServer().getBukkitVersion(); @@ -30,5 +31,6 @@ public class MCVersion { minecraft1_16 = Bukkit.getServer().getClass().getPackage().getName().contains("1_16"); minecraft1_17 = Bukkit.getServer().getClass().getPackage().getName().contains("1_17"); minecraft1_18 = Bukkit.getServer().getClass().getPackage().getName().contains("1_18"); + minecraft1_19 = Bukkit.getServer().getClass().getPackage().getName().contains("1_19"); } } -- 2.34.1 From 07145453b2d0e14e5124e564408e6c603d24f6d4 Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Fri, 31 Dec 2021 01:34:41 +0100 Subject: [PATCH 04/13] add Player.Inventories.CloseByServerStop Function to Config --- .../java/net/t2code/lib/Spigot/system/config/ConfigCreate.java | 1 + .../net/t2code/lib/Spigot/system/config/SelectLibConfig.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/main/java/net/t2code/lib/Spigot/system/config/ConfigCreate.java b/src/main/java/net/t2code/lib/Spigot/system/config/ConfigCreate.java index fa4616b..5a5a369 100644 --- a/src/main/java/net/t2code/lib/Spigot/system/config/ConfigCreate.java +++ b/src/main/java/net/t2code/lib/Spigot/system/config/ConfigCreate.java @@ -43,6 +43,7 @@ public class ConfigCreate { Config.set("BungeeCord.Enable", Bungee, yamlConfiguration); Config.set("BungeeCord.ThisServer", thisServer, yamlConfiguration); + Config.set("Player.Inventories.CloseByServerStop", true, yamlConfiguration); // Config.set("Storage.MySQL.Enable", mySQL, yamlConfiguration); // Config.set("Storage.Type", Storage, yamlConfiguration); diff --git a/src/main/java/net/t2code/lib/Spigot/system/config/SelectLibConfig.java b/src/main/java/net/t2code/lib/Spigot/system/config/SelectLibConfig.java index 2250889..f57a2fc 100644 --- a/src/main/java/net/t2code/lib/Spigot/system/config/SelectLibConfig.java +++ b/src/main/java/net/t2code/lib/Spigot/system/config/SelectLibConfig.java @@ -11,6 +11,7 @@ public class SelectLibConfig { public static Boolean UpdateCheckOnJoin; public static Boolean Debug; public static String language; + public static Boolean InventoriesCloseByServerStop; public static void onSelect() { File config = new File(Main.getPath(), "config.yml"); @@ -19,6 +20,7 @@ public class SelectLibConfig { UpdateCheckOnJoin = yamlConfiguration.getBoolean("Plugin.UpdateCheckOnJoin"); Debug = yamlConfiguration.getBoolean("Plugin.Debug"); language = yamlConfiguration.getString("Plugin.language"); + InventoriesCloseByServerStop = yamlConfiguration.getBoolean("Player.Inventories.CloseByServerStop"); } } -- 2.34.1 From 5e3a3d290ceb9998f238eca9f19def9dd861cc46 Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Fri, 31 Dec 2021 01:35:09 +0100 Subject: [PATCH 05/13] Update 1.18 Start warning to 1.19 warning --- .../java/net/t2code/lib/Spigot/system/Main.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/t2code/lib/Spigot/system/Main.java b/src/main/java/net/t2code/lib/Spigot/system/Main.java index 267e6bc..4b3bf7e 100644 --- a/src/main/java/net/t2code/lib/Spigot/system/Main.java +++ b/src/main/java/net/t2code/lib/Spigot/system/Main.java @@ -16,6 +16,7 @@ import net.t2code.lib.Util; import net.t2code.lib.Spigot.system.config.SelectLibConfig; import net.t2code.lib.Spigot.system.languages.SelectLibMsg; import org.bukkit.Bukkit; +import org.bukkit.entity.Player; import org.bukkit.plugin.java.JavaPlugin; import java.io.File; @@ -61,8 +62,13 @@ public final class Main extends JavaPlugin { } NMSVersion.onCheck(); MCVersion.onCheck(); - if (MCVersion.minecraft1_18){ - send.warning(this, "The 1.18 is a very fresh / new version. If there are any bugs in our plugins, please report them to us via our Discord: http://dc.t2code.net"); + if (MCVersion.minecraft1_19){ + send.warning(this, "The 1.19 is a very fresh / new version. If there are any bugs in our plugins, please report them to us via our Discord: http://dc.t2code.net"); + try { + Thread.sleep(5000); + } catch (InterruptedException e) { + e.printStackTrace(); + } } ItemVersion.scan(); send.console(Main.prefix + " §3Server run on: §6" + MCVersion.isVersion + " / " + NMSVersion.isNMS); @@ -100,6 +106,11 @@ public final class Main extends JavaPlugin { @Override public void onDisable() { // Plugin shutdown logic + if (SelectLibConfig.InventoriesCloseByServerStop){ + for (Player player : Bukkit.getOnlinePlayers()){ + player.closeInventory(); + } + } Vault.vaultDisable(); T2CodeTemplate.onDisable(prefix, autor, version, spigot, discord); } -- 2.34.1 From f1a5fa94232c393626a8ab8d0e400109be77b5e6 Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Fri, 31 Dec 2021 01:35:31 +0100 Subject: [PATCH 06/13] Code changes --- ...b_8_1.xml => T2CodeLib_9_0_Snapshot_1.xml} | 4 ++-- .../Spigot/Lib/messages/T2CodeTemplate.class | Bin 4699 -> 4957 bytes .../Lib/minecraftVersion/MCVersion.class | Bin 1646 -> 1714 bytes .../net/t2code/lib/Spigot/system/Main.class | Bin 5878 -> 6445 bytes .../Spigot/system/config/ConfigCreate.class | Bin 3334 -> 3390 bytes .../system/config/SelectLibConfig.class | Bin 1283 -> 1390 bytes 6 files changed, 2 insertions(+), 2 deletions(-) rename .idea/artifacts/{T2CodeLib_8_1.xml => T2CodeLib_9_0_Snapshot_1.xml} (59%) diff --git a/.idea/artifacts/T2CodeLib_8_1.xml b/.idea/artifacts/T2CodeLib_9_0_Snapshot_1.xml similarity index 59% rename from .idea/artifacts/T2CodeLib_8_1.xml rename to .idea/artifacts/T2CodeLib_9_0_Snapshot_1.xml index 7d5c3fa..129b600 100644 --- a/.idea/artifacts/T2CodeLib_8_1.xml +++ b/.idea/artifacts/T2CodeLib_9_0_Snapshot_1.xml @@ -1,7 +1,7 @@ - + $PROJECT_DIR$/../../Plugins/T2CodeLib/.jar - + diff --git a/target/classes/net/t2code/lib/Spigot/Lib/messages/T2CodeTemplate.class b/target/classes/net/t2code/lib/Spigot/Lib/messages/T2CodeTemplate.class index f3148104f239c5b4e9be015cb985f301593c07c0..865ca93af1c88d3e9add86cf8b2d034a359b50e9 100644 GIT binary patch delta 1709 zcmbtVTW}Lq82(P0y=1$zHKm0(wQQlJkT%3>Ri-mADpN-ghik*A=&((ewlqz{CaHj8 z)Ox9)7TJ1f6!`|KIt~ z_LtUQ{mM^&U-=F|7p~1IlWsO)&A6i(?Z<3aZz8IvjBNu(WXLczzt*=erKghGuzp9o-hPosAs2+;x@&3^M0n^Z<3_>zy7zqaVh8-Kj z68agMmtNW)PZ_3}PNa-zPusDGkw^`W#1$OIpo$|98EO;eU_3=hM27a8dc=?svqYh} z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Yd30GG{Ynkh z&@dfUh*?g9Hksp8<7-k5I1y;ZYmQ_+_oya~FV)&KqR>Ag;6p)Kn}Hw_B@G?#up9Uh zXC2P%tWvp&#|F?;%9|lCON$rLk}9Gtu>A!(b|JIbvN6x2Sqd;4IC=>lSGp zT>`U4YMM1XM~pdhMC8m7kv&HSe!;JHo#G%TQ76Y>%xN+k8=Ml@!K*@nu3;zLr5geT z`LyEILU-63_7w49FQ$xIZD*2Nut%)B50Thk*x$=3yn+1-wRlZ!*uzxL=cl9c4l$)> zByH4E55u+3Efp}%^7sO?YUb>NHv?mdS0IX&Sk3?2Sc6Wi<)`LNeofY)2kUVT4YpHe%A5Z%^{Kmt;=5Y7#yep)RtQz(~oL*|5R6^BPHLZhI|J@e)gE94X263Lq TYn@pyT#wNiBEbc&xNz|qogXk? diff --git a/target/classes/net/t2code/lib/Spigot/Lib/minecraftVersion/MCVersion.class b/target/classes/net/t2code/lib/Spigot/Lib/minecraftVersion/MCVersion.class index 2d325e4efaa205a9a1f0f234afb7f7098bb6b7eb..d34235f643dab79942cb7dbdc98e23660b028ae9 100644 GIT binary patch delta 267 zcmXwx%Su9F6otR79`)E!A-dm9CkatP6DK`{lO{n#WC&?yW|xO(avmV)4Kz4LgN6NGsA*< zlP~9-oO93K)3w9T^#*j<2KL?5Z}X@;eMn3k1BFFWIMo@;Z_lI^J0zV8-M?P26qjQ4 z>w@ZINCGcCvZ6sCN)fNSq=i`=a`B-*hqY`C FHeaRe9Gd_D diff --git a/target/classes/net/t2code/lib/Spigot/system/Main.class b/target/classes/net/t2code/lib/Spigot/system/Main.class index 78a3e5703719a220a8a35261fd29229a7f8da357..45ffcc7a130d054b4d1dd8d84953bb27b9bb6358 100644 GIT binary patch delta 2870 zcmaJ@3tUs@75|@0lAFgz#7I#Q1Vwp=2v|_5R$eNU01AT8Dh9ZPXh>)hm~>sUx!JkR zc8@!^**&^GHdvkO3|$PmbzQf)uAA+i-MV$Jc3V65wCii?YR|m^Ep8NkoO{0Wo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F42)!2{# delta 839 zcmXw1Sx*yD6#i~oI>T@yGJVhx2=UE;#22DT5u=C?5G0xk3C6?>Wm1qrn@&pwm%8Gv z=!k-fyP~*JMy3U{?x_3%e}iv67!zaEGq*95x!<{G`ObGvZmx8wR9XBpmjh6P#k4Zu zRTQ)!&XGXB`Q2O2_L#-e^714GIrhTKP#leQ_r(KoE!eX?rUi8w`^^Sv(~1TraiY-N-A)m7#@#^CBT6dcD12`4#9aLSzXR;LQlhBF*zv4f$Y zLGMU}WSnP^^uAEI+vsw_7dS48aPL51TeFNy4DR+V%}(et#})V~JrIw?v=C_;6GDPo zxGQ4Bos?@F*PRqscT~X*+>~(3>3*A`WVhCDHp*4ryBzm$-yD=Hc1|$JomyP$&(Lz7@u-Ha~M4dLyyUrqLQd)7|BSi(tfh1NSDH2HS1yW0a#4T{foKz~BvShCYqYo&k%z&lIaAB5C zuW)kAk?!aKYt#xU*W1LeE0K>l)gexqK(l4XC1$xVg?pF|IqNl1Di zLm>|JW diff --git a/target/classes/net/t2code/lib/Spigot/system/config/SelectLibConfig.class b/target/classes/net/t2code/lib/Spigot/system/config/SelectLibConfig.class index a997acb2d820a02fbf48c8a5aad7dc7fa2de5099..b0c1611638589d522c85d5f19993a9805448c15c 100644 GIT binary patch delta 332 zcmZqXddJ0e>ff$?3=9k=3_csV*qDPk7;G3BR047mD^rW~JoCy@^GfoIGE>0Ef8Dx-DVkq1!z|78A&%(gTpv9mKw2G6#07_dj zSb_OKGk`P`10w?~0~?TZ0P^&KG$W8^)!NR$xDhPv2qZz$3=A9$PC$|eqJY7f!3D_U zWN?LR?qOg78ppuku$zHBat8ya5dY*p7OiM)A?s}nGCLR)HZ#~FjFe+w2Pze0;AId3 xLJ#W2;>O?(R4c@w$Kb)>33j0ukk7>64FJ|CG~NIJ delta 195 zcmaFI)y&0p>ff$?3=9k=4DK7b*qApbGqW=?GEdHCkqlvCU}RurU;~oYKn40hnh{8| zYHep=+z4baG1ve}kTe4W2ZJq;#URRH%peXnQ4FYymqDGuk--V5PKZH?!I{AY>=0KVpNYW@ E0Ey}ocmMzZ -- 2.34.1 From 9d0902f611147cd003d725108d027b2c14869b1e Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Fri, 31 Dec 2021 02:17:24 +0100 Subject: [PATCH 07/13] Code changes --- pom.xml | 2 +- .../java/net/t2code/lib/Bungee/BMain.java | 10 ++--- .../lib/Spigot/Lib/update/UpdateAPI.java | 1 + .../t2code/lib/Spigot/system/JoinEvent.java | 2 +- .../net/t2code/lib/Spigot/system/Main.java | 24 +++++++++--- .../lib/Spigot/system/UpdateChecker.java | 33 ++++++++++++++++ src/main/java/net/t2code/lib/Util.java | 36 +++++++++++++++--- target/classes/bungee.yml | 2 +- .../classes/net/t2code/lib/Bungee/BMain.class | Bin 2248 -> 2362 bytes .../lib/Spigot/Lib/update/UpdateAPI$1.class | Bin 986 -> 986 bytes .../lib/Spigot/Lib/update/UpdateAPI$2.class | Bin 1417 -> 1417 bytes .../lib/Spigot/Lib/update/UpdateAPI$3$1.class | Bin 1412 -> 1412 bytes .../lib/Spigot/Lib/update/UpdateAPI$3.class | Bin 3727 -> 3727 bytes .../lib/Spigot/Lib/update/UpdateAPI.class | Bin 8636 -> 8636 bytes .../t2code/lib/Spigot/system/JoinEvent.class | Bin 1201 -> 1227 bytes .../net/t2code/lib/Spigot/system/Main.class | Bin 6445 -> 7797 bytes .../lib/Spigot/system/UpdateChecker.class | Bin 0 -> 3105 bytes target/classes/net/t2code/lib/Util.class | Bin 939 -> 1438 bytes target/classes/plugin.yml | 2 +- 19 files changed, 92 insertions(+), 20 deletions(-) create mode 100644 src/main/java/net/t2code/lib/Spigot/system/UpdateChecker.java create mode 100644 target/classes/net/t2code/lib/Spigot/system/UpdateChecker.class diff --git a/pom.xml b/pom.xml index 2dd2510..d89e68b 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ net.t2code T2CodeLib - 9.0_Snapshot_1 + 9.0 jar T2CodeLib diff --git a/src/main/java/net/t2code/lib/Bungee/BMain.java b/src/main/java/net/t2code/lib/Bungee/BMain.java index d56d855..1a7ea3b 100644 --- a/src/main/java/net/t2code/lib/Bungee/BMain.java +++ b/src/main/java/net/t2code/lib/Bungee/BMain.java @@ -12,11 +12,11 @@ public final class BMain extends Plugin { public static String Version; public static String Autor; - public static String Prefix = Util.Prefix; - public static Integer SpigotID = Util.SpigotID; - public static Integer BstatsID = Util.BstatsID; - public static String Spigot = Util.Spigot; - public static String Discord = Util.Discord; + public static String Prefix = Util.getPrefix(); + public static Integer SpigotID = Util.getSpigotID(); + public static Integer BstatsID = Util.getBstatsID(); + public static String Spigot = Util.getSpigot(); + public static String Discord = Util.getDiscord(); @Override diff --git a/src/main/java/net/t2code/lib/Spigot/Lib/update/UpdateAPI.java b/src/main/java/net/t2code/lib/Spigot/Lib/update/UpdateAPI.java index f7895bd..01281a7 100644 --- a/src/main/java/net/t2code/lib/Spigot/Lib/update/UpdateAPI.java +++ b/src/main/java/net/t2code/lib/Spigot/Lib/update/UpdateAPI.java @@ -6,6 +6,7 @@ import net.md_5.bungee.api.chat.TextComponent; import net.t2code.lib.Spigot.Lib.messages.TextBuilder; import net.t2code.lib.Spigot.Lib.messages.send; +import net.t2code.lib.Spigot.system.Main; import net.t2code.lib.Spigot.system.config.SelectLibConfig; import org.bukkit.Bukkit; import org.bukkit.entity.Player; diff --git a/src/main/java/net/t2code/lib/Spigot/system/JoinEvent.java b/src/main/java/net/t2code/lib/Spigot/system/JoinEvent.java index 6b109a2..9fac496 100644 --- a/src/main/java/net/t2code/lib/Spigot/system/JoinEvent.java +++ b/src/main/java/net/t2code/lib/Spigot/system/JoinEvent.java @@ -14,6 +14,6 @@ public class JoinEvent implements Listener { @EventHandler public void onJoinEvent(PlayerLoginEvent event) { Player player = event.getPlayer(); - UpdateAPI.join(Main.plugin, Util.Prefix, "t2code.lib.updatemsg", event.getPlayer(), Main.spigot, Main.discord); + UpdateAPI.join(Main.plugin, Util.getPrefix(), "t2code.lib.updatemsg", event.getPlayer(), Main.spigot, Main.discord); } } \ No newline at end of file diff --git a/src/main/java/net/t2code/lib/Spigot/system/Main.java b/src/main/java/net/t2code/lib/Spigot/system/Main.java index 4b3bf7e..fc4fae4 100644 --- a/src/main/java/net/t2code/lib/Spigot/system/Main.java +++ b/src/main/java/net/t2code/lib/Spigot/system/Main.java @@ -21,6 +21,7 @@ import org.bukkit.plugin.java.JavaPlugin; import java.io.File; import java.util.List; +import java.util.Objects; public final class Main extends JavaPlugin { @@ -35,11 +36,11 @@ public final class Main extends JavaPlugin { public static List autor; public static String version; - public static String prefix = Util.Prefix; - public static Integer spigotID = Util.SpigotID; - public static Integer bstatsID = Util.BstatsID; - public static String spigot = Util.Spigot; - public static String discord = Util.Discord; + public static String prefix = Util.getPrefix(); + public static Integer spigotID = Util.getSpigotID(); + public static Integer bstatsID = Util.getBstatsID(); + public static String spigot = Util.getSpigot(); + public static String discord = Util.getDiscord(); @Override public void onEnable() { @@ -47,8 +48,19 @@ public final class Main extends JavaPlugin { plugin = this; autor = plugin.getDescription().getAuthors(); version = plugin.getDescription().getVersion(); + UpdateAPI.onUpdateCheck(plugin, prefix, spigot, spigotID, discord); + new UpdateChecker(this, 12345).getVersion(ver -> { + if (this.getDescription().getVersion().equals(version)) { + if (Double.parseDouble(ver) < Double.parseDouble(version)) { + send.console(prefix + " §4 §e-------------------"); + send.console(prefix + " §eYou are running §4" + version + " §eof " + prefix + "§e! §4This is a trial version! §eSome features may not be working as expected. Please report all bugs here: http://dc.t2code.net §4UpdateChecker & bStats may be disabled!"); + send.console(prefix + " §4 §e-------------------"); + } + } + }); Long long_; long_ = T2CodeTemplate.onLoadHeader(prefix, autor, version, spigot, discord); + //send.console("§4 _|_|_|_|_| _|_| _|_|_| _| "); //send.console("§4 _| _| _| _| _|_| _|_|_| _|_| "); //send.console("§4 _| _| _| _| _| _| _| _|_|_|_| "); @@ -97,7 +109,7 @@ public final class Main extends JavaPlugin { LanguagesCreate.langCreate(); SelectLibConfig.onSelect(); SelectLibMsg.onSelect(prefix); - UpdateAPI.onUpdateCheck(plugin, prefix, spigot, spigotID, discord); + Metrics.Bstats(plugin, bstatsID); Bukkit.getServer().getPluginManager().registerEvents(new JoinEvent(), plugin); T2CodeTemplate.onLoadFooter(prefix, long_); diff --git a/src/main/java/net/t2code/lib/Spigot/system/UpdateChecker.java b/src/main/java/net/t2code/lib/Spigot/system/UpdateChecker.java new file mode 100644 index 0000000..c4f092d --- /dev/null +++ b/src/main/java/net/t2code/lib/Spigot/system/UpdateChecker.java @@ -0,0 +1,33 @@ +package net.t2code.lib.Spigot.system; + +import org.bukkit.Bukkit; +import org.bukkit.plugin.Plugin; +import org.bukkit.plugin.java.JavaPlugin; + +import java.io.IOException; +import java.io.InputStream; +import java.net.URL; +import java.util.Scanner; +import java.util.function.Consumer; + +public class UpdateChecker { + private final JavaPlugin plugin; + private final int resourceId; + + public UpdateChecker(JavaPlugin plugin, int resourceId) { + this.plugin = plugin; + this.resourceId = resourceId; + } + + public void getVersion(final Consumer consumer) { + Bukkit.getScheduler().runTaskAsynchronously(this.plugin, () -> { + try (InputStream inputStream = new URL("https://api.spigotmc.org/legacy/update.php?resource=" + this.resourceId).openStream(); Scanner scanner = new Scanner(inputStream)) { + if (scanner.hasNext()) { + consumer.accept(scanner.next()); + } + } catch (IOException exception) { + plugin.getLogger().info("Unable to check for updates: " + exception.getMessage()); + } + }); + } +} diff --git a/src/main/java/net/t2code/lib/Util.java b/src/main/java/net/t2code/lib/Util.java index 498f2ba..b38bef5 100644 --- a/src/main/java/net/t2code/lib/Util.java +++ b/src/main/java/net/t2code/lib/Util.java @@ -1,9 +1,35 @@ package net.t2code.lib; public class Util { - public static String Prefix = "§8[§4T2Code§5Lib§8]"; - public static Integer SpigotID = 96388; - public static Integer BstatsID = 12518; - public static String Spigot = "https://www.spigotmc.org/resources/" + SpigotID; - public static String Discord = "http://dc.t2code.net"; + private static Boolean Snapshot = true; + + private static String Prefix = "§8[§4T2Code§5Lib§8]"; + private static Integer SpigotID = 96388; + private static Integer BstatsID = 12518; + private static String Spigot = "https://www.spigotmc.org/resources/" + SpigotID; + private static String Discord = "http://dc.t2code.net"; + + public static String getPrefix() { + return Prefix; + } + + public static Integer getSpigotID() { + return SpigotID; + } + + public static Integer getBstatsID() { + return BstatsID; + } + + public static String getSpigot() { + return Spigot; + } + + public static String getDiscord() { + return Discord; + } + + public static Boolean getSnapshot(){ + return Snapshot; + } } diff --git a/target/classes/bungee.yml b/target/classes/bungee.yml index 4329b66..742d3ec 100644 --- a/target/classes/bungee.yml +++ b/target/classes/bungee.yml @@ -1,5 +1,5 @@ name: T2CodeLib -version: 9.0_Snapshot_1 +version: 9.0 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/Bungee/BMain.class b/target/classes/net/t2code/lib/Bungee/BMain.class index 6513b3a6ecbfd52de20caa1925862a77c7c1c1e8..5e14011d6af9348afd092958c8dca78471ec2cc7 100644 GIT binary patch delta 413 zcmYL@%}T>S6otJg(KVRfNf+L5XGY}j&mL5cU z1t;M?_lm}X#r|1q?={aYv#FoI`2uJ#nx@*?Kcvg0$749qg}iHS9n~FOJGu#Va&^}e zM;#>q9n4TuDH8OBlhM#;Aayzx@WxO&#e1~vg;npN>9hs3@CgT$$Z$$o(B$l&x3%+r zY`qh2t@`2EuMGDeezz*0&sZf_@1x&vZs=Gp3{RH8@NB6WUMyFJS4+hOS5fdd%#j?( RNboE diff --git a/target/classes/net/t2code/lib/Spigot/Lib/update/UpdateAPI$1.class b/target/classes/net/t2code/lib/Spigot/Lib/update/UpdateAPI$1.class index a2f2a0fbff89c419f241d589a257645446e881e2..41eb840817dc0faa397eaf5f663084e2efc3d571 100644 GIT binary patch delta 23 ecmcb`ev5sBH#4KsWFO{WR#gUR2DQmcn9TrERR#0_ delta 23 ecmcb`ev5sBH#4K+WFO{WRuu+m2Gz++n9TrEI0f+l diff --git a/target/classes/net/t2code/lib/Spigot/Lib/update/UpdateAPI$2.class b/target/classes/net/t2code/lib/Spigot/Lib/update/UpdateAPI$2.class index 84769dcf7ee6ac0959ec31c138a5111b33617faa..45e56786753425ba03153daea109a6fa8b936d40 100644 GIT binary patch delta 31 mcmeC=?&RKZiG@*T@@1ARUVR2W1_K6h215oT29wENto8tf0tWd2 delta 31 mcmeC=?&RKZiG@*n@@1ARUOfgr27Lx`1_K5o2II+Ito8tezXtRG diff --git a/target/classes/net/t2code/lib/Spigot/Lib/update/UpdateAPI$3$1.class b/target/classes/net/t2code/lib/Spigot/Lib/update/UpdateAPI$3$1.class index ff4b6e0de1bd5140d95e221905592de83f67bddc..cb0ac2faee86917706cd0c1d884ff87a428e6eb9 100644 GIT binary patch delta 23 ecmZqSZsFc=pM^1L@&lGc)>H<0hP26UtabohCI~iA4s|4LdtXVz4$%P@ALgUXaXq@ON=bhA$n zNr6Ao$Gg0KFu)If{uoq#`@LltJ7J|6k=%JQh+t)bJfbRYOj?#G;wJTJOlz^27%o%A zia4!`!?x5Vq;5^{n}S^z6LVuwHBLP98e*1=pO_HOT_>H delta 342 zcmWNM+bhFy7>A!@cKV;N&%&Zk97xgdv|6$%$@S`N{i5BZWqxNs`U zp?1q(A-VA%NV(!d%G+D-&HKL3=Xsy}PyWYO-DxEm8+Hs_C{*A2 zt+|Ly%FuDE8_Tc7gOv)|tfU4nJybDDHOu(o&pCaXyOt#C1Y1u!4ftrJgC=@uW{(yw zXyriy-f8DUCO>rYM?eK^cc!4IOeoC=r%sW;G-kr25m7N?$P^`u>-eWJqRq{c$2=u0 z;$}%4Ht`das1-r43v!hJYvQ#bpy5S)#+At6>xrJx0^T5H=><6r&j#fukF5qyGR(-4uQq@j580R$oBNg6?e z2OmIRM!YNT7kimu*_qj4N6M$7e*C_@1K2|+Qol)!eyY=oV~1CP-E;2=bM;1SQ2S(& zkRSA2#}5hm`K>jy%sb0-%kDcT$|6OI@q9RC4M3pHv0 delta 298 zcmYL_O-jR16otPVO+rE_TD7PFt+xIpTK|8CuAsO8L9CXHQrZq&gR}A$;2Ii1#X%RK zyK$~~`w*O*%RBeH@4)>GhC%r8^F9KOxEO?A5)8iUzSr#D-DeLbmpOAOwZ^>Q^*UKQ z?+27vj;NxR-^zNodAAj^O3kMpvBtWPm>Z{JM)D+^=GsXmd46>IaEfxT z`r6egI^E>Ua$iJ63IghK5mpk9~!tra3v=E|@7Vq%Zgdalz6XEB}lV6PlmW lvS}76TUOP2@gECf4meb%OGQs`tlSg*Gj2b%U1zEe=f6?=C`AAO diff --git a/target/classes/net/t2code/lib/Spigot/system/Main.class b/target/classes/net/t2code/lib/Spigot/system/Main.class index 45ffcc7a130d054b4d1dd8d84953bb27b9bb6358..694b43332de3afaf9b859429290bd0304a75776b 100644 GIT binary patch literal 7797 zcmbtZ349dSdH;Va!K{`shrsxT!Nx`sptS&ViBOCHBO+nN62gFOJX(#ULAx{SomoJ> zkHm2j=eE<3ria_KByr-zQX&@9x@pq7ZJIW{(j#r!#y!&eNN?MX`+sj{rCp(w>969) z%$xVV_r32v-hTZDFTD(4lRTS30(A!JP0Yi5!79HnoE|8Sj=EtwpDhl%UiyT6(oP@X zqep)W=I?MlH{2JWy4Om#}4g%es<6)2o^UrcWLTeKfTY*IvTjq#8NC1 zEL6ZwkSVzN(DixjT0&pUUBpxcV2o%vt}t+=iK}q6V9h1&6Qp?Rt;KM}F9d?dGJVC+ z&8EBDAZ%CSy4J*XSRt5a7eimM5iv0hl)`dYCRXA42w}fd2s8`J$_TTzH=OPb3$8b; zQLZ*|BW@BHC(EFX5z?7}O(vQZ;QV~S8FEi6a@Lwyr>6p~D>c<>B8{5`$!Mx`k6>v9 zzD_T6hMfY%y#X5yY%*~RHVc+$UFZ{I2x4%(u;0!W9c?Y03i(zO+cd3%ZjkW{gDJFQ zhk>`5*ohw!w9IZ3T{Na*e$Wn`^dbGawWpI7;d{|n$B2^|74$XLRB?L+1F_^Tp6R@J zs=435tu@Jt4ZDH}r;x%fbSQtK*w)NO&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JPL1kvdi2?-KvOSv6CeVgDE25qMYP9L}pwZDz6!|HgX)7bW)qsfvWDDx%#| zV1-Tzk`i&2G1VIkxkACVW*b>Z2+}24$)*;jcItPLl$1;<>Vee4oHRxVr4!QqfqrN2 z(2gD6kTVW%LD#95Q%jQ_NU%durliRXmq}@>^h%m0DT}hzjK@;aI)sliam-L9d5P_sAa>K)+vRnmM(3uvKAcWh6# z(jr*#8^Sh8%T3|p@fS0MDQsx+Nol)NPXr!aVtOXgn5eu)+?>oYiPqb7f4MYYuX`NNbqaXf5k! zqR^Dj8eh4_#@;BKDK8tBJIyr-JTYKl51p)a@{V{-Dme-|>|su$bxc{$bSkZ9D&r@p zD;^JRK-#!-W>9v$(0@`~fDH zPmkd<#1+Xi6bDVk!=+J-c%pd1@f7dl_m80AzxfPbar(b(ORu#(JmEDFjGn-w92+xH z934-m`&#p3Y#!G~!&kDo%Hsb`sc%BR?Dne@204Pu`Gn(zduGD3j%QEpG@Y_-R(?s3{LrNNNW0Vvl z`xvDXj+0~4QOaP|7)?q5Tb0IW>S1n8C#o=qe{ihCTCC?a!NmLHC}He7k%$Uzj!I;s zns*I+b^)JmL@nlH9u_if;=e^`4P!C8Xl5r%*-Z<&_;cTlHf-kKCAVV*?nFBdU=<$Y z5BL#ukd8IfgtfE->u49&(>`?38EnuT*r?6JCaneC+8}zgFt%v>;L`S^SGxml?QZmG zkHDing{|5N^lL9*o7vOh8t%qgB+@48=B&Cda|dvUZs0+|Lr6P4-ttcEAl*otxtnj| zEX$C5k(1H{biwhFKtp1;K`x+OVE=jaoI{;fbRL8CMOAFG;L-%Z!|@4#<_Lvz%-R;m zX!;n1Sd9Pozm`Bp@u z*vtQ;5o#J`1X0T<-j2|+QPLu`Vw7hXtr|tS5mJ2q#Y4(xJWS_-UWgPFAp^yjhFQpG NtdLH diff --git a/target/classes/net/t2code/lib/Spigot/system/UpdateChecker.class b/target/classes/net/t2code/lib/Spigot/system/UpdateChecker.class new file mode 100644 index 0000000000000000000000000000000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vrU;a?y;9aQG0wB<5RT$WjyrJ*3mnS~!{G=9^)efLLedDC<^_>jy}UQvPTf9g_fV&gT0NBA zLFqocg6;T@7dlDgXpAz9WxPZy(*Da_Pw~m&RlF9{eDMa&7i%=XPR$u~{sG<-<`j$_ zQ84ot6RTB0yMiZ@NzOs=)qWkRW3fOd(hUO1s&XA-T*1>aZQh{S6yC&J9OW*)&AE^8 RF`v&kli|$g_!3{E_ix-UNooK9 literal 0 HcmV?d00001 diff --git a/target/classes/net/t2code/lib/Util.class b/target/classes/net/t2code/lib/Util.class index 608c3e5ab1a713f9778a220fc99827a8f6569293..77ac46e1c184ffb144934412bbfbf9783c2f01bf 100644 GIT binary patch literal 1438 zcmaJ=+fvg|6kVq+O&e07r3FDy5ibRyK?FsLw^Gq+1!q8J)bSy0LkSa-PLcv2;J@&y zbOsom@qtG_#LsZtCu!}4jxT4Qv(MVMwfFw@=lf3p^H>w%gI_>ELJxur{kzJ(BI}A# zme&irYSCc`E^CJ7JYn!BC%3`~AuK?Y&NanqE>Z5!3L8Fv~Ep<2V(2NtO=|4pO#D>|QZt zT4mW%ZL?|>Ra@rhISKbMPvj|;ifWV?W|A!h)w|T1M_W8%YZ?!@i-#SS-ngXyZ}~{V z64KNX$MoDX#FH0I(jh#iA6^j^R4S&t5lhjuF$6ff41IacP}iz^1=ZSA3OZ?Gd9$eK zTZ*OecU>89b~KwIk?%68lt{R&I*n=VrF(NC6K#1ln!&(PjbZfcJsSp*e(K}r!J2c| z?yNC2#KUq?uWy&Q;WlYiX^UJ*E8O0qn*eEAzyZj9`8gB6Y^Cz5MsB_aHobyboRG&`{7u+ta3? zKoBV)kSJ2p@e|a10b*>LdGlu9?3>xWuYFLo&)>HX08y+KHFI2r%FtFVE$&rI(VfUf zK5bV^bII%>l@0>XP^*A*)SX<*I0I?Q3Bp25F;md)fH6*CMi$BuKhY?|p* z*omZQt#HnET=6WY-ASy(vxQXtJT2a&EpaCg$23UvE$w|r^|>uQ9pz0Wso~iL(xYQ`*kWP2$K;*j1DBM`~d^QQf&YL diff --git a/target/classes/plugin.yml b/target/classes/plugin.yml index 32bf696..a3db8b0 100644 --- a/target/classes/plugin.yml +++ b/target/classes/plugin.yml @@ -1,5 +1,5 @@ name: T2CodeLib -version: 9.0_Snapshot_1 +version: 9.0 main: net.t2code.lib.Spigot.system.Main api-version: 1.13 prefix: T2CodeLib -- 2.34.1 From 6cbae613a358082e3ef5c7777f39e11a70437b0e Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Fri, 31 Dec 2021 02:36:03 +0100 Subject: [PATCH 08/13] customizable time interval for the UpdateChecker --- .../lib/Spigot/Lib/update/UpdateAPI.java | 9 ++++---- .../net/t2code/lib/Spigot/system/Main.java | 20 +++++++++--------- .../Spigot/system/config/ConfigCreate.java | 4 +++- .../Spigot/system/config/SelectLibConfig.java | 4 +++- .../lib/Spigot/Lib/update/UpdateAPI$3$1.class | Bin 1412 -> 1412 bytes .../lib/Spigot/Lib/update/UpdateAPI$3.class | Bin 3727 -> 3746 bytes .../lib/Spigot/Lib/update/UpdateAPI.class | Bin 8636 -> 9006 bytes .../net/t2code/lib/Spigot/system/Main.class | Bin 7797 -> 6934 bytes .../Spigot/system/config/ConfigCreate.class | Bin 3390 -> 3599 bytes .../system/config/SelectLibConfig.class | Bin 1390 -> 1611 bytes 10 files changed, 21 insertions(+), 16 deletions(-) diff --git a/src/main/java/net/t2code/lib/Spigot/Lib/update/UpdateAPI.java b/src/main/java/net/t2code/lib/Spigot/Lib/update/UpdateAPI.java index 01281a7..983e409 100644 --- a/src/main/java/net/t2code/lib/Spigot/Lib/update/UpdateAPI.java +++ b/src/main/java/net/t2code/lib/Spigot/Lib/update/UpdateAPI.java @@ -82,9 +82,12 @@ public class UpdateAPI { private static Boolean noUpdate = true; public static void onUpdateCheck(Plugin plugin, String Prefix, String Spigot, int SpigotID, String Discord) { + onUpdateCheck(plugin, Prefix, Spigot, SpigotID, Discord, 60); + } + + public static void onUpdateCheck(Plugin plugin, String Prefix, String Spigot, int SpigotID, String Discord, Integer timeInMin) { int taskID = Bukkit.getScheduler().scheduleSyncRepeatingTask(plugin, new Runnable() { public void run() { - (new UpdateAPI((JavaPlugin) plugin, SpigotID)).getVersion((update_version) -> { UpdateObject update = new UpdateObject( plugin.getName(), @@ -92,7 +95,6 @@ public class UpdateAPI { update_version ); UpdateAPI.PluginVersionen.put(plugin.getName(), update); - if (!plugin.getDescription().getVersion().equalsIgnoreCase(update_version)) { noUpdate = true; new BukkitRunnable() { @@ -102,7 +104,6 @@ public class UpdateAPI { } }.runTaskLater(plugin, 600L); } else { - if (noUpdate) { send.console(Prefix + " §2No update found."); noUpdate = false; @@ -110,7 +111,7 @@ public class UpdateAPI { } }, Prefix, plugin.getDescription().getVersion()); } - }, 0L, 20 * 60 * 60L); + }, 0L, timeInMin * 60 * 20L); } private JavaPlugin plugin; diff --git a/src/main/java/net/t2code/lib/Spigot/system/Main.java b/src/main/java/net/t2code/lib/Spigot/system/Main.java index fc4fae4..a60e136 100644 --- a/src/main/java/net/t2code/lib/Spigot/system/Main.java +++ b/src/main/java/net/t2code/lib/Spigot/system/Main.java @@ -48,18 +48,17 @@ public final class Main extends JavaPlugin { plugin = this; autor = plugin.getDescription().getAuthors(); version = plugin.getDescription().getVersion(); - UpdateAPI.onUpdateCheck(plugin, prefix, spigot, spigotID, discord); - new UpdateChecker(this, 12345).getVersion(ver -> { - if (this.getDescription().getVersion().equals(version)) { - if (Double.parseDouble(ver) < Double.parseDouble(version)) { - send.console(prefix + " §4 §e-------------------"); - send.console(prefix + " §eYou are running §4" + version + " §eof " + prefix + "§e! §4This is a trial version! §eSome features may not be working as expected. Please report all bugs here: http://dc.t2code.net §4UpdateChecker & bStats may be disabled!"); - send.console(prefix + " §4 §e-------------------"); - } - } - }); Long long_; long_ = T2CodeTemplate.onLoadHeader(prefix, autor, version, spigot, discord); + if (Util.getSnapshot()){ + send.console(prefix + " §eYou are running §4" + version + " §eof " + prefix + "§e! §4This is a trial version! §eSome features may not be working as expected. Please report all bugs here: http://dc.t2code.net §4UpdateChecker & bStats may be disabled!"); + send.console(prefix + " §4 §e-------------------"); + try { + Thread.sleep(5000); + } catch (InterruptedException e) { + e.printStackTrace(); + } + } //send.console("§4 _|_|_|_|_| _|_| _|_|_| _| "); //send.console("§4 _| _| _| _| _|_| _|_|_| _|_| "); @@ -109,6 +108,7 @@ public final class Main extends JavaPlugin { LanguagesCreate.langCreate(); SelectLibConfig.onSelect(); SelectLibMsg.onSelect(prefix); + UpdateAPI.onUpdateCheck(plugin, prefix, spigot, spigotID, discord); Metrics.Bstats(plugin, bstatsID); Bukkit.getServer().getPluginManager().registerEvents(new JoinEvent(), plugin); diff --git a/src/main/java/net/t2code/lib/Spigot/system/config/ConfigCreate.java b/src/main/java/net/t2code/lib/Spigot/system/config/ConfigCreate.java index 5a5a369..c7f1286 100644 --- a/src/main/java/net/t2code/lib/Spigot/system/config/ConfigCreate.java +++ b/src/main/java/net/t2code/lib/Spigot/system/config/ConfigCreate.java @@ -12,6 +12,7 @@ import java.io.IOException; public class ConfigCreate { private static Boolean UpdateCheckOnJoin = true; + private static Integer UpdateCheckTimeInterval = 60; private static Boolean Debug = false; private static String language = "english"; @@ -38,7 +39,8 @@ public class ConfigCreate { File config = new File(Main.getPath(), "config.yml"); YamlConfiguration yamlConfiguration = YamlConfiguration.loadConfiguration(config); - Config.set("Plugin.UpdateCheckOnJoin", UpdateCheckOnJoin, yamlConfiguration); + Config.set("Plugin.UpdateCheck.OnJoin", UpdateCheckOnJoin, yamlConfiguration); + Config.set("Plugin.UpdateCheck.TimeInterval", UpdateCheckTimeInterval, yamlConfiguration); Config.set("Plugin.language", language, yamlConfiguration); Config.set("BungeeCord.Enable", Bungee, yamlConfiguration); diff --git a/src/main/java/net/t2code/lib/Spigot/system/config/SelectLibConfig.java b/src/main/java/net/t2code/lib/Spigot/system/config/SelectLibConfig.java index f57a2fc..9769ca1 100644 --- a/src/main/java/net/t2code/lib/Spigot/system/config/SelectLibConfig.java +++ b/src/main/java/net/t2code/lib/Spigot/system/config/SelectLibConfig.java @@ -9,6 +9,7 @@ public class SelectLibConfig { public static Boolean UpdateCheckOnJoin; + public static Integer UpdateCheckTimeInterval; public static Boolean Debug; public static String language; public static Boolean InventoriesCloseByServerStop; @@ -17,7 +18,8 @@ public class SelectLibConfig { File config = new File(Main.getPath(), "config.yml"); YamlConfiguration yamlConfiguration = YamlConfiguration.loadConfiguration(config); - UpdateCheckOnJoin = yamlConfiguration.getBoolean("Plugin.UpdateCheckOnJoin"); + UpdateCheckOnJoin = yamlConfiguration.getBoolean("Plugin.UpdateCheck.OnJoin"); + UpdateCheckTimeInterval = yamlConfiguration.getInt("Plugin.UpdateCheck.TimeInterval"); Debug = yamlConfiguration.getBoolean("Plugin.Debug"); language = yamlConfiguration.getString("Plugin.language"); InventoriesCloseByServerStop = yamlConfiguration.getBoolean("Player.Inventories.CloseByServerStop"); diff --git a/target/classes/net/t2code/lib/Spigot/Lib/update/UpdateAPI$3$1.class b/target/classes/net/t2code/lib/Spigot/Lib/update/UpdateAPI$3$1.class index cb0ac2faee86917706cd0c1d884ff87a428e6eb9..d429c197163e4c52ce6e7cdb683fe6b4dd080ff9 100644 GIT binary patch delta 23 ecmZqSZsFc=pM^1H@&lGc)^rAWhK$K>tabohUH<0hP26UtabohCI-PZPc?5eg8@SUg9Sr0 zgEd3pWES4tx-kr_46zK{3~>xn42cYy3`q=D49N^m3@Hqu44Diu4A~5+3^@$d47m)= L35GR_w!WqMlcvKL@-!06igQ9-K`tR zz{(KCz|9cNAjJ^JpvjQHV8xKg;KY!`5Xz9w5W|qgkjjwFP|c9T(9DoO`9JSs09-Z} AFaQ7m diff --git a/target/classes/net/t2code/lib/Spigot/Lib/update/UpdateAPI.class b/target/classes/net/t2code/lib/Spigot/Lib/update/UpdateAPI.class index 4ec74357aadbc4d4ec55594928f06b0338d77050..da2a32823eeba3ded84371e435a0819b45f97da7 100644 GIT binary patch delta 2742 zcmZuz3v`p^8Ghc}{`Ak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i92|tJ{ zWC|q%@1s~MDfx8kavQyQT-&_xOQL?L#htU)8651FT*-{)q${1URj6bEHXuPAgs%9(_7?ho_W}-dYR6z zq`JILf-AH9s$mRPRqw@~s!4mX@4M(lnjhD5-N3wW;O*Y1v#3bB$qcEYI{`FDRTlZ` zNhB=CPO4dh3e(S=70*JdeSFC+XY*mm1b||6NJ;Kut+kPzr_j#K z_NDO06gr0S=M?_Z;2yz|PIWVXYw%c}6kghjV6_rn-H$h1*a54-t3HqKfZ1SJUdu?~ zUzYb^=B%7v?!zdt+$sD=nb6qsDihB^%bh$7Uq;iWB2{#%&ZO{BO;PtS{@dW$jpEFS z!u#LK^v9Q(jBA;2(J3wpW1KtFPKj%f)zzX2&3vF2U@-}L3{!9wr~VkaaUFWO13$;j zNS?^Fd_BUd9W?t1U4P24{TTr^6Jiq~ZYIcWgt-OnxD_k#3v%X{1l&r{cw23uT_>%V?G_qglR; zYL+OzjB4g2bM$=n!#ss1POX6>^9>vuC(R85E(33--@CMm8VDEPNw~(DspoqpS~;pz(ZZPSaNnGHvl_wi2*vJw;v0gfaZCH99~WyCUzw$(!vZQ? za)~VD&J<)3&)Vfj{J)GRvl!-F?&{a1SJFn7%Zet8G&q~DPcE-k|74|f$`!D_0i?Cm A&Hw-a diff --git a/target/classes/net/t2code/lib/Spigot/system/Main.class b/target/classes/net/t2code/lib/Spigot/system/Main.class index 694b43332de3afaf9b859429290bd0304a75776b..dd49c942500374c321db4806ca59586ce81b697f 100644 GIT binary patch delta 3057 zcmaJ@33yaj75>kgWZs*Zn{5&TB`ZNl$kItzl8}Tgtbqhl0)(W{Fquq}A;}EPOpvbQ zQY}?0wpYPWvC>v!ZM9`mhZm@|trc3-T6e2$sa>putMX+Qb?(Z>PIrJaZEQ1{k3*1z(N&^ z1Quh7yj#pFRk4&X`9sZ?aM0)PsUP(9cX@+$)Wc#7D+E?zm3&aGEm_U#`A-dd+X936 z?w~h6IOzAY1+(UAXym*NVW2x-!&>P~k4|IjW`S!^K+w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D@I9~P9OOj~65_`|;LUZO zV>1Gf`yz6rfW`6Vm3jp*#$in2vM&-?Dz;z8ub_NV{R*C1NBpn0OvD?OOycqhT%$L0 zymA6Ja6FDR<7gSj`bo5nV@nC!FJRY^mL)fDJBQsZFJUh*iB1j0t=vIaLUnbOaK~9B zyVp(PNC|h9V2@+)46bNt94X<%GUQ7rOs}85fQOEp!z08qiANjX$;UXJRKxe^;rsZU z#0N_F@Hn1*1uyY=9%lsI^q~e_L}4EwAzK zC-ILL@O|3FzfI!bOL(0MD#<+BNJ&!4G-V-;vLs7Na>aSMMsPt^962Wzm(I(oI$pV~ zSzD4DU!(`$$vfVAc-dRT19+J4I_(!PU@d**X4KQq7xTxDYq61|O|EdKf#+Vw@z<~=vF3H;wyxR0JqOCM0?$RU0(-`#S*x+BB1pJ8Ny2#x%|B)f6W9 zyV_!GX1dtIe_JuaAI=`bjwwb-ajZBsdWg!56gLm@IsudN@RUXl$Dw|WOyF7m|7J;! zPAI=PK7sWm$xO(?k_=6tr6leIwkSHHR1gV$6(w{%Q`;IWL=%?rH^i&a0*flBlSc@f gkVoY)zL{&}an8L*-X|ZB4{|2OnGeZFXv$apFGV%`n*aa+ diff --git a/target/classes/net/t2code/lib/Spigot/system/config/ConfigCreate.class b/target/classes/net/t2code/lib/Spigot/system/config/ConfigCreate.class index 78d509068284d3abf39959fe8f145c143ecab781..d073febb51f65c255b1742f7078c1c1b240b3830 100644 GIT binary patch delta 1322 zcmZuwYjYD-7=BKYW;fwXO1IEbY;h{i2&ER8L7XXgp=rmlRt8P!P?XVax^7}Oo4C6H zt3pJPdO<5e z#V~|X4g+^GG|vg2>*McIo8ocYh78B;$olK*+G8T#G@P{qenV)9e<7x=Sw5si(fCv4l=&I;$j)$?w z|0CMQ9`WmyMQsy!jN@@ci9o^0+Fr`j(_@2whR@KttlvK$YHfU$A(V6Dcpe87925m#@RRDQ(jkt+f=OMkF;X;Dyv(2&wrOSE zjA;E;j@RUMZaj7KfQq9G;o+MG#MK)d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&&$D2cP%uEbi@bg1XXCJ&#*+Pb>Q!CCr8 zW*BI&w#hpCkeC)`cay_zlc(+HtdMU6`N^D??n?On-(Bo zdo+Y2_OXD>od1&jO2BLOiGVj3slQsB3V7FkKi~uVqkvEB>40GF;umu;ZnpwT`iYEC yiUH<}zd+_*DE12a+G(eg#azXeT*nd-U@14z!CFyjy_^iw#T`Pz;G!f(xb#2#YXC(6 diff --git a/target/classes/net/t2code/lib/Spigot/system/config/SelectLibConfig.class b/target/classes/net/t2code/lib/Spigot/system/config/SelectLibConfig.class index b0c1611638589d522c85d5f19993a9805448c15c..d8f114d254e015d2ea440317aed723a2aecf7840 100644 GIT binary patch delta 568 zcmZvYTTc^F6otPtw6&caLTqV)K$J8lA`@B>ELTx(YM~-m6?ht9G9aZPq$MOg@ap@# z@+X=mNF*^n!>{0(#PAD@d&V0HyzF)M+Iye1_Wog>YxC^q*Ka^Ct5tJLHMYzaEAD0~ zv$V5rm!0tqXKgFveO8yb`?nMpH@BU9sqF0T*+r8iSc_CzhNo=35I;eh*M)0-OnQ1Cb;m@vX2~K_wXO{DP{=!(djTUxp}i67}x} z=2?&|#^S%>BSO*-g;Vb$ls?Fu@T5kc6(2gL?S%Fk&#d^1W5#N{wBl2L$-;k`v`9dl qdJ+koSBDoG(jmu<{E{q;bmt delta 377 zcmYL^%Sr-K9L9e~$IA>O(o}XKB-#`XXr*23qLy}V(WXU9t6>U7T4dYSLA!YpkxUAD zfO>)6A?OjJzoQffzVCeB`Tm#lVSXFN`_Ic8kmI;z)YS0!NxkV_H`1p!m(^RReC1r! zya)AFFb96cId8f;vt&%>u@xcTiL$7O4>I*?!);bw$6%D4$r8)nT`(VBHOaH)Jq2gf zhW8n?wSq~p9nt30y@pN-TlUa`B%l%{~YI#)qN<9Q^|Cu{-Vn -- 2.34.1 From 07293cded4f62a1df9feb27cea2178202e4f6198 Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Fri, 31 Dec 2021 05:23:57 +0100 Subject: [PATCH 09/13] Recode / info --- .../Spigot/Lib/messages/T2CodeTemplate.java | 32 +++++++++++++------ 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/src/main/java/net/t2code/lib/Spigot/Lib/messages/T2CodeTemplate.java b/src/main/java/net/t2code/lib/Spigot/Lib/messages/T2CodeTemplate.java index 238053a..74f5e41 100644 --- a/src/main/java/net/t2code/lib/Spigot/Lib/messages/T2CodeTemplate.java +++ b/src/main/java/net/t2code/lib/Spigot/Lib/messages/T2CodeTemplate.java @@ -2,6 +2,7 @@ package net.t2code.lib.Spigot.Lib.messages; import net.md_5.bungee.api.chat.ClickEvent; import net.md_5.bungee.api.chat.TextComponent; +import net.t2code.lib.Spigot.Lib.replace.Replace; import net.t2code.lib.Spigot.Lib.update.UpdateAPI; import net.t2code.lib.Spigot.system.Main; import org.bukkit.Bukkit; @@ -78,19 +79,30 @@ public class T2CodeTemplate { public static void sendInfo(CommandSender sender, String prefix, String spigot, String discord, List autor, String pluginVersion, String publicVersion) { send.sender(sender, prefix + "§4======= " + prefix + " §4======="); send.sender(sender, prefix + " §2Autor: §6" + String.valueOf(autor).replace("[", "").replace("]", "")); + if (sender instanceof Player) { - if (publicVersion.equalsIgnoreCase(pluginVersion)) { - send.sender(sender, prefix + " §2Version: §6" + pluginVersion); - } else { - if (sender instanceof Player) { - Player player = (Player) sender; - UpdateAPI.sendUpdateMsg(prefix, spigot, discord, pluginVersion, publicVersion, player); + TextComponent comp2 = new TextBuilder(prefix + " §2Version: §6" + pluginVersion) + .addHover("§8Click to copy").addClickEvent(ClickEvent.Action.COPY_TO_CLIPBOARD, Replace.removeColorCode(prefix) +" - "+ pluginVersion).build(); + sender.spigot().sendMessage(comp2); + if (!publicVersion.equalsIgnoreCase(pluginVersion)) { + UpdateAPI.sendUpdateMsg(prefix, spigot, discord, pluginVersion, publicVersion, (Player) sender); } + TextComponent comp3 = new TextBuilder(prefix + " §2Spigot: §6" + spigot) + .addHover("§8Open Spigot").addClickEvent(ClickEvent.Action.OPEN_URL, spigot).build(); + sender.spigot().sendMessage(comp3); + TextComponent comp4 = new TextBuilder(prefix + " §2Discord: §6" + discord) + .addHover("§8Open Discord").addClickEvent(ClickEvent.Action.OPEN_URL, discord).build(); + sender.spigot().sendMessage(comp4); + } else { + if (publicVersion.equalsIgnoreCase(pluginVersion)) { + send.sender(sender, prefix + " §2Version: §6" + pluginVersion); + } else { + UpdateAPI.sendUpdateMsg(prefix, spigot, discord, pluginVersion, publicVersion); + } + send.sender(sender, prefix + " §2Spigot: §6" + spigot); + send.sender(sender, prefix + " §2Discord: §6" + discord); + } - send.sender(sender, prefix + " §2Spigot: §6" + spigot); - send.sender(sender, prefix + " §2Discord: §6" + discord); send.sender(sender, prefix + "§4======= " + prefix + " §4======="); } - - } -- 2.34.1 From 3c6bb074d80586f5fdb57ee33ca3996e040d8be0 Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Fri, 31 Dec 2021 05:26:45 +0100 Subject: [PATCH 10/13] commands change - add permission for '/t2c debug createReportLog' - add '/t2c info' --- .../t2code/lib/Spigot/system/CmdExecuter.java | 31 ++++++++++++------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/src/main/java/net/t2code/lib/Spigot/system/CmdExecuter.java b/src/main/java/net/t2code/lib/Spigot/system/CmdExecuter.java index ae004f6..79421d9 100644 --- a/src/main/java/net/t2code/lib/Spigot/system/CmdExecuter.java +++ b/src/main/java/net/t2code/lib/Spigot/system/CmdExecuter.java @@ -4,6 +4,7 @@ import net.md_5.bungee.protocol.packet.Commands; import net.t2code.lib.Spigot.Lib.messages.T2CodeTemplate; import net.t2code.lib.Spigot.Lib.messages.send; import net.t2code.lib.Spigot.Lib.update.UpdateAPI; +import net.t2code.lib.Util; import org.bukkit.Bukkit; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; @@ -22,29 +23,36 @@ import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; public class CmdExecuter implements CommandExecutor, TabCompleter { - private static Plugin plugin = Main.plugin; - private static String prefix = Main.prefix; - private static List autor = Main.autor; - private static String version = Main.version; - private static String spigot = Main.spigot; - private static String discord = Main.discord; @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { + if (!sender.hasPermission("t2code.admin")){ + send.sender(sender,"§4No Permission §8t2code.admin"); + return false; + } if (args.length == 0) { - T2CodeTemplate.sendInfo(sender, prefix, spigot, discord, autor, version, UpdateAPI.PluginVersionen.get(plugin.getName()).publicVersion); + T2CodeTemplate.sendInfo(sender, Util.getPrefix(), Util.getSpigot(), Util.getDiscord(), Main.autor, Main.version, UpdateAPI.PluginVersionen.get(Main.plugin.getName()).publicVersion); } else { + switch (args[0].toLowerCase()) { + case "info": + case "plugin": + case "pl": + case "version": + case "ver": + T2CodeTemplate.sendInfo(sender, Util.getPrefix(), Util.getSpigot(), Util.getDiscord(), Main.autor, Main.version, UpdateAPI.PluginVersionen.get(Main.plugin.getName()).publicVersion); + return false; + } if ("debug".equals(args[0].toLowerCase())) { if (args.length != 2) { - send.sender(sender,"§4Use: §7/t2code debug createReportLog"); + send.sender(sender, "§4Use: §7/t2code debug createReportLog"); return false; } if ("createreportlog".equals(args[1].toLowerCase())) { - CreateReportLog.create(sender); + CreateReportLog.create(sender); - } else send.sender(sender,"§4Use: §7/t2code debug createReportLog"); - } else send.sender(sender,"§4Use: §7/t2code debug createReportLog"); + } else send.sender(sender, "§4Use: §7/t2code debug createReportLog"); + } else send.sender(sender, "§4Use: §7/t2code debug createReportLog"); } return false; } @@ -53,6 +61,7 @@ public class CmdExecuter implements CommandExecutor, TabCompleter { //TabCompleter private static HashMap arg1 = new HashMap() {{ put("debug", "t2code.admin"); + put("info", "t2code.admin"); }}; @Override -- 2.34.1 From 1ce07cce813c331b2989182f617ea194ff52489a Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Fri, 31 Dec 2021 05:26:57 +0100 Subject: [PATCH 11/13] add removeColorCode --- .../net/t2code/lib/Spigot/Lib/replace/Replace.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/net/t2code/lib/Spigot/Lib/replace/Replace.java b/src/main/java/net/t2code/lib/Spigot/Lib/replace/Replace.java index 6f25002..fe7766e 100644 --- a/src/main/java/net/t2code/lib/Spigot/Lib/replace/Replace.java +++ b/src/main/java/net/t2code/lib/Spigot/Lib/replace/Replace.java @@ -63,6 +63,19 @@ public class Replace { return rp; } + public static String removeColorCode(String value){ + String text = value.replace("&", "§"); + while(text.contains("§")){ + int stelle = text.indexOf("§"); + if(text.length() >= stelle+2) { + text = text.substring(0, stelle) + text.substring(stelle + 2); + }else{ + text = text.substring(0, stelle) + text.substring(stelle + 1); + } + } + return (text); + } + public static List replacePrice(String prefix,Player player, List Text, String price) { List rp = new ArrayList(); -- 2.34.1 From 1c962a54d69782610063490e2ab72a60b880f3ec Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Fri, 31 Dec 2021 05:30:39 +0100 Subject: [PATCH 12/13] code changes --- ...hot_1.xml => T2CodeLib_9_0_Snapshot_2.xml} | 4 ++-- .../Spigot/Lib/messages/T2CodeTemplate.class | Bin 4957 -> 6427 bytes .../lib/Spigot/Lib/replace/Replace.class | Bin 4299 -> 4961 bytes .../lib/Spigot/system/CmdExecuter$1.class | Bin 627 -> 650 bytes .../lib/Spigot/system/CmdExecuter.class | Bin 4628 -> 4828 bytes 5 files changed, 2 insertions(+), 2 deletions(-) rename .idea/artifacts/{T2CodeLib_9_0_Snapshot_1.xml => T2CodeLib_9_0_Snapshot_2.xml} (59%) diff --git a/.idea/artifacts/T2CodeLib_9_0_Snapshot_1.xml b/.idea/artifacts/T2CodeLib_9_0_Snapshot_2.xml similarity index 59% rename from .idea/artifacts/T2CodeLib_9_0_Snapshot_1.xml rename to .idea/artifacts/T2CodeLib_9_0_Snapshot_2.xml index 129b600..0fe8b70 100644 --- a/.idea/artifacts/T2CodeLib_9_0_Snapshot_1.xml +++ b/.idea/artifacts/T2CodeLib_9_0_Snapshot_2.xml @@ -1,7 +1,7 @@ - + $PROJECT_DIR$/../../Plugins/T2CodeLib/.jar - + diff --git a/target/classes/net/t2code/lib/Spigot/Lib/messages/T2CodeTemplate.class b/target/classes/net/t2code/lib/Spigot/Lib/messages/T2CodeTemplate.class index 865ca93af1c88d3e9add86cf8b2d034a359b50e9..a9a408c30e8d8d0ee2094ace88c4c8882a064eae 100644 GIT binary patch delta 2206 zcma)7X>e0j6#h<2@{;iA5}^<_1GFVg3W3r(g*r+b>VUMi6sUq?86P7}ip+kWI_Y-pB9p$co-_v4^g{+=Xc(FKNF5^M0AQ;?U@6=G65+O{n zsq2jW1y_47SA`L)@Q{SnGS*-%!5&m%&PCp)GL{qcDT>n__B%Z{xnoYvMRgm?%dhmr z{GlKr*Hu?Pr)gGQldEQ0eN|m$!xTbs&3`jkQWO;?tj7ik56jqyM+il%Zg4?F2?yLB z#o3T}60#%8B96fo3WOrAkXIoTidcrLflOn42O-ls#wvo|B;#>BLFmUp_sS)NZT~}5 zN|SoC)SqfZn&zgZNzgwfV>6y6=;n($aIS1c7v`PCU{`2SI27cJRrJLcY?aU{V;i0& zSk)PlHH)B+hW)-!jNq^psrAx`LHRSa4bIDUbW7MFV<&bIMvMEk$wNZls1o$nD$%Ih z$GLD^B)Tehl+%_{QPgNc8J?H18!xCEB}YFKdJvcJqKudDvU*C|(f$f&+ZyjEN$8lw z=4A%FM#$nOs|zbZYvMq3&FeDW5G`YXTukRA(*=iQL+uY88JLpqyH4IUk4P_Zcjh%-KGpV!ObdV}_9uA>|aFIaIPdC>{ zKqe%grRq4jx>&*=+&CBP&hr@5R(Vu2L7o;2DiK$}9gQkc38x98E{IQWIDKkD^oev~ z1R}`bsRs;TQPA^xP~9x&jed{!#2b)<_j#2yTZa$uA-@^%5k3}oJCDhGs9juc!~kB+ zOw=F4*)ByMuEsz#V-VV4!QB{)4H$y`7>c79Mug!s6qiy7tkj4RbQ?y}GUU@rjHcBn zptUHZjj(IZr$XX)9X`P!76t0SVSLKog!LIdpC+`i`2}xsG;D2SD^s(+WUCJh4F3vW z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0_or=*BBtL#+VR@G4IM^x!pGBzX;n1|4&@!jJgBqlMYdAA$b8k{4_F@H*Cc z0>r#7!i1*`hY_OtWFS!^?%sfwwU6{i=+DNNqoYjVj#P%V*Qmp`o>U1)ZsFph7+hL;B>D^JsY_s@?EI!63(q&fqMVcV3%#B3C zkv&ZWrjqhGc^Sv`CX-4wF*oR&yNU;HAv<#ui%Da!iChyeCTVV>#9b5RscRVee}K0$ z;NNRWnM6a+@qN4rFfmU$hbh{V7{DY4;|Nb_{tljog(-K`259>fpYi%+ipvy2#{CRF z=T2$adqwtuAHi)LRJU=r4B#fd&|*Ke`{KF`bDTEdS+37v7}Ffz=eawEMUGB^=PFK6 zl#{yZV|-}CII3IH#jKj!lA1dlwf1m`SDIrGxvZPx?HCh@YOoh=XM=)YaLjOYPitDg zq`CADO};ngKz!=X`Bz6 delta 1022 zcmYk5PiqrV6vfX>{&kWxt&ui}8%0cPMFnk_1EHafKf%p_HSfNN9&x`%95>&S-gxJft;t!~JODVb5JH$^iK|2WTKtBF zKfqe&#Ks&)2?H^dImW#NT*Wo69Q5KkcS`Q%*n~CbzKx~!O4gvtk6|7au7EMz;LOte zo0|V4Ru~uUB!V0Vu$^c2A;ruAt+NXO?q`ic7PoL)YiCuzP<~3-}faO?7S{%svMvB%`)q0ff$?3=9k=3P8`1V{=oumDLrAZgFQ%izEu#^A^x r3KZdiXb1Aefjkxl2_VVDAju#FrllEVz@oB1QXYu8fU0?bG!Os)sGSvJ delta 141 zcmeBT{mjC3>ff$?3=9k=4002>PE5S>fKg`hUPk{yL7NSYJQfBqAj!la&L9D%B^ji^ SqS8Q87Kpiks(FAk5C8xnoDgyV diff --git a/target/classes/net/t2code/lib/Spigot/system/CmdExecuter.class b/target/classes/net/t2code/lib/Spigot/system/CmdExecuter.class index 47a9b7f8b652945594bbf6bb2c5cba075334ddc9..0564472f6aea71f43254e9ea3088a34692b94cb4 100644 GIT binary patch literal 4828 zcmc&&`F~W^760DJ%)D7%AWR4{7$hu07Q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Dq)X$E8LmX80(#HRTSLh`XdJ{HNxT=|%%;Q3j*^i;W+o-I}|T}Ne# zpA}d>yTja3ByTF15V*Mv-#)FM&7_dgop~kHWu$YOT{IazTU=a9+v?V|388$>Yk~p?XQX!7 zkZrz37cGl2=d;fx(t}a1%48E z5f}NCn_s750j|ZE|NN6!(>MZU1an4EHG=sgxN!uFM^HO~6@scaT)?{Lv0)sy4`WBP zIp(j}Fou>fY#+jUZVwzsq%pc<96KvcMLT1D|CMjUjpNuejHvtVFhWyoJh%c<*|kIh zM5U6rtm9SV4y?outm0T$hfXwb(pilZxw5p@!g|N3jjrOJQ8aR^D(ui(dIBog8YvW58N>8p2gdm0*x=CcL=8&FQB)n zk_P%upnC)d#&F*R`URSlm@)x&iGH#U(AXl)9{D#;WJI(W5?!yH0QEGWSm$B{9- zYY1~6MRpYMBZO2Ecyvo zSS)ace>B1GVA_PaeBVl=T2RG~x{#PihQ>DHeu)SMx%+AS1V5#R2+5RtK?wo;lDlOv zx|Cm$BK@%#fj7{g;2{OQ3XIp#_9}d@A;G5?^S@@UaGdjk_F1}0`gBJ{OHJb#J~@WZ zoWy4Dt-&Qcg z3t=CcNo&J>4l1?e^%2S6;I~|6GL*U^;Ca}o8%!a z4HGynLnq)r)fhcFhOg~f-MQxcCV$1IKy{$ne-brosskIEDjQ;z6ZnRV1#%t>Q0aeG zoT30%yJMujKXNZ}>acFn5h|< Date: Fri, 31 Dec 2021 17:17:27 +0100 Subject: [PATCH 13/13] 9.0 | small code changes --- ...b_9_0_Snapshot_2.xml => T2CodeLib_9_0.xml} | 4 ++-- .../net/t2code/lib/Spigot/system/Main.java | 6 ++++-- src/main/java/net/t2code/lib/Util.java | 2 +- .../net/t2code/lib/Spigot/system/Main.class | Bin 6934 -> 6950 bytes target/classes/net/t2code/lib/Util.class | Bin 1438 -> 1438 bytes 5 files changed, 7 insertions(+), 5 deletions(-) rename .idea/artifacts/{T2CodeLib_9_0_Snapshot_2.xml => T2CodeLib_9_0.xml} (59%) diff --git a/.idea/artifacts/T2CodeLib_9_0_Snapshot_2.xml b/.idea/artifacts/T2CodeLib_9_0.xml similarity index 59% rename from .idea/artifacts/T2CodeLib_9_0_Snapshot_2.xml rename to .idea/artifacts/T2CodeLib_9_0.xml index 0fe8b70..d86a691 100644 --- a/.idea/artifacts/T2CodeLib_9_0_Snapshot_2.xml +++ b/.idea/artifacts/T2CodeLib_9_0.xml @@ -1,7 +1,7 @@ - + $PROJECT_DIR$/../../Plugins/T2CodeLib/.jar - + diff --git a/src/main/java/net/t2code/lib/Spigot/system/Main.java b/src/main/java/net/t2code/lib/Spigot/system/Main.java index a60e136..f362a0f 100644 --- a/src/main/java/net/t2code/lib/Spigot/system/Main.java +++ b/src/main/java/net/t2code/lib/Spigot/system/Main.java @@ -108,9 +108,11 @@ public final class Main extends JavaPlugin { LanguagesCreate.langCreate(); SelectLibConfig.onSelect(); SelectLibMsg.onSelect(prefix); - UpdateAPI.onUpdateCheck(plugin, prefix, spigot, spigotID, discord); + if (!Util.getSnapshot()){ + UpdateAPI.onUpdateCheck(plugin, prefix, spigot, spigotID, discord); + Metrics.Bstats(plugin, bstatsID); + } - Metrics.Bstats(plugin, bstatsID); Bukkit.getServer().getPluginManager().registerEvents(new JoinEvent(), plugin); T2CodeTemplate.onLoadFooter(prefix, long_); } diff --git a/src/main/java/net/t2code/lib/Util.java b/src/main/java/net/t2code/lib/Util.java index b38bef5..4f28fd6 100644 --- a/src/main/java/net/t2code/lib/Util.java +++ b/src/main/java/net/t2code/lib/Util.java @@ -1,7 +1,7 @@ package net.t2code.lib; public class Util { - private static Boolean Snapshot = true; + private static Boolean Snapshot = false; private static String Prefix = "§8[§4T2Code§5Lib§8]"; private static Integer SpigotID = 96388; diff --git a/target/classes/net/t2code/lib/Spigot/system/Main.class b/target/classes/net/t2code/lib/Spigot/system/Main.class index dd49c942500374c321db4806ca59586ce81b697f..0f138f575dd5244ebce6485078e0e995bfa97780 100644 GIT binary patch delta 137 zcmbPcw#;lpqA2Gw237`U1_ox6%~_(anK*Yam~CUQnZ=+oIaDH%`4ofEO)ePDU UH4J(TbwJsA24{wb$z4)&0DUnUZ~y=R diff --git a/target/classes/net/t2code/lib/Util.class b/target/classes/net/t2code/lib/Util.class index 77ac46e1c184ffb144934412bbfbf9783c2f01bf..9cc2879d775e0c0295a04df339da7421efd79469 100644 GIT binary patch delta 13 UcmbQoJ&${XDJvuMWHZ(b02@C8cK`qY delta 13 UcmbQoJ&${XDJvt(WHZ(b02@RDcmMzZ -- 2.34.1