浏览代码

Don't spam incompatible WG error

Shane Freeder 5 年之前
父节点
当前提交
6125b3fbd2
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 1 0
      Changelog.txt
  2. 3 0
      src/main/java/com/gmail/nossr50/worldguard/WorldGuardUtils.java

+ 1 - 0
Changelog.txt

@@ -1,5 +1,6 @@
 Version 2.1.109
     Added missing 1.14 blocks to ability/tool activation blacklists
+    Fixed spamming of incompatible worldguard version message
 
 Version 2.1.108
     Fixed an amusing exploit for easy leveling in Acrobatics

+ 3 - 0
src/main/java/com/gmail/nossr50/worldguard/WorldGuardUtils.java

@@ -96,6 +96,9 @@ public class WorldGuardUtils {
     private static boolean isCompatibleVersion(Plugin plugin) {
         //Check that the version of WG is at least version 7.xx
         boolean allClassesFound = true;
+        if (detectedIncompatibleWG) {
+            return false;
+        }
 
         if (!plugin.getDescription().getVersion().startsWith("7")) {
             markWGIncompatible();