From d17faea50e7aa048f494dd75053e7c110c50dffc Mon Sep 17 00:00:00 2001 From: 502647092 Date: Wed, 25 Jan 2017 00:31:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- .classpath | 8 -------- .project | 23 ----------------------- 2 files changed, 31 deletions(-) delete mode 100644 .classpath delete mode 100644 .project diff --git a/.classpath b/.classpath deleted file mode 100644 index db5b5e4..0000000 --- a/.classpath +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/.project b/.project deleted file mode 100644 index f4db48b..0000000 --- a/.project +++ /dev/null @@ -1,23 +0,0 @@ - - - MiaoChat - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.eclipse.m2e.core.maven2Nature - org.eclipse.jdt.core.javanature - - From f4713e06d92a7040972318111b440e62be5895e8 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Wed, 25 Jan 2017 00:32:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=B1=BB=E5=BA=93?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- pom.xml | 4 ++-- src/main/java/pw/yumc/MiaoChat/MiaoChat.java | 2 +- src/main/java/pw/yumc/MiaoChat/config/ChatConfig.java | 7 +++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index aef59ed..64dea57 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 pw.yumc MiaoChat - 1.7 + 1.7.1 ${project.name} @@ -93,7 +93,7 @@ pw.yumc YumCore jar - 1.5 + 1.6 \ No newline at end of file diff --git a/src/main/java/pw/yumc/MiaoChat/MiaoChat.java b/src/main/java/pw/yumc/MiaoChat/MiaoChat.java index 13b56a0..9c1bd78 100644 --- a/src/main/java/pw/yumc/MiaoChat/MiaoChat.java +++ b/src/main/java/pw/yumc/MiaoChat/MiaoChat.java @@ -62,7 +62,7 @@ public class MiaoChat extends JavaPlugin implements Executor, PluginMessageListe new ChatListener(); new CommandSub("MiaoChat", this); if (getChatConfig().isBungeeCord()) { - Log.info("已开启 BungeeCord 模式!"); + Log.i("已开启 BungeeCord 模式!"); Bukkit.getMessenger().registerIncomingPluginChannel(this, "BungeeCord", this); Bukkit.getMessenger().registerOutgoingPluginChannel(this, "BungeeCord"); Bukkit.getPluginManager().registerEvents(this, this); diff --git a/src/main/java/pw/yumc/MiaoChat/config/ChatConfig.java b/src/main/java/pw/yumc/MiaoChat/config/ChatConfig.java index e32dcfa..4e73d6b 100644 --- a/src/main/java/pw/yumc/MiaoChat/config/ChatConfig.java +++ b/src/main/java/pw/yumc/MiaoChat/config/ChatConfig.java @@ -1,6 +1,10 @@ package pw.yumc.MiaoChat.config; -import java.util.*; +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.LinkedList; +import java.util.Map; import org.bukkit.entity.Player; @@ -48,7 +52,6 @@ public class ChatConfig { */ public ChatRule getChatRule(Player player) { for (ChatRule cr : rules) { - Log.debug(cr.getName()); if (cr.check(player)) { return cr; } } return null;