Update ToolStats.java

This commit is contained in:
hyperdefined
2025-03-27 22:01:54 -04:00
parent 3f850aaef7
commit 71f3a3ea10

View File

@@ -253,9 +253,9 @@ public final class ToolStats extends JavaPlugin {
return; return;
} }
GitHubRelease current; GitHubRelease current;
try{ try {
current = api.getReleaseByTag(this.getPluginMeta().getVersion()); current = api.getReleaseByTag(this.getPluginMeta().getVersion());
}catch(ReleaseNotFoundException e){ } catch (ReleaseNotFoundException e) {
logger.warning("You are running a version that does not exist on GitHub. If you are in a dev environment, you can ignore this. Otherwise, this is a bug!"); logger.warning("You are running a version that does not exist on GitHub. If you are in a dev environment, you can ignore this. Otherwise, this is a bug!");
return; return;
} }