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 dd49c94..0f138f5 100644 Binary files a/target/classes/net/t2code/lib/Spigot/system/Main.class and b/target/classes/net/t2code/lib/Spigot/system/Main.class differ diff --git a/target/classes/net/t2code/lib/Util.class b/target/classes/net/t2code/lib/Util.class index 77ac46e..9cc2879 100644 Binary files a/target/classes/net/t2code/lib/Util.class and b/target/classes/net/t2code/lib/Util.class differ