9.0 | small code changes

This commit is contained in:
JaTiTV 2021-12-31 17:17:27 +01:00
parent 1c962a54d6
commit c171a1674d
5 changed files with 7 additions and 5 deletions

View File

@ -1,7 +1,7 @@
<component name="ArtifactManager">
<artifact type="jar" name="T2CodeLib_9.0_Snapshot_2">
<artifact type="jar" name="T2CodeLib_9.0">
<output-path>$PROJECT_DIR$/../../Plugins/T2CodeLib/.jar</output-path>
<root id="archive" name="T2CodeLib_9.0_Snapshot_2.jar">
<root id="archive" name="T2CodeLib_9.0.jar">
<element id="module-output" name="T2CodeLib" />
</root>
</artifact>

View File

@ -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_);
}

View File

@ -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;