From e3921c8347dfe7cf2b13025d22d0c72846ac0b3c Mon Sep 17 00:00:00 2001
From: mfnalex <1122571+mfnalex@users.noreply.github.com>
Date: Tue, 25 May 2021 15:41:26 +0200
Subject: [PATCH] 10.0.3
---
CHANGELOG.md | 3 +++
pom.xml | 2 +-
src/main/java/de/jeff_media/chestsort/ChestSortPlugin.java | 4 ++++
src/main/resources/plugin.yml | 2 +-
4 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 70db9f9..63a5cc3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,8 @@
# Changelog
+## 10.0.3
+- Fixed "Could not check for updates" message being shown to OPs on join when Update Checker is disabled
+
## 10.0.2
- Fixed legacy API still being shaded into the .jar file.
diff --git a/pom.xml b/pom.xml
index abde010..da72886 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
ChestSort
https://www.chestsort.de
Automatically sorts your chests!
- 10.0.2
+ 10.0.3
jar
diff --git a/src/main/java/de/jeff_media/chestsort/ChestSortPlugin.java b/src/main/java/de/jeff_media/chestsort/ChestSortPlugin.java
index 39af3c8..6b195cf 100644
--- a/src/main/java/de/jeff_media/chestsort/ChestSortPlugin.java
+++ b/src/main/java/de/jeff_media/chestsort/ChestSortPlugin.java
@@ -324,6 +324,10 @@ public class ChestSortPlugin extends JavaPlugin {
}
}
+ if(getConfig().getString("check-for-updates").equalsIgnoreCase("false")) {
+ updateChecker.setNotifyOpsOnJoin(false);
+ }
+
registerMetrics();
if (getConfig().getBoolean("dump")) {
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 52fcbc8..60f8082 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -1,6 +1,6 @@
main: de.jeff_media.chestsort.ChestSortPlugin
name: ChestSort
-version: 10.0.2
+version: 10.0.3
api-version: "1.13"
description: Allows automatic chest sorting
author: mfnalex