From 64aba798c36fce1bbf2eadae53a131d307f009c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9D=8F=E9=BB=91?= Date: Thu, 11 Oct 2018 00:19:32 +0800 Subject: [PATCH] =?UTF-8?q?+=20=E4=BF=AE=E5=A4=8D=E4=B8=A4=E4=B8=AA?= =?UTF-8?q?=E7=A2=A7=E6=B2=B9=E9=B8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/main/java/com/ilummc/tlib/resources/TLocale.java | 1 - .../java/me/skymc/taboolib/common/inject/TInjectLoader.java | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 57eb648..49da20c 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ me.skymc TabooLib - 4.52 + 4.53 UTF-8 diff --git a/src/main/java/com/ilummc/tlib/resources/TLocale.java b/src/main/java/com/ilummc/tlib/resources/TLocale.java index 758ce75..e148ea2 100644 --- a/src/main/java/com/ilummc/tlib/resources/TLocale.java +++ b/src/main/java/com/ilummc/tlib/resources/TLocale.java @@ -94,7 +94,6 @@ public class TLocale { } public static List setColored(List args) { - TLib.getTLib().getLogger().error(Strings.replaceWithOrder(TLib.getInternalLanguage().getString("LOCALE-ERROR-REASON"), "")); return args.stream().map(var -> ChatColor.translateAlternateColorCodes('&', var)).collect(Collectors.toList()); } diff --git a/src/main/java/me/skymc/taboolib/common/inject/TInjectLoader.java b/src/main/java/me/skymc/taboolib/common/inject/TInjectLoader.java index 5b8800c..002637c 100644 --- a/src/main/java/me/skymc/taboolib/common/inject/TInjectLoader.java +++ b/src/main/java/me/skymc/taboolib/common/inject/TInjectLoader.java @@ -58,6 +58,7 @@ public class TInjectLoader implements TabooLibLoader.Loader { continue; } try { + declaredField.setAccessible(true); tInjectTask.run(plugin, declaredField, annotation.value()); } catch (Exception e) { TLogger.getGlobalLogger().error(declaredField.getName() + " inject failed: " + e.getMessage());