diff --git a/OpSecurity V3/pom.xml b/OpSecurity V3/pom.xml index fa8984b..a79e4d9 100644 --- a/OpSecurity V3/pom.xml +++ b/OpSecurity V3/pom.xml @@ -6,7 +6,7 @@ net.t2code T2C-OPSecurity - 3.0.3 + 3.0.3_SNAPSHOT-1 jar T2C-OPSecurity @@ -83,7 +83,7 @@ net.t2code T2CodeLib DEV-13.4 - snapshot-1 + snapshot-2 provided diff --git a/OpSecurity V3/src/main/java/net/t2code/opsecurity/config/config/Config.java b/OpSecurity V3/src/main/java/net/t2code/opsecurity/config/config/Config.java index 7de3578..58c6ebd 100644 --- a/OpSecurity V3/src/main/java/net/t2code/opsecurity/config/config/Config.java +++ b/OpSecurity V3/src/main/java/net/t2code/opsecurity/config/config/Config.java @@ -9,6 +9,10 @@ public enum Config { language("plugin.language", "english", ConfigParam.STRING), onlyOPcanUseThePlugin("plugin.onlyOPcanUseThePlugin", true, ConfigParam.BOOLEAN), + updateCheckOnJoin("plugin.updateCheck.onJoin",true,ConfigParam.BOOLEAN), + updateCheckSeePreReleaseUpdates("plugin.updateCheck.seePreReleaseUpdates",true,ConfigParam.BOOLEAN), + updateCheckTimeInterval("plugin.updateCheck.timeInterval",60,ConfigParam.INTEGER), + checkOnJoin("check.onJoin", true, ConfigParam.BOOLEAN), checkOnInteract("check.onInteract", true, ConfigParam.BOOLEAN), checkOnCommand("check.onCommand", true, ConfigParam.BOOLEAN), diff --git a/OpSecurity V3/src/main/java/net/t2code/opsecurity/system/Load.java b/OpSecurity V3/src/main/java/net/t2code/opsecurity/system/Load.java index e0d9388..93ca1fc 100644 --- a/OpSecurity V3/src/main/java/net/t2code/opsecurity/system/Load.java +++ b/OpSecurity V3/src/main/java/net/t2code/opsecurity/system/Load.java @@ -3,6 +3,7 @@ package net.t2code.opsecurity.system; import net.t2code.opsecurity.Util; import net.t2code.opsecurity.command.CmdExecuter; import net.t2code.opsecurity.config.FileSelect; +import net.t2code.opsecurity.config.config.Config; import net.t2code.opsecurity.config.config.Converter; import net.t2code.opsecurity.events.Events; import net.t2code.opsecurity.events.OpCommand; @@ -11,6 +12,7 @@ import net.t2code.opsecurity.check.Timer; import net.t2code.t2codelib.SPIGOT.api.messages.T2Ctemplate; import net.t2code.t2codelib.SPIGOT.api.register.T2Cregister; import net.t2code.t2codelib.SPIGOT.api.update.T2CupdateAPI; +import org.checkerframework.checker.units.qual.C; import java.util.List; import java.util.logging.Level; @@ -39,7 +41,8 @@ public class Load { Timer.refreshTimer(); Permissions.register(); - T2CupdateAPI.onUpdateCheck(plugin, Util.getPrefix(),Util.getGit(),Util.getSpigotID(),Util.getDiscord()); + T2CupdateAPI.onUpdateCheck(plugin, Util.getPrefix(),Util.getGit(),Util.getSpigotID(),Util.getDiscord(), Config.updateCheckOnJoin.valueBoolean, + Config.updateCheckSeePreReleaseUpdates.valueBoolean, Config.updateCheckTimeInterval.valueInt); Metrics.Bstats(plugin, Util.getBstatsID()); T2Ctemplate.onLoadFooter(Util.getPrefix(), long_); }