From 3c2d87889e7eb12286eec9cb661706279947e1b2 Mon Sep 17 00:00:00 2001 From: Izzel_Aliz Date: Sat, 23 Jun 2018 18:05:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E4=BA=86=E4=B8=80=E4=B8=AA=E5=B0=8F?= =?UTF-8?q?=E5=B1=81=E7=9C=BC=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ilummc/tlib/resources/TLocaleInstance.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/ilummc/tlib/resources/TLocaleInstance.java b/src/main/java/com/ilummc/tlib/resources/TLocaleInstance.java index e77ec67..5994aa2 100644 --- a/src/main/java/com/ilummc/tlib/resources/TLocaleInstance.java +++ b/src/main/java/com/ilummc/tlib/resources/TLocaleInstance.java @@ -52,7 +52,7 @@ class TLocaleInstance { public void sendTo(String path, CommandSender sender, String... args) { try { map.getOrDefault(path, ImmutableList.of(TLocaleSerialize.getEmpty(path))).forEach(tSender -> { - if (Bukkit.isPrimaryThread()) { + if (Bukkit.isPrimaryThread() || "true".equals(System.getProperty("tlib.forceAsync"))) { tSender.sendTo(sender, args); } else { Bukkit.getScheduler().runTask(plugin, () -> tSender.sendTo(sender, args));