feat: 支持直接解析变量

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-09-14 15:36:22 +08:00
parent 6d7660f96c
commit 990d983537
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>pw.yumc</groupId>
<artifactId>MiaoChat</artifactId>
<version>1.3.1</version>
<version>1.3.2</version>
<build>
<finalName>${project.name}</finalName>
<resources>

View File

@ -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));
}
}
}