From f4713e06d92a7040972318111b440e62be5895e8 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Wed, 25 Jan 2017 00:32:23 +0800 Subject: [PATCH] =?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;