From 7abe783220c0870e5b78a0d6afa89ae992aeae95 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Tue, 20 Sep 2016 01:56:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BD=BF=E7=94=A8=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/pw/yumc/MiaoChat/MiaoChat.java | 2 +- src/main/java/pw/yumc/MiaoChat/listeners/ChatListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/pw/yumc/MiaoChat/MiaoChat.java b/src/main/java/pw/yumc/MiaoChat/MiaoChat.java index 8b6ead5..bf189bb 100644 --- a/src/main/java/pw/yumc/MiaoChat/MiaoChat.java +++ b/src/main/java/pw/yumc/MiaoChat/MiaoChat.java @@ -47,7 +47,7 @@ public class MiaoChat extends JavaPlugin implements CommandExecutor { public void onEnable() { new ChatListener(); new CommandManager("MiaoChat", this); - L10N.getItemName(new ItemStack(Material.AIR)); + L10N.getName(new ItemStack(Material.AIR)); } @Override diff --git a/src/main/java/pw/yumc/MiaoChat/listeners/ChatListener.java b/src/main/java/pw/yumc/MiaoChat/listeners/ChatListener.java index 1b02476..19b5512 100644 --- a/src/main/java/pw/yumc/MiaoChat/listeners/ChatListener.java +++ b/src/main/java/pw/yumc/MiaoChat/listeners/ChatListener.java @@ -162,7 +162,7 @@ public class ChatListener implements Listener { final ItemStack is = k == 'i' ? player.getItemInHand() : player.getInventory().getItem(k - '0' - 1); if (is != null && is.getType() != Material.AIR) { // Log.d("处理物品: %s", mm); - tr.then(String.format(ChatColor.translateAlternateColorCodes('&', cr.getItemformat()), L10N.getItemName(is))); + tr.then(String.format(ChatColor.translateAlternateColorCodes('&', cr.getItemformat()), L10N.getName(is))); tr.item(is); } } else {