From 990d983537359c8d2a664f748ebbfa2c105848e4 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Wed, 14 Sep 2016 15:36:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- pom.xml | 2 +- src/main/java/pw/yumc/MiaoChat/listeners/ChatListener.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 91c8664..2fd38b7 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 pw.yumc MiaoChat - 1.3.1 + 1.3.2 ${project.name} diff --git a/src/main/java/pw/yumc/MiaoChat/listeners/ChatListener.java b/src/main/java/pw/yumc/MiaoChat/listeners/ChatListener.java index 8038862..1b02476 100644 --- a/src/main/java/pw/yumc/MiaoChat/listeners/ChatListener.java +++ b/src/main/java/pw/yumc/MiaoChat/listeners/ChatListener.java @@ -19,6 +19,7 @@ import org.bukkit.event.Listener; import org.bukkit.event.player.AsyncPlayerChatEvent; import org.bukkit.inventory.ItemStack; +import me.clip.placeholderapi.PlaceholderAPI; import pw.yumc.MiaoChat.MiaoChat; import pw.yumc.MiaoChat.config.ChatConfig; import pw.yumc.MiaoChat.config.ChatMessagePart; @@ -74,7 +75,7 @@ public class ChatListener implements Listener { cmp.then(tr, p); } else { // Log.d("追加文本: %s", format); - tr.then(format); + tr.then(PlaceholderAPI.setPlaceholders(p, format)); } } }