From 6178bb87252a32a3200948158cfc2bbeefa09ce3 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Mon, 12 Sep 2016 16:41:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86BUG?= =?UTF-8?q?=20=E8=87=AA=E5=8A=A8=E5=88=9D=E5=A7=8B=E5=8C=96=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E5=8C=96=E5=B7=A5=E5=85=B7?= 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/config/ChatRule.java | 2 +- src/main/java/pw/yumc/MiaoChat/listeners/ChatListener.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/pw/yumc/MiaoChat/MiaoChat.java b/src/main/java/pw/yumc/MiaoChat/MiaoChat.java index c214dc2..8b6ead5 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.getItemFullName(new ItemStack(Material.DIAMOND_SWORD)); + L10N.getItemName(new ItemStack(Material.AIR)); } @Override diff --git a/src/main/java/pw/yumc/MiaoChat/config/ChatRule.java b/src/main/java/pw/yumc/MiaoChat/config/ChatRule.java index f6fd54e..145e1bc 100644 --- a/src/main/java/pw/yumc/MiaoChat/config/ChatRule.java +++ b/src/main/java/pw/yumc/MiaoChat/config/ChatRule.java @@ -23,7 +23,7 @@ public class ChatRule extends InjectConfigurationSection { private Integer index; @Default("MiaoChat.default") private String permission; - @Default("#world##player#: ") + @Default("[world][player]: ") private String format; @Default("0") private Integer range; diff --git a/src/main/java/pw/yumc/MiaoChat/listeners/ChatListener.java b/src/main/java/pw/yumc/MiaoChat/listeners/ChatListener.java index 1cf7bcd..8dc2c99 100644 --- a/src/main/java/pw/yumc/MiaoChat/listeners/ChatListener.java +++ b/src/main/java/pw/yumc/MiaoChat/listeners/ChatListener.java @@ -117,7 +117,7 @@ public class ChatListener implements Listener { plist = C.Player.getOnlinePlayers(); } for (final Entity ne : plist) { - if (ne instanceof Player && !offList.contains(ne.getName())) { + if (ne instanceof Player && !offList.contains(((Player) ne).getName())) { tr.send(ne); } }