From f0e157d3a700f5d807106da8181050b20a9160ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9D=8F=E9=BB=91?= Date: Fri, 30 Nov 2018 10:19:36 +0800 Subject: [PATCH] =?UTF-8?q?+=20=E4=BF=AE=E5=A4=8D=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E6=8B=A6=E6=88=AA=E7=AE=A1=E5=BE=97=E5=A4=AA=E5=AE=BD=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20+=20=E4=BF=AE=E5=A4=8D=E5=BC=BA=E5=88=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ilummc/tlib/filter/impl/FilterExceptionMirror.java | 2 +- src/main/java/me/skymc/taboolib/update/UpdateTask.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ilummc/tlib/filter/impl/FilterExceptionMirror.java b/src/main/java/com/ilummc/tlib/filter/impl/FilterExceptionMirror.java index ac944ac..dffb1e9 100644 --- a/src/main/java/com/ilummc/tlib/filter/impl/FilterExceptionMirror.java +++ b/src/main/java/com/ilummc/tlib/filter/impl/FilterExceptionMirror.java @@ -63,7 +63,7 @@ public class FilterExceptionMirror extends TLoggerFilterHandler { } catch (Exception ignored) { } } - if (plugin.get() != null) { + if (plugin.get() != null && (TabooLib.isTabooLib(plugin.get()) || TabooLib.isDependTabooLib(plugin.get()))) { TLocale.Logger.error("TFILTER.EXCEPTION-MIRROR." + message + ".HEAD", args.run()); for (int i = 0; i < stackTraces.size(); i++) { StackTraceElement stack = stackTraces.get(i); diff --git a/src/main/java/me/skymc/taboolib/update/UpdateTask.java b/src/main/java/me/skymc/taboolib/update/UpdateTask.java index 9e90332..7214cbd 100644 --- a/src/main/java/me/skymc/taboolib/update/UpdateTask.java +++ b/src/main/java/me/skymc/taboolib/update/UpdateTask.java @@ -84,7 +84,7 @@ public class UpdateTask { } public static void updatePlugin(boolean shutdown, boolean force) { - if (!UpdateTask.isHaveUpdate() || (newVersion == 0 || !force)) { + if (!UpdateTask.isHaveUpdate() && (newVersion == 0 || !force)) { TLocale.Logger.info("COMMANDS.TABOOLIB.UPDATEPLUGIN.UPDATE-NOT-FOUND"); return; }