4
1
mirror of https://e.coding.net/circlecloud/MiaoChat.git synced 2024-11-14 13:28:46 +00:00

fix: 修复类库错误

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2017-01-25 00:32:23 +08:00
parent d17faea50e
commit f4713e06d9
3 changed files with 8 additions and 5 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>pw.yumc</groupId>
<artifactId>MiaoChat</artifactId>
<version>1.7</version>
<version>1.7.1</version>
<build>
<finalName>${project.name}</finalName>
<resources>
@ -93,7 +93,7 @@
<groupId>pw.yumc</groupId>
<artifactId>YumCore</artifactId>
<type>jar</type>
<version>1.5</version>
<version>1.6</version>
</dependency>
</dependencies>
</project>

View File

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

View File

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