瀏覽代碼

Add warning about the plugin conflict between mcMMO and ChatControlRed

nossr50 4 年之前
父節點
當前提交
dc2c099231
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 1 0
      Changelog.txt
  2. 7 0
      src/main/java/com/gmail/nossr50/mcMMO.java

+ 1 - 0
Changelog.txt

@@ -2,6 +2,7 @@ Version 2.1.182
     Fixed several errors in de locale (Thanks TheBusyBiscuit & w1tcherrr)
     Fixed a bug where double smelt never succeeded if the furnace was empty
     Added some safety so that mcMMO automatic save interval is never more frequent than 1 minute
+    Added a warning when mcMMO detects ChatControlRed running on the server which has an unresolved severe plugin conflict with mcMMO
 
 Version 2.1.181
     mcMMO no longer pointlessly tries to check for missing UUIDs for FlatFile database

+ 7 - 0
src/main/java/com/gmail/nossr50/mcMMO.java

@@ -266,6 +266,13 @@ public class mcMMO extends JavaPlugin {
                 else
                     metrics.addCustomChart(new SimplePie("leveling_system", () -> "Standard"));
             }
+
+            //TODO: Remove this when ChatControlRed fixes itself
+            if(pluginManager.getPlugin("ChatControlRed") != null) {
+                getLogger().severe("mcMMO has detected ChatControlRed on your server, users have reported a severe plugin conflict between these two plugins which degrades server performance and wastes many server resources.");
+                getLogger().severe("It is HIGHLY RECOMMENDED that you do --NOT-- use ChatControlRed until this issue is resolved!");
+            }
+
         }
         catch (Throwable t) {
             getLogger().severe("There was an error while enabling mcMMO!");